/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #101414;
  --bg-elevated: #181c1c;
  --bg-card: rgba(28, 32, 32, 0.74);
  --bg-card-hover: rgba(39, 43, 43, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(130, 212, 213, 0.42);
  --text: #f2f5f4;
  --text-muted: #bec9c8;
  --text-dim: #889392;
  --accent: #127475;
  --accent-strong: #82d4d5;
  --coral: #d68c78;
  --green: #7bdca9;
  --yellow: #f0c36d;
  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
  --soft-glow: 0 20px 42px rgba(18, 116, 117, 0.18);
  --focus-ring: 0 0 0 3px rgba(214, 140, 120, 0.28);
}

html { scroll-behavior: smooth; }

body {
  background:
    linear-gradient(180deg, #151918 0%, var(--bg) 42%, #0b0f0f 100%);
  color: var(--text);
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

::selection { background: rgba(20, 184, 196, 0.3); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b0f14; }
::-webkit-scrollbar-thumb { background: #303946; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #43505f; }

/* ===== Header ===== */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px clamp(12px, 2vw, 28px) 0;
  background: transparent;
  border-bottom: 0;
}

.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(16, 20, 20, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 54px;
  height: 54px;
  display: block;
  flex: 0 0 auto;
  transition: filter 0.2s;
}

.logo-image {
  display: block;
  object-fit: contain;
  padding: 0;
}

.logo:hover .logo-icon { filter: drop-shadow(0 0 14px rgba(130, 212, 213, 0.38)); }

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 760px;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 2px solid var(--text-dim);
  border-radius: 50%;
  transform: translateY(-55%);
  pointer-events: none;
}

.search-bar::after {
  content: "";
  position: absolute;
  left: 26px;
  top: calc(50% + 6px);
  z-index: 1;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-dim);
  transform: rotate(45deg);
  pointer-events: none;
}

#searchInput {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 11px 18px 11px 44px;
  border-radius: 999px 0 0 999px;
  border: 1px solid var(--border);
  border-right: none;
  background: rgba(11, 15, 15, 0.9);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

#searchInput::placeholder { color: var(--text-dim); }
#searchInput:focus {
  border-color: rgba(214, 140, 120, 0.72);
  background: rgba(11, 15, 15, 0.98);
  box-shadow: var(--focus-ring);
}

.search-btn {
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 0 999px 999px 0;
  border: none;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #052829;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.search-btn:hover {
  background: linear-gradient(180deg, #9ef1f1, #178486);
  transform: translateY(-1px);
}

/* Suggestions */
.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #11151c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 50;
  display: none;
}

.suggestions.active { display: block; }

.suggestion-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.suggestion-item:hover {
  background: rgba(20, 184, 196, 0.12);
  color: var(--text);
}

.suggestion-item svg { flex-shrink: 0; opacity: 0.5; }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.language-picker select {
  min-width: 112px;
  height: 40px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11, 15, 15, 0.9);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.language-picker select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.thumb-toggle {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11, 15, 15, 0.9);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
}

.thumb-toggle:hover,
.thumb-toggle[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(130, 212, 213, 0.14);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(7, 9, 13, 0.98);
  padding: 8px 16px;
}

.mobile-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.mobile-menu a:hover { background: var(--bg-card-hover); color: var(--text); }

