/* Loading Bar */
.loading-bar { position: fixed; top: 0; left: 0; width: 0; height: 4px; background: #e53935; z-index: 9999; }
.loading-bar.active { width: 30%; transition: width .1s ease; }
.loading-bar.done { width: 100%; transition: width .4s ease; }
.loading-bar.fade { opacity: 0; transition: opacity .5s ease; }

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif; background: #fff; color: #333; line-height: 1.6; font-size: 16px; }
a { text-decoration: none; color: #333; }

/* Header */
.header { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 10px 0; position: sticky; top: 0; z-index: 100; }
.header__inner { max-width: 1400px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.header__logo { font-size: 26px; font-weight: 700; color: #333; margin: 0; }
.header__logo a { color: #333; }
.header__logo span { color: #e53935; }
.header__search { flex: 1; min-width: 200px; max-width: 500px; display: flex; }
.header__search input { flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-right: none; border-radius: 4px 0 0 4px; font-size: 16px; outline: none; }
.header__search input:focus { border-color: #999; }
.header__search button { padding: 10px 18px; background: #e53935; color: #fff; border: none; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 16px; }
.header__nav { width: 100%; display: flex; gap: 4px; overflow-x: auto; padding: 4px 0; }
.header__nav a { padding: 7px 16px; background: #f5f5f5; border-radius: 20px; font-size: 15px; white-space: nowrap; color: #555; transition: all .2s; }
.header__nav a:hover, .header__nav a.active { background: #e53935; color: #fff; }

/* Sort Bar */
.sort-bar { max-width: 1400px; margin: 12px auto 0; padding: 0 16px; display: flex; align-items: center; gap: 12px; font-size: 15px; color: #888; }
.sort-bar a { color: #888; padding: 4px 8px; border-radius: 4px; }
.sort-bar a:hover { color: #333; }
.sort-bar a.active { color: #e53935; font-weight: 600; }
.sort-bar .count { margin-left: auto; font-size: 14px; }

/* Video Count */
.video-count { max-width: 1400px; margin: 14px auto 0; padding: 0 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.video-count__heading { font-size: 20px; font-weight: 700; color: #333; }
.video-count__num { font-size: 18px; font-weight: 700; color: #e53935; }
.video-count__date { font-size: 13px; font-weight: 400; color: #999; }

/* Video Grid */
.video-grid { max-width: 1400px; margin: 16px auto; padding: 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Video Card */
.video-card { display: block; transition: transform .2s; border: 1px solid #e0e0e0; border-radius: 6px; padding: 8px; }
.video-card:hover { transform: translateY(-3px); border-color: #ccc; }
.video-card__thumb { position: relative; border-radius: 4px; overflow: hidden; background: #f0f0f0; }
.video-card__thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.video-card__preview { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.video-card__duration { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; padding: 1px 5px; border-radius: 2px; }
.video-card__play { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; background: rgba(0,0,0,.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.video-card:hover .video-card__play { opacity: 1; }
.video-card__play::before { content: "\25B6"; color: #fff; font-size: 16px; margin-left: 3px; }
.video-card__title { font-size: 15px; margin-top: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #333; }
.video-card__meta { font-size: 14px; color: #999; margin-top: 4px; }

/* Pagination */
.pagination { max-width: 1400px; margin: 24px auto; padding: 0 16px; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 15px; color: #555; }
.pagination a:hover { background: #f5f5f5; }
.pagination .current { background: #e53935; color: #fff; border-color: #e53935; }
.pagination .dots { padding: 8px 6px; color: #999; border: none; }
.pagination.pg-sp { display: none; }
@media (max-width: 768px) {
  .pagination.pg-pc { display: none; }
  .pagination.pg-sp { display: flex; }
}

/* Footer */
.footer { background: #f9f9f9; border-top: 1px solid #e0e0e0; padding: 20px 16px; text-align: center; margin-top: 40px; }
.footer p { font-size: 14px; color: #999; }
.footer a { color: #999; }
.footer a:hover { color: #333; }

/* Watch Page (2-column) */
.watch { max-width: 1400px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.watch__player { background: #000; border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.watch__player video { width: 100%; max-height: 70vh; display: block; }
#asyncPlayer { position: relative; }
#asyncPoster { position: relative; }
.watch__player-fallback { width: 100%; aspect-ratio: 16/9; background: #1a1a1a; }
.watch__player-fallback img { width: 100%; aspect-ratio: 16/9; object-fit: contain; display: block; }
.watch__info { padding: 4px 0; }
.watch__title { font-size: 20px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.watch__meta { font-size: 14px; color: #888; margin-bottom: 10px; display: flex; gap: 16px; }
.watch__actresses { font-size: 15px; margin-bottom: 10px; }
.watch__actresses a { color: #e53935; }
.watch__label { color: #888; }
.watch__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.watch__tags a { padding: 5px 12px; background: #f5f5f5; border-radius: 16px; font-size: 13px; color: #555; }
.watch__label { font-size: 14px; font-weight: 600; color: #888; margin-bottom: 4px; display: block; }
.watch__tags a:hover { background: #e53935; color: #fff; }
.watch__fullvideo { margin-top: 16px; }
.watch__fullvideo-btn { display: block; width: 100%; padding: 14px 28px; text-align: center; background: #e53935; color: #fff; font-size: 16px; font-weight: 600; border-radius: 6px; transition: background .2s; }
.watch__fullvideo-btn:hover { background: #c62828; color: #fff; }
/* Reviews */
.rv { margin-top: 28px; }
.rv__heading { font-size: 18px; font-weight: 600; margin-bottom: 14px; padding-bottom: 6px; border-bottom: 2px solid #eee; }
.rv__flash { background: #e8f5e9; color: #2e7d32; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.rv__form-toggle { background: none; border: 1px solid #ddd; padding: 8px 20px; border-radius: 6px; font-size: 14px; color: #555; cursor: pointer; margin-bottom: 14px; }
.rv__form-toggle:hover { border-color: #e53935; color: #e53935; }
.rv__form { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 16px; margin-bottom: 18px; }
.rv__form-row { margin-bottom: 12px; }
.rv__form-row label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 4px; }
.rv__form-row input, .rv__form-row textarea { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; outline: none; font-family: inherit; }
.rv__form-row input:focus, .rv__form-row textarea:focus { border-color: #e53935; }
.rv__stars { display: flex; gap: 2px; }
.rv__star { font-size: 24px; color: #ddd; cursor: pointer; user-select: none; }
.rv__star.active { color: #ffc107; }
.rv__errors { background: #fce4ec; color: #c62828; padding: 8px 12px; border-radius: 4px; margin-bottom: 10px; font-size: 13px; }
.rv__submit { background: #e53935; color: #fff; border: none; padding: 10px 24px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; }
.rv__submit:hover { background: #c62828; }
.rv__item { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.rv__item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.rv__item-name { font-size: 14px; font-weight: 600; }
.rv__item-stars { color: #ffc107; font-size: 14px; letter-spacing: 1px; }
.rv__item-date { font-size: 12px; color: #aaa; margin-left: auto; }
.rv__item-text { font-size: 14px; line-height: 1.6; color: #444; }
.rv__empty { font-size: 14px; color: #999; padding: 16px 0; }

/* Static Pages */
.static-page { max-width: 800px; margin: 0 auto; padding: 32px 16px; }
.static-page h1 { font-size: 22px; font-weight: 700; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 2px solid #e53935; }
.static-page h2 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; color: #333; }
.static-page p { font-size: 15px; line-height: 1.8; margin-bottom: 10px; color: #555; }
.static-page ul { margin: 8px 0 16px 24px; color: #555; }
.static-page li { font-size: 15px; line-height: 1.8; margin-bottom: 4px; }
.static-page hr { border: none; border-top: 1px solid #eee; margin: 40px 0; }
.static-page a { color: #e53935; }
.static-page__date { margin-top: 32px; font-size: 13px; color: #999; }
.contact-form { margin-top: 20px; }
.contact-form__row { margin-bottom: 14px; }
.contact-form__row label { display: block; font-size: 14px; font-weight: 600; color: #555; margin-bottom: 4px; }
.contact-form__row input, .contact-form__row textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 15px; outline: none; font-family: inherit; }
.contact-form__row input:focus, .contact-form__row textarea:focus { border-color: #e53935; }
.contact-form__submit { background: #e53935; color: #fff; border: none; padding: 12px 28px; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; }
.contact-form__submit:hover { background: #c62828; }

/* Iframe Player */
.watch__iframe-wrap { position: relative; width: 100%; aspect-ratio: 16/9; }
.watch__iframe-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Footer Links */
.footer__links { margin-top: 4px; }

/* Review Form (hidden by default) */
.rv__form--hidden { display: none; }

/* Lightbox */
.lb { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999; align-items: center; justify-content: center; }
.lb.active { display: flex; }
.lb__img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; user-select: none; }
.lb__close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; line-height: 1; padding: 4px 10px; z-index: 1; }
.lb__close:hover { color: #e53935; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 48px; cursor: pointer; padding: 8px 16px; z-index: 1; user-select: none; }
.lb__prev { left: 8px; }
.lb__next { right: 8px; }
.lb__prev:hover, .lb__next:hover { color: #e53935; }
.lb__counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #ccc; font-size: 14px; }

.watch__images { margin-top: 20px; }
.watch__images-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid #eee; }
.watch__images-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.watch__images-grid a { display: block; border-radius: 4px; overflow: hidden; }
.watch__images-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: opacity .2s; }
.watch__images-grid a:hover img { opacity: .8; }

/* Sidebar - Related */
.watch__sidebar-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid #eee; }
.related-card { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.related-card:hover .related-card__title { color: #e53935; }
.related-card__thumb { flex-shrink: 0; width: 140px; border-radius: 4px; overflow: hidden; }
.related-card__thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.related-card__title { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Genre Page */
.genre-page { max-width: 1400px; margin: 0 auto; padding: 24px 16px; }
.genre-page__title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.genre-page__desc { font-size: 14px; color: #888; margin-bottom: 20px; }
.genre-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.genre-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 18px; background: #f7f7f7; border: 1px solid #eee; border-radius: 8px; transition: all .2s; min-width: 180px; }
.genre-card:hover { background: #e53935; color: #fff; border-color: #e53935; }
.genre-card:hover .genre-card__count { color: rgba(255,255,255,.8); }
.genre-card__name { font-size: 15px; font-weight: 500; }
.genre-card__count { font-size: 13px; color: #999; white-space: nowrap; }

/* Responsive */
@media (max-width: 960px) {
  .watch { grid-template-columns: 1fr; }
  .watch__sidebar { margin-top: 24px; }
  .watch__images-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; gap: 12px; }
}
