/* MovieHub — dark cinematic theme, orange accent */
:root {
  --bg: #0a0d16;
  --bg2: #111624;
  --card: #161c30;
  --card-hover: #1d2540;
  --text: #e8ebf4;
  --muted: #9aa3b8;
  --accent: #f26b3a;
  --accent-dark: #c24e22;
  --accent-soft: rgba(242, 107, 58, 0.14);
  --border: #232b45;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; width: 100%; flex: 1; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(10, 13, 22, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent) !important;
  text-transform: uppercase;
}
.logo-icon { flex: 0 0 auto; display: block; }
.logo-text { line-height: 1; }
.main-nav { display: flex; gap: 18px; align-items: center; }
.main-nav a { font-weight: 600; color: var(--muted); transition: color 0.2s; white-space: nowrap; flex-shrink: 0; }
.main-nav a:hover { color: var(--text); }
/* "More" dropdown for the less-used nav items */
.nav-more { position: relative; flex-shrink: 0; }
.nav-more-btn { background: none; border: none; padding: 0; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.nav-more-btn:hover { color: var(--text); }
.nav-more.active .nav-more-btn { color: var(--accent); }
.nav-more-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 6px; z-index: 200; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.nav-more:hover .nav-more-menu, .nav-more:focus-within .nav-more-menu { display: block; }
.nav-more-menu a { display: block; padding: 9px 12px; border-radius: 6px; }
.nav-more-menu a:hover { background: rgba(255,255,255,.06); }
.nav-more-menu a.active { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.search-form { margin-left: auto; display: flex; gap: 8px; }
.search-form input {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  width: 220px;
  font-size: 0.9rem;
}
.search-form input:focus { outline: none; border-color: var(--accent); }
.search-form button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.search-form button:hover { background: var(--accent-dark); }

/* ---------- Setup notice ---------- */
.setup-notice {
  background: linear-gradient(135deg, #1b2a4a, #142038);
  border-bottom: 2px solid var(--accent);
  padding: 24px 16px;
}
.setup-notice-inner { max-width: 800px; margin: 0 auto; }
.setup-notice h2 { margin-bottom: 10px; color: #ffd166; }
.setup-notice ol { margin: 12px 0 0 20px; color: var(--muted); }
.setup-notice li { margin-bottom: 6px; }
.setup-notice a { color: #6ea8fe; }
.setup-notice code {
  background: #000;
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffd166;
  font-size: 0.85em;
}

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; margin: 20px 0 8px; }
.hero-slide {
  position: absolute;
  inset: 0;
  min-height: 62vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero-slide.active { position: relative; opacity: 1; pointer-events: auto; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,13,22,0.97) 5%, rgba(10,13,22,0.55) 45%, rgba(10,13,22,0.25) 100%),
              linear-gradient(to right, rgba(10,13,22,0.75) 0%, rgba(10,13,22,0) 60%);
}
.hero-content { position: relative; padding: 36px; max-width: 620px; }
.hero-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hero-genres a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-genres a:hover { color: #fff; }
.hero-content h1 { font-size: 2.6rem; margin-bottom: 10px; line-height: 1.15; }
.hero-badges { margin-bottom: 12px; }
.hero-overview {
  color: #c9d1e3;
  margin-bottom: 20px;
  max-width: 560px;
}
.hero-poster {
  position: absolute;
  right: 48px;
  bottom: 36px;
  width: 190px;
  z-index: 2;
}
.hero-poster img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: block;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 13, 22, 0.65);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-counter {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 3;
  background: rgba(10, 13, 22, 0.65);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- Quick-link pills ---------- */
.quick-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.quick-pill {
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 22px;
  border-radius: 22px;
  transition: background 0.2s, transform 0.2s;
}
.quick-pill:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ---------- Rows & cards ---------- */
.row-section { margin: 28px 0; }
.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.row-head h2 {
  font-size: 1.35rem;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}
.row-tools { display: flex; align-items: center; gap: 8px; }
.view-all {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: 6px;
  white-space: nowrap;
}
.view-all:hover { color: var(--accent); }
.row-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex: 0 0 auto;
}
.row-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.row-pane { display: none; }
.row-pane.active { display: block; }
.row-tabs { margin-bottom: 4px; }
.card {
  flex: 0 0 160px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
}
.card:hover { transform: scale(1.05); background: var(--card-hover); border-color: var(--border); z-index: 2; }
.card:hover .card-title { color: var(--accent); }
.card-poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg2); }
.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.card:hover .card-poster img { transform: scale(1.08); }
.card-poster::after {
  content: '\25B6';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  background: rgba(242, 107, 58, 0.28);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover .card-poster::after { opacity: 1; }
.card.person-card .card-poster::after { display: none; }
.card.person-card:hover .card-poster img { transform: none; }
.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 5px;
  line-height: 1.3;
}
.card-badge.badge-hd { background: var(--accent); color: #fff; }
.card-badge.badge-ep { background: rgba(0, 0, 0, 0.78); color: #fff; border: 1px solid var(--border); }
.card-badge.badge-rel { background: rgba(0, 0, 0, 0.78); color: #ffd166; border: 1px solid var(--border); }
.card-badge + .card-badge { top: 34px; }
.card-badge + .card-badge + .card-badge { top: 60px; }
.card-body { padding: 10px; }
.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.card-meta { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.person-card { cursor: default; }
.person-card:hover { transform: none; }

/* ---------- Grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin: 20px 0 30px;
}
.grid .card { flex: none; }
.grid .card:hover { transform: translateY(-4px); }

/* ---------- Detail page ---------- */
.detail-backdrop {
  height: 300px;
  background-size: cover;
  background-position: center 25%;
  position: relative;
  border-radius: var(--radius);
  margin: 20px 0 0;
}
.detail-main {
  display: flex;
  gap: 28px;
  margin: -90px 0 10px;
  position: relative;
  padding: 0 12px;
}
.detail-poster { flex: 0 0 220px; }
.detail-poster img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
}
.detail-info { flex: 1; padding-top: 100px; min-width: 0; }
.detail-info h1 { font-size: 2rem; margin-bottom: 10px; line-height: 1.2; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); margin-bottom: 14px; }
.genre-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.genre-tag {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--muted);
}
.genre-tag:hover { border-color: var(--accent); color: var(--text); }
.section-label { font-size: 1.05rem; margin: 6px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.overview { color: #c9d1e3; max-width: 760px; }

/* ---------- Trailer ---------- */
.trailer-section { margin: 30px 0; }
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  max-width: 860px;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Cast ---------- */
.cast-card {
  flex: 0 0 120px;
  scroll-snap-align: start;
  text-align: center;
}
.cast-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg2);
}
.cast-name { font-size: 0.8rem; font-weight: 600; margin-top: 8px; }
.cast-char { font-size: 0.72rem; color: var(--muted); }

/* ---------- Misc ---------- */
.page-heading { margin: 26px 0 6px; font-size: 1.8rem; }
.heading-sub { color: var(--muted); font-size: 1.1rem; font-weight: 400; }
.notice-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 30px 0;
  text-align: center;
  color: var(--muted);
}
.notice-box h2 { color: var(--text); margin-bottom: 8px; }
.notice-box a { color: var(--accent); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px 0 40px;
}
.page-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.page-btn:hover { border-color: var(--accent); color: var(--text); }
.page-info { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding: 34px 16px 22px;
  background: #070a12;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: left;
}
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent); }
.footer-more { font-weight: 700; color: var(--accent) !important; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.footer-note { margin-top: 6px; }
.footer-note a { color: #6ea8fe; }

/* ---------- Detail extras ---------- */
.tagline { color: var(--muted); font-style: italic; margin: -4px 0 12px; font-size: 1.02rem; }
.meta-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.meta-pill {
  display: inline-block;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  color: var(--text);
}
a.meta-pill:hover { border-color: var(--accent); color: var(--accent); }
.bookmark-note {
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}
.bookmark-note kbd {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--text);
}

/* ---------- Responsive additions ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-poster { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-arrow { width: 38px; height: 38px; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .row-arrow { width: 28px; height: 28px; }
}

/* ---------- Medium screens: keep the nav on one line ---------- */
@media (max-width: 1150px) {
  .header-inner { gap: 14px; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 13px; }
  .search-form input { width: 150px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    border-top: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-more-btn { display: none; }
  .nav-more-menu { display: block; position: static; border: none; box-shadow: none; padding: 0; min-width: 0; }
  .nav-more-menu a { padding: 12px 4px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .search-form { width: 100%; margin-left: 0; }
  .search-form input { flex: 1; width: auto; }
  .hero { min-height: 52vh; }
  .hero-content { padding: 24px 20px; }
  .hero-content h1 { font-size: 1.7rem; }
  .detail-main { flex-direction: column; margin-top: -60px; }
  .detail-poster { flex: none; width: 150px; }
  .detail-info { padding-top: 0; }
  .detail-info h1 { font-size: 1.5rem; }
  .detail-backdrop { height: 200px; }
  .card { flex-basis: 130px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin: 18px 0 4px; color: var(--muted); font-size: 0.85rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--text); }

/* ---------- Player area ---------- */
.player-area { margin: 12px 0 24px; }
.player-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-backdrop {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.player-empty { position: relative; color: var(--muted); font-size: 1.05rem; }

/* ---------- Detail layout with sidebar ---------- */
.detail-layout { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 20px; }
.detail-primary { flex: 1; min-width: 0; }
.detail-sidebar { flex: 0 0 300px; display: flex; flex-direction: column; gap: 18px; }
.title-row { display: flex; gap: 22px; margin-bottom: 8px; }
.title-poster {
  flex: 0 0 170px;
  width: 170px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  align-self: flex-start;
}
.title-head { min-width: 0; }
.title-head h1 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 12px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
}
.badge-imdb { background: var(--accent); color: #fff; }
.badge-hd { background: var(--accent); color: #fff; }
.badge-dim { background: var(--bg2); border: 1px solid var(--border); color: var(--muted); }

/* ---------- Metadata sidebar card ---------- */
.meta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.meta-card h3 { font-size: 1rem; margin-bottom: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.rating-bar-wrap { margin-bottom: 14px; }
.rating-score { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.rating-score .star { color: var(--accent); }
.rating-bar { height: 8px; background: var(--bg2); border-radius: 4px; overflow: hidden; }
.rating-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #ff7a1a); }
.rating-votes { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.meta-list { display: flex; flex-direction: column; gap: 10px; }
.meta-list > div { display: flex; gap: 10px; font-size: 0.86rem; }
.meta-list dt { flex: 0 0 92px; color: var(--muted); }
.meta-list dd { margin: 0; color: var(--text); }

/* ---------- Share buttons ---------- */
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  transition: transform 0.15s, opacity 0.15s;
}
.share-btn:hover { transform: translateY(-1px); opacity: 0.9; color: #fff; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #229ed9; }
.share-facebook { background: #1877f2; }
.share-x { background: #111; border: 1px solid var(--border); }
.share-reddit { background: #ff4500; }
.share-copy { background: var(--bg2); border: 1px solid var(--border); color: var(--text); }
.share-copy:hover { color: var(--text); }

/* ---------- Seasons & episodes ---------- */
.season-section { margin: 26px 0; }
.season-section h2, .section-sub {
  font-size: 1.35rem;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}
.section-sub { margin-top: 26px; }
.season-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.season-tab {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.season-tab:hover { border-color: var(--accent); color: var(--text); }
.season-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.episode-list { display: flex; flex-direction: column; gap: 12px; }
.episode {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.episode-still {
  flex: 0 0 180px;
  width: 180px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg2);
}
.episode-title { font-weight: 700; margin-bottom: 4px; }
.episode-num {
  color: var(--accent);
  font-weight: 800;
  margin-right: 8px;
}
.episode-air { font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.episode-overview { font-size: 0.85rem; color: #c9d1e3; }
.muted { color: var(--muted); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; margin: 6px 0 20px; }
.tab {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 8px 22px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}
.tab:hover { border-color: var(--accent); color: var(--text); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Genre cloud ---------- */
.genre-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 10px; }
.genre-chip {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 24px;
  font-weight: 600;
}
.genre-chip:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

/* ---------- Country grid ---------- */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin: 20px 0 34px;
}
.country-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, border-color 0.2s;
}
.country-card:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }
.country-flag { font-size: 2.2rem; line-height: 1; }
.country-name { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.country-card:hover .country-name { color: var(--text); }
.country-flag-inline { font-size: 1.6rem; vertical-align: -2px; margin-right: 4px; }

/* ---------- Filter form ---------- */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 16px 0 26px;
}
.filter-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.filter-form select, .filter-form input[type="number"] {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  min-width: 150px;
}
.filter-form select:focus, .filter-form input:focus { outline: none; border-color: var(--accent); }

/* ---------- Active nav ---------- */
.main-nav a.active { color: var(--accent); }

/* ---------- Mobile additions ---------- */
@media (max-width: 900px) {
  .detail-layout { flex-direction: column; }
  .detail-sidebar { flex: none; width: 100%; }
}
@media (max-width: 820px) {
  .title-row { flex-direction: column; }
  .title-poster { width: 130px; flex-basis: auto; }
  .episode { flex-direction: column; }
  .episode-still { width: 100%; flex-basis: auto; }
  .player-backdrop { min-height: 220px; }
}

/* ---------- Ad slots ---------- */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 22px auto;
  padding: 12px 8px;
  max-width: 100%;
  overflow: hidden;
}
.ad-slot:empty { display: none; }
.ad-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a8a8a;
}
.ad-slot iframe, .ad-slot ins, .ad-slot > div { max-width: 100%; }
.ad-sidebar { margin: 0 0 18px; }
@media (max-width: 900px) {
  .ad-slot { margin: 16px auto; padding: 8px 4px; }
}

/* ---------- Custom video sources ---------- */
.source-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.source-pill {
  padding: 9px 18px;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  background: #1b1b1b;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.source-pill:hover { border-color: #f26b3a; color: #fff; }
.source-pill.active { background: #f26b3a; border-color: #f26b3a; color: #fff; }

/* ---------- My Server video player ---------- */
.player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}
.player-wrap video[hidden], .player-wrap iframe[hidden] { display: none; }
.now-playing {
  margin-top: 10px;
  font-size: 13px;
  color: #bdbdbd;
}
.now-playing span { color: #f26b3a; font-weight: 600; }
.now-playing[hidden] { display: none; }
.episode-play {
  margin-top: 10px;
  padding: 8px 16px;
  border: 1px solid #f26b3a;
  border-radius: 6px;
  background: transparent;
  color: #f26b3a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.episode-play:hover { background: #f26b3a; color: #fff; }
.section-heading {
  font-size: 20px;
  margin: 26px 0 14px;
}

/* Episode watch page */
.episode-detail { display: flex; gap: 24px; margin: 26px 0; flex-wrap: wrap; }
.episode-still-large { width: 100%; max-width: 480px; border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; background: #1a1a1a; }
.episode-detail > div { flex: 1; min-width: 260px; }
.episode-detail h2 { margin: 0 0 10px; font-size: 22px; }
.episode-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.episode-detail .share-buttons { margin-top: 14px; }
.episode-title a, .episode a { color: inherit; text-decoration: none; }
.episode-title a:hover { color: #f26b3a; }

/* Episode prev/next buttons + current-episode highlight */
.btn { display: inline-block; background: var(--bg2); border: 1px solid var(--border); color: var(--text); padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.episode.current { border: 1px solid var(--accent); border-radius: 10px; }
.season-section h2 { font-size: 20px; margin: 26px 0 14px; }

/* ---------- Landing page ---------- */
.landing-hero { position: relative; min-height: 68vh; display: flex; align-items: center; justify-content: center; text-align: center; background-size: cover; background-position: center 20%; background-color: #0d0d12; }
.landing-hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,14,.55) 0%, rgba(10,10,14,.82) 100%); }
.landing-hero-inner { position: relative; z-index: 1; max-width: 720px; padding: 64px 20px; }
.landing-hero-inner h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 14px; line-height: 1.15; }
.landing-sub { color: var(--muted); font-size: 1.05rem; margin: 0 0 26px; }
.landing-search { display: flex; gap: 0; max-width: 560px; margin: 0 auto 22px; }
.landing-search input { flex: 1; padding: 15px 18px; font-size: 1rem; border: 1px solid var(--border); border-right: none; border-radius: 10px 0 0 10px; background: rgba(20,20,28,.9); color: var(--text); }
.landing-search input:focus { outline: none; border-color: var(--accent); }
.landing-search button { padding: 15px 28px; font-size: 1rem; font-weight: 700; border: none; border-radius: 0 10px 10px 0; background: var(--accent); color: #fff; cursor: pointer; }
.landing-search button:hover { filter: brightness(1.1); }
.btn-accent { display: inline-block; padding: 13px 30px; font-weight: 700; border-radius: 10px; background: var(--accent); color: #fff !important; text-decoration: none; transition: filter 0.2s; }
.btn-accent:hover { filter: brightness(1.12); }
.landing-section { margin: 44px 0; }
.landing-section h2 { font-size: 24px; margin: 0 0 18px; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.explore-card { display: block; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg2); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.explore-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.explore-title { display: block; font-weight: 700; font-size: 1.05rem; color: var(--text); margin-bottom: 6px; }
.explore-desc { display: block; color: var(--muted); font-size: 0.88rem; }
.landing-about p { color: var(--muted); line-height: 1.7; max-width: 800px; }
.landing-about h3 { margin: 26px 0 12px; }
.faq { max-width: 800px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; background: var(--bg2); }
.faq summary { padding: 14px 18px; cursor: pointer; font-weight: 600; }
.faq details p { padding: 0 18px 14px; margin: 0; }
@media (max-width: 640px) {
  .landing-search { flex-direction: column; gap: 10px; }
  .landing-search input { border-right: 1px solid var(--border); border-radius: 10px; }
  .landing-search button { border-radius: 10px; }
}

/* Landing hero extras: trending quick-links + share */
.landing-hot { margin: 20px 0 0; color: var(--muted); font-size: 0.95rem; }
.landing-hot a { color: var(--text); font-weight: 600; text-decoration: none; }
.landing-hot a:hover { color: var(--accent); }
.landing-share { justify-content: center; margin-top: 18px; }

/* Hero title link */
.hero-title-link { color: inherit; text-decoration: none; }
.hero-title-link:hover { color: var(--accent); }

/* Whole hero slide is clickable (backdrop -> detail page) */
.hero-slide-link { position: absolute; inset: 0; z-index: 2; }
.hero-content a, .hero-content .btn { position: relative; z-index: 3; }
.hero-poster { z-index: 3; }
.hero-arrow { z-index: 4; }
.hero-counter { z-index: 4; }

.landing-cta { margin: 26px 0 6px; }

/* Custom logo image */
.logo-img { height: 30px; width: auto; max-width: 180px; object-fit: contain; display: block; }