.mobile-language-picker {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.mobile-language-picker select {
  flex: 0 0 140px;
}

/* ===== Main ===== */
main {
  flex: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 26px clamp(16px, 2vw, 32px) 38px;
  width: 100%;
}

/* ===== Homepage ===== */
.category-ribbon {
  margin: 0 0 32px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(24, 28, 28, 0.58);
  backdrop-filter: blur(18px);
}

.hero-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.hero-panel-header span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-panel-header a {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-pills {
  align-content: flex-start;
  max-height: 98px;
  overflow: hidden;
}

.hero-pills .pill {
  background: rgba(130, 212, 213, 0.1);
  border-color: rgba(130, 212, 213, 0.14);
}

/* Section */
.section { margin-bottom: 44px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 720;
}

.section-header a {
  font-size: 14px;
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.section-header a:hover { color: #8af6ff; }

.section-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* Pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.pill {
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 680;
  background: rgba(28, 32, 32, 0.68);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
}

.pill:hover {
  background: rgba(130, 212, 213, 0.16);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-1px);
}

.show-more { margin-top: 16px; }

.show-more a {
  font-size: 14px;
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.show-more a:hover { color: #8af6ff; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -8px 0 24px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11, 15, 15, 0.72);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: -10px 0 22px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(11, 15, 15, 0.6);
}

.filter-title {
  align-self: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-bar label {
  display: grid;
  gap: 5px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-bar select {
  min-width: 126px;
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(16, 20, 20, 0.94);
  color: var(--text);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.filter-bar button,
.filter-bar a {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 760;
}

.filter-bar button {
  border: 0;
  background: var(--accent-strong);
  color: #052829;
  cursor: pointer;
}

.filter-bar a {
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.sort-tab {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.sort-tab:hover,
.sort-tab.active {
  color: var(--text);
  border-color: var(--border);
  background: rgba(130, 212, 213, 0.14);
}

.pagination .disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-count {
  color: var(--text-muted);
  font-size: 14px;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .category-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1500px) { .category-grid { grid-template-columns: repeat(6, 1fr); } }

@media (min-width: 900px) {
  .category-section .category-grid .category-box:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .category-section .category-grid .category-box:first-child .cat-name {
    padding: 18px;
    font-size: 24px;
    line-height: 1.1;
    text-align: left;
  }

  .category-section .category-grid .category-box:first-child .cat-name span {
    margin-top: 8px;
    font-size: 13px;
  }
}

.category-box {
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  border: 0;
  position: relative;
  background: var(--bg-card);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  transition: box-shadow 0.28s, transform 0.28s;
  cursor: pointer;
}

.category-box:hover {
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.34);
  transform: translateY(-4px);
}

.category-box .cat-bg {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.category-box:hover .cat-bg { opacity: 0.72; }

.category-box .cat-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.category-box .cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.28) 58%, rgba(0,0,0,0.02) 100%);
}

.category-box .cat-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  font-size: 16px;
  font-weight: 780;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: color 0.3s;
}

.category-box .cat-name span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
}

.category-box:hover .cat-name { color: #ecfeff; }

.featured-section .video-grid {
  align-items: stretch;
}

/* ===== Video Grid ===== */
.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  min-width: 0;
}

@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .video-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1680px) { .video-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

body.large-thumbs .video-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) { body.large-thumbs .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { body.large-thumbs .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1560px) { body.large-thumbs .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ad-slot {
  position: relative;
  width: 100%;
  min-height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(11, 15, 15, 0.5);
  overflow: hidden;
}

.ad-slot-grid {
  grid-column: 1 / -1;
  margin: 2px 0 8px;
}

.ad-slot-watch {
  margin: 22px 0 4px;
}

.ad-slot-label {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-slot-body {
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: inherit;
  border: 0;
}

.ad-slot-placeholder {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.ad-slot-limited {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: inherit;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}

.ad-slot-limited img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

.ad-slot-limited-title {
  padding: 24px 18px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 760;
  text-align: center;
}

.ad-consent {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(16, 20, 20, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.ad-consent-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ad-consent-copy strong {
  color: var(--text);
  font-size: 14px;
}

.ad-consent-copy span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ad-consent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ad-consent-link {
  padding: 7px 4px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 760;
}

.ad-consent-actions button {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #052829;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.ad-consent-actions button.secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .featured-section .video-grid .video-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .featured-section .video-grid .video-card:first-child .video-info {
    padding: 16px;
  }

  .featured-section .video-grid .video-card:first-child .video-info h3 {
    font-size: 18px;
    line-height: 1.35;
  }

  .featured-section .video-grid .video-card:first-child .video-meta-row {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .ad-consent {
    flex-direction: column;
    align-items: stretch;
  }

  .ad-consent-actions {
    flex-wrap: wrap;
  }
}

.video-card {
  background: transparent;
  border: 0;
  border-radius: 22px;
  overflow: visible;
  position: relative;
  min-width: 0;
  max-width: 100%;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-main-link {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.video-card:hover {
  transform: translateY(-4px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #181c1c;
  overflow: hidden;
  border-radius: 22px;
  min-width: 0;
  max-width: 100%;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.video-card:hover .video-thumb img { transform: scale(1.035); }

.video-card.has-frame-preview.preview-active .video-thumb img { transform: none; }

.video-card.has-static-preview.preview-active .video-thumb img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.02);
}

.video-thumb .thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.05) 58%);
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .thumb-overlay { opacity: 1; }

.video-thumb .play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .play-btn { opacity: 1; }

.play-btn-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(130, 212, 213, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(236, 254, 255, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn-inner svg { fill: #052829; margin-left: 2px; }

/* Badges */
.badge {
  position: absolute;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.badge-duration {
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.76);
  color: #fff;
}

.badge-rating {
  top: 8px;
  left: 8px;
  background: rgba(130, 212, 213, 0.94);
  color: #052829;
}

.badge-quality {
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}

.badge-quality span {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.badge-quality .q-hd { background: rgba(214, 140, 120, 0.92); color: #2c1009; }
.badge-quality .q-4k { background: rgba(240, 195, 109, 0.94); color: #1e1300; }
.badge-quality .q-vr { background: rgba(130, 212, 213, 0.9); color: #052829; }

/* Video Info */
.video-info {
  padding: 13px 4px 0;
}

.video-info h3 {
  font-size: 14px;
  font-weight: 720;
  color: var(--text);
  line-height: 1.4;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.video-card:hover .video-info h3 { color: #ecfeff; }

.video-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

.video-meta svg { opacity: 0.5; }

.video-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.video-meta-row .video-meta {
  margin-top: 0;
  min-width: 0;
}

.source-chip {
  flex-shrink: 0;
  max-width: 48%;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(130,212,213,0.1);
  border: 1px solid rgba(130,212,213,0.18);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Page Header ===== */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.12;
}

.page-header p {
  font-size: 16px;
  color: var(--text-muted);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--accent-strong); }

.breadcrumb .sep { opacity: 0.5; }

.breadcrumb .current { color: var(--text-muted); }

/* ===== A-Z Page ===== */
.az-hero {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.az-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
}

.az-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0;
}

.az-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 36px;
}

@media (min-width: 640px) { .az-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 768px) { .az-grid { grid-template-columns: repeat(9, 1fr); } }
@media (min-width: 1024px) { .az-grid { grid-template-columns: repeat(11, 1fr); } }

.az-letter {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
}

.az-letter span {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

.az-letter:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(20, 184, 196, 0.12);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.az-sections {
  display: grid;
  gap: 28px;
}

.az-section {
  display: grid;
  gap: 12px;
}

.az-section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.az-section-title span {
  font-size: 22px;
  font-weight: 800;
}

.az-section-title small {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
}

/* A-Z Letter Page */
.az-letter-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.az-letter-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #001f23;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.category-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) { .category-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .category-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .category-list.compact { grid-template-columns: repeat(4, 1fr); } }

.category-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
}

.category-list.compact .category-list-item {
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
}

.category-list.compact .category-list-item .cat-icon {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.category-list-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.category-list-item .cat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(75, 75, 100, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.category-list-item:hover .cat-icon {
  background: rgba(20, 184, 196, 0.14);
  color: var(--accent-strong);
}

.category-list-item .cat-info { min-width: 0; flex: 1; }

.category-list-item .cat-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.category-list-item:hover .cat-info h3 { color: #ecfeff; }

.category-list-item .cat-info p {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-list-item .cat-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color 0.2s;
}

.category-list-item:hover .cat-arrow { color: var(--accent-strong); }

/* ===== Sources Page ===== */
.sources-hero {
  text-align: center;
  margin-bottom: 40px;
}

.sources-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
}

.sources-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.sources-type-section {
  margin-bottom: 40px;
}

.sources-type-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.sources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) { .sources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sources-grid { grid-template-columns: repeat(3, 1fr); } }

.source-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.source-card:hover { border-color: rgba(255,255,255,0.1); }

.source-card.source-active {
  border-color: rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.08);
}

.source-card .source-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(75, 75, 100, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.source-card .source-info { min-width: 0; }

.source-card .source-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-dot {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(74,222,128,0.15);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.source-card .source-info p {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Pornstar Page ===== */
.pornstar-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.pornstar-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  box-shadow: var(--shadow);
}

/* ===== Loading Skeleton ===== */
.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) { .skeleton-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .skeleton-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .skeleton-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1500px) { .skeleton-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1680px) { .skeleton-grid { grid-template-columns: repeat(6, 1fr); } }

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.skeleton-thumb {
  aspect-ratio: 16 / 9;
  background: rgba(170, 179, 192, 0.1);
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-info { padding: 12px; }

.skeleton-line {
  height: 14px;
  background: rgba(170, 179, 192, 0.1);
  border-radius: 6px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-line.w-34 { width: 75%; }
.skeleton-line.w-25 { width: 25%; margin-top: 8px; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 64px 16px;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--text-dim);
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.empty-state h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-dim);
}

.not-found-state {
  padding-top: 48px;
}

.not-found-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 34px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(28, 32, 32, 0.68);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.data-notice {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(250,204,21,0.25);
  border-radius: var(--radius);
  background: rgba(250,204,21,0.08);
  color: #fde68a;
  font-size: 14px;
}

.data-notice code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0,0,0,0.25);
  color: #fff;
}

/* ===== Watch Page ===== */
.watch-layout {
  margin-bottom: 40px;
}

.watch-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.watch-topbar .breadcrumb {
  min-width: 0;
  margin-bottom: 0;
}

.watch-close-button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.watch-close-button:hover {
  transform: translateY(-1px);
  border-color: rgba(130, 212, 213, 0.45);
  background: rgba(130, 212, 213, 0.12);
}

.watch-close-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.watch-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.player-shell iframe,
.player-shell img,
.player-shell video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

.player-shell.has-embed {
  border-color: rgba(130, 212, 213, 0.28);
}

.player-embed {
  background: #000;
}

.provider-click-shield {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: clamp(56px, 7vw, 84px);
  height: clamp(48px, 7vw, 72px);
  background: transparent;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.player-shell:fullscreen .provider-click-shield {
  display: none;
}

.nana-player,
.nana-player-surface {
  position: relative;
  width: 100%;
  height: 100%;
}

.nana-player-video {
  background: #000;
}

.nana-player-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 5;
}

.nana-player-controls {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: rgba(4,7,10,0.72);
  backdrop-filter: blur(10px);
}

.nana-control {
  min-height: 34px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.nana-control:hover {
  border-color: rgba(130, 212, 213, 0.45);
  background: rgba(130, 212, 213, 0.14);
}

.nana-player-time {
  color: rgba(236, 254, 255, 0.88);
  font-size: 12px;
  white-space: nowrap;
}

.nana-player-rail {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  outline: none;
}

.nana-player-rail:focus-visible {
  box-shadow: 0 0 0 3px rgba(130, 212, 213, 0.32);
  background: rgba(255,255,255,0.28);
}

.nana-player-progress {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.nana-player-preview {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: min(210px, 46vw);
  transform: translateX(-50%) translateY(6px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: #06090d;
  box-shadow: 0 14px 28px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.nana-player-rail.preview-visible .nana-player-preview {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nana-player-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.nana-player-preview span {
  display: block;
  padding: 4px 6px;
  color: #fff;
  font-size: 11px;
  text-align: center;
}

.player-fallback {
  position: relative;
  height: 100%;
}

.player-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent 58%);
}

.player-fallback-message {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: grid;
  gap: 7px;
  width: min(88%, 420px);
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  background: rgba(4,7,10,0.72);
  color: var(--text);
  text-align: center;
  backdrop-filter: blur(10px);
}

.player-fallback-message strong {
  font-size: 16px;
}

.player-fallback-message span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.player-source-button {
  justify-self: center;
  margin-top: 4px;
}

.player-error-fallback {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.26));
}

.player-error-fallback[hidden] {
  display: none;
}

.player-shell.has-player-error .nana-player-controls {
  pointer-events: none;
  opacity: 0.35;
}

.watch-info {
  padding: 4px 0;
}

.watch-info h1 {
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 12px;
}

.watch-title-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.watch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

.watch-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(75,75,100,0.25);
  border: 1px solid var(--border);
}

.watch-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.watch-vote-panel {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.watch-vote-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.watch-vote-button:hover {
  transform: translateY(-1px);
  border-color: rgba(130, 212, 213, 0.45);
  background: rgba(130, 212, 213, 0.12);
}

.watch-vote-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.watch-reaction-button {
  min-width: 76px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.watch-reaction-button:hover {
  transform: translateY(-1px);
  border-color: rgba(130, 212, 213, 0.45);
  background: rgba(130, 212, 213, 0.12);
}

.watch-reaction-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.watch-reaction-button.is-active {
  color: #001f23;
  background: var(--accent);
  border-color: var(--accent);
}

.watch-vote-panel.vote-pending .watch-vote-button,
.watch-vote-panel.vote-pending .watch-reaction-button {
  opacity: 0.55;
  pointer-events: none;
}

.watch-vote-panel.vote-saved .watch-vote-button:first-child,
.watch-vote-panel.vote-saved .watch-reaction-button.is-active {
  background: rgba(34,197,94,0.22);
  border-color: rgba(34,197,94,0.45);
  color: var(--text);
}

.watch-vote-panel.vote-error .watch-vote-button,
.watch-vote-panel.vote-error .watch-reaction-button {
  border-color: rgba(244,63,94,0.55);
}

.watch-reaction-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.watch-vote-panel.vote-error .watch-reaction-status {
  color: #fca5a5;
}

.watch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #001f23;
  font-size: 14px;
  font-weight: 700;
  border: 0;
}

.watch-button.secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.watch-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
  border-bottom: 1px solid var(--border);
}

.watch-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 4px 12px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.watch-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.watch-tab span {
  margin-left: 5px;
  color: var(--text-dim);
}

.watch-discussion {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.watch-related-panel {
  order: 1;
}

.watch-comments-panel {
  display: none;
  order: 2;
}

.watch-discussion.comments-open .watch-comments-panel {
  display: block;
  order: 1;
}

.watch-discussion.comments-open .watch-related-panel {
  order: 2;
}

.watch-section-header {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.watch-section-header h2 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.watch-section-header span {
  color: var(--text-muted);
  font-size: 13px;
}

.watch-more-row {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.comment-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,0.035);
  margin-bottom: 18px;
}

.comment-fields {
  display: grid;
  gap: 12px;
}

.comment-fields label {
  display: grid;
  gap: 7px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.comment-fields input,
.comment-fields textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: rgba(0,0,0,0.22);
  color: var(--text);
  font: inherit;
}

.comment-fields textarea {
  resize: vertical;
  min-height: 104px;
}

.comment-fields input:focus,
.comment-fields textarea:focus {
  outline: none;
  border-color: rgba(130, 212, 213, 0.6);
}

.comment-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.comment-form-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.comment-form-bottom p {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}

.comment-form.is-submitting {
  opacity: 0.72;
  pointer-events: none;
}

.comment-status {
  min-height: 18px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.watch-comment {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255,255,255,0.03);
}

.watch-comment-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.watch-comment-head strong {
  font-size: 14px;
}

.watch-comment-head time {
  color: var(--text-dim);
  font-size: 12px;
}

.watch-comment p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.comment-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .comment-form-bottom,
  .watch-comment-head {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-form-bottom .watch-button {
    width: 100%;
  }
}

/* ===== Footer ===== */
#footer {
  background: #080b10;
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

.footer-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 40px clamp(16px, 2vw, 32px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }

.footer-brand .logo-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  vertical-align: middle;
  margin-right: 8px;
}

.footer-logo-image {
  display: inline-block;
  object-fit: contain;
  padding: 0;
}

.footer-brand .logo-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  vertical-align: middle;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-nav h4, .footer-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-nav a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--accent-strong); }

.footer-info a,
.footer-preferences {
  display: inline-block;
  margin: 8px 14px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.footer-info a:hover,
.footer-preferences:hover {
  color: var(--accent-strong);
}

.footer-info p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.info-panel {
  max-width: 780px;
  display: grid;
  gap: 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.info-panel a {
  color: var(--accent-strong);
  font-weight: 760;
}

.preference-panel,
.noscript-notice {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.preference-panel strong,
.noscript-notice h2 {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.preference-panel p,
.noscript-notice p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.preference-panel button {
  justify-self: start;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #052829;
  font-weight: 800;
  cursor: pointer;
}

.preference-panel .preference-status {
  color: var(--accent-strong);
  font-weight: 700;
}

.noscript-notice {
  max-width: var(--max-width);
  margin: 18px auto;
}

.noscript-notice h2 {
  margin: 0;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

body.age-gate-open {
  overflow: hidden;
}

.age-gate-panel {
  width: min(460px, 100%);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #121716;
  box-shadow: var(--shadow);
}

.age-gate-panel h2 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.age-gate-panel p {
  color: var(--text-muted);
  font-size: 15px;
}

.age-gate-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.age-gate-actions button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #052829;
  font-weight: 800;
  cursor: pointer;
}

.age-gate-actions .secondary {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
}

.copyright {
  font-size: 12px !important;
  margin-top: 12px !important;
  color: var(--text-dim) !important;
  opacity: 0.6;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .header-inner > .language-picker { display: none; }
  .header-inner > .thumb-toggle { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu.open { display: block; }
  .logo-text { display: none; }
  .logo-icon {
    width: 48px;
    height: 48px;
  }

  .header-inner {
    gap: 10px;
    border-radius: 24px;
    padding: 8px;
  }

  .search-bar {
    max-width: none;
  }

  .search-btn {
    width: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0;
    position: relative;
  }

  .search-btn::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 14px;
    width: 14px;
    height: 14px;
    border: 2px solid #052829;
    border-radius: 50%;
    display: block;
    box-sizing: border-box;
  }

  .search-btn::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 29px;
    width: 7px;
    height: 2px;
    background: #052829;
    transform: rotate(45deg);
    border-radius: 999px;
  }

  .section-header {
    align-items: flex-start;
    gap: 12px;
  }

  .category-ribbon {
    border-radius: 22px;
    padding: 14px;
  }

  .mobile-thumb-toggle {
    width: 100%;
    margin: 8px 0;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .filter-bar select,
  .filter-bar button,
  .filter-bar a {
    width: 100%;
  }

  .nana-player-controls {
    grid-template-columns: auto minmax(80px, 1fr) auto;
  }

  .nana-player-time,
  .nana-control[data-player-fullscreen] {
    display: none;
  }

  .nana-player-preview {
    width: 120px;
  }
}

@media (max-width: 1220px) {
  .nav-links a {
    padding: 9px 10px;
    font-size: 13px;
  }

  .header-inner > .thumb-toggle {
    display: none;
  }
}

/* ===== Fade In ===== */
.seo-fallback {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 22px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
}

.seo-fallback h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.seo-fallback p {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
}

.seo-fallback-image {
  width: min(320px, 34vw);
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-soft);
}

.seo-fallback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.seo-fallback-links a {
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  line-height: 1.2;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 700px) {
  .seo-fallback {
    grid-template-columns: 1fr;
  }

  .seo-fallback-image {
    width: 100%;
    max-width: 420px;
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
