/* StreamHub — Frontend CSS */
:root {
  --bg:       #08080f;
  --bg-card:  #111118;
  --bg-hover: #16161f;
  --border:   #1e1e2e;
  --accent:   #f59e0b;
  --accent-h: #fbbf24;
  --text:     #f1f5f9;
  --muted:    #94a3b8;
  --dim:      #475569;
  --red:      #ef4444;
  --green:    #22c55e;
  --r:        .5rem;
  --r-lg:     .75rem;
  --shadow:   0 4px 24px rgba(0,0,0,.6);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Container ── */
.sh-container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Buttons ── */
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.25rem; border-radius: var(--r); font-size: .875rem;
  font-weight: 600; border: none; transition: all .2s; white-space: nowrap; cursor: pointer;
}
.sh-btn--primary { background: var(--accent); color: #000; }
.sh-btn--primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.sh-btn--ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--border); }
.sh-btn--ghost:hover { background: rgba(255,255,255,.1); }
.sh-btn--outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.sh-btn--outline:hover { background: var(--accent); color: #000; }
.sh-btn--lg { padding: .8rem 1.75rem; font-size: 1rem; }
.sh-btn--sm { padding: .4rem .875rem; font-size: .8rem; }
.sh-btn--xs { padding: .25rem .625rem; font-size: .75rem; }
.sh-btn--full { width: 100%; }

/* ── Tags ── */
.sh-tag {
  display: inline-block; padding: .2rem .6rem; background: rgba(245,158,11,.12);
  color: var(--accent); border-radius: 2rem; font-size: .75rem; font-weight: 600;
}
.sh-tag--sm { padding: .15rem .5rem; font-size: .7rem; }

/* ── Header ── */
.sh-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(8,8,15,.98) 0%, rgba(8,8,15,.9) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: box-shadow .3s;
}
.sh-header.is-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.5); }
.sh-header__inner {
  display: flex; align-items: center; gap: 2rem;
  max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; height: 64px;
}
.sh-header__brand { display: flex; align-items: center; gap: .75rem; }

/* Logo */
.sh-logo { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.sh-logo__icon { color: var(--accent); font-size: 1.1rem; }
.sh-logo__text strong { color: var(--accent); }

/* Nav */
.sh-nav { display: flex; gap: .25rem; flex: 1; }
.sh-nav a {
  padding: .4rem .75rem; border-radius: var(--r); font-size: .875rem;
  color: var(--muted); transition: all .2s; font-weight: 500;
}
.sh-nav a:hover, .sh-nav a.is-active { color: var(--text); background: rgba(255,255,255,.06); }
.sh-nav a.is-active { color: var(--accent); }

.sh-header__actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

/* Search toggle */
.sh-search-toggle {
  background: none; border: none; color: var(--muted); padding: .4rem;
  border-radius: var(--r); transition: color .2s;
}
.sh-search-toggle:hover { color: var(--text); }

/* Auth buttons */
.sh-auth-btns { display: flex; gap: .5rem; }

/* User menu */
.sh-user-menu { position: relative; }
.sh-avatar-btn {
  display: flex; align-items: center; gap: .4rem;
  background: none; border: none; color: var(--text); padding: .35rem;
}
.sh-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  color: #000; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem;
}
.sh-dropdown {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 200px;
  background: #1a1a28; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px);
  transition: all .2s; pointer-events: none;
}
.sh-user-menu.is-open .sh-dropdown { opacity: 1; transform: none; pointer-events: all; }
.sh-dropdown__header { padding: .875rem 1rem; border-bottom: 1px solid var(--border); }
.sh-dropdown__header strong { display: block; font-size: .9rem; }
.sh-dropdown__header small { color: var(--muted); font-size: .75rem; }
.sh-dropdown a, .sh-dropdown button {
  display: block; width: 100%; text-align: left; padding: .6rem 1rem;
  font-size: .875rem; color: var(--text); background: none; border: none;
  transition: background .15s;
}
.sh-dropdown a:hover, .sh-dropdown button:hover { background: rgba(255,255,255,.05); }
.sh-dropdown__divider { height: 1px; background: var(--border); margin: .25rem 0; }
.sh-dropdown__admin { color: var(--accent) !important; }
.sh-dropdown__logout { color: var(--red) !important; }

/* Search bar */
.sh-search-bar {
  position: absolute; top: 100%; left: 0; right: 0; padding: 1rem 1.25rem;
  background: rgba(8,8,15,.98); border-bottom: 1px solid var(--border);
  transform: translateY(-100%); opacity: 0; pointer-events: none; transition: all .25s;
}
.sh-search-bar.is-open { transform: none; opacity: 1; pointer-events: all; }
.sh-search-bar__inner { max-width: 1280px; margin: 0 auto; }
.sh-search-form {
  display: flex; align-items: center; gap: .75rem;
  background: #1a1a28; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: .6rem 1rem;
}
.sh-search-form svg { color: var(--dim); flex-shrink: 0; }
.sh-search-form input {
  flex: 1; background: none; border: none; color: var(--text); font-size: 1rem;
  outline: none;
}
.sh-search-form input::placeholder { color: var(--dim); }
.sh-search-close { background: none; border: none; color: var(--muted); font-size: 1rem; }

/* Hamburger */
.sh-hamburger { background: none; border: none; display: none; flex-direction: column; gap: 4px; padding: .35rem; }
.sh-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: all .25s; }

/* Mobile nav */
.sh-mobile-nav {
  position: fixed; top: 0; left: -100%; width: 260px; height: 100vh; z-index: 1100;
  background: #0d0d1a; border-right: 1px solid var(--border);
  padding: 5rem 1.25rem 2rem; transition: left .3s; display: none;
}
.sh-mobile-nav.is-open { left: 0; }
.sh-mobile-nav__inner { display: flex; flex-direction: column; gap: .25rem; }
.sh-mobile-nav a {
  display: block; padding: .75rem 1rem; border-radius: var(--r);
  color: var(--muted); font-weight: 500; transition: all .2s;
}
.sh-mobile-nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.sh-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1050;
}

/* ── Main ── */
.sh-main { padding-top: 64px; min-height: calc(100vh - 64px); }

/* ── Flash messages ── */
.sh-flash {
  padding: .875rem 1.25rem; font-size: .875rem; font-weight: 500;
  border-left: 3px solid; animation: slideDown .3s;
}
.sh-flash--success { background: rgba(34,197,94,.1); border-color: var(--green); color: #86efac; }
.sh-flash--notice  { background: rgba(245,158,11,.1); border-color: var(--accent); color: #fde68a; }
.sh-flash--error   { background: rgba(239,68,68,.1); border-color: var(--red); color: #fca5a5; }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Hero Slider ── */
.sh-hero { position: relative; height: 80vh; min-height: 480px; overflow: hidden; }
.sh-hero__slides { position: relative; height: 100%; }
.sh-hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s; display: flex; align-items: flex-end;
}
.sh-hero__slide.is-active { opacity: 1; }
.sh-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,15,1) 0%, rgba(8,8,15,.6) 40%, rgba(8,8,15,.1) 100%);
}
.sh-hero__content {
  position: relative; z-index: 1; padding: 3rem max(1.25rem, calc((100% - 1280px)/2 + 1.25rem));
  max-width: calc(1280px + 2.5rem); width: 100%;
}
.sh-hero__title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: .75rem; }
.sh-hero__subtitle { font-size: 1rem; color: var(--muted); margin-bottom: 1.5rem; max-width: 480px; }
.sh-hero__dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 2; }
.sh-hero__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); border: none; transition: all .3s; }
.sh-hero__dot.is-active { background: var(--accent); width: 24px; border-radius: 4px; }
.sh-hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.1); color: var(--text);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.sh-hero__arrow:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.sh-hero__arrow--prev { left: 1.5rem; }
.sh-hero__arrow--next { right: 1.5rem; }

/* Banner (no slider) */
.sh-banner { background: linear-gradient(135deg, #0d0d1a 0%, #1a0a2e 100%); padding: 5rem 1.25rem; text-align: center; }
.sh-banner__inner h1 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.sh-banner__inner p { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* ── Sections ── */
.sh-section { padding: 2.5rem 0; }
.sh-section--related { padding: 2rem 0; }
.sh-section__head {
  display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem;
}
.sh-section__title { font-size: 1.25rem; font-weight: 700; }
.sh-section__accent { color: var(--accent); }
.sh-section__more { color: var(--muted); font-size: .875rem; margin-left: auto; transition: color .2s; }
.sh-section__more:hover { color: var(--accent); }
.sh-section__count { color: var(--muted); font-size: .875rem; }

/* ── Cards ── */
.sh-card { flex: 0 0 180px; width: 180px; }
.sh-card__link { display: block; }
.sh-card__img-wrap { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 2/3; background: var(--bg-card); }
.sh-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sh-card__link:hover .sh-card__img { transform: scale(1.04); }
.sh-card__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.sh-card__link:hover .sh-card__overlay { opacity: 1; }
.sh-card__play {
  width: 48px; height: 48px; background: var(--accent); color: #000;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; padding-left: 3px;
}
.sh-card__badge {
  position: absolute; top: .5rem; left: .5rem; padding: .2rem .5rem;
  border-radius: 3px; font-size: .7rem; font-weight: 700;
}
.sh-card__badge--series { background: rgba(124,58,237,.8); color: #fff; }
.sh-card__rating { position: absolute; bottom: .5rem; right: .5rem; background: rgba(0,0,0,.7); color: var(--accent); font-size: .75rem; font-weight: 700; padding: .2rem .5rem; border-radius: 3px; }
.sh-card__body { padding: .6rem .25rem .25rem; }
.sh-card__title { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-card__meta { display: flex; gap: .5rem; margin-top: .2rem; font-size: .75rem; color: var(--muted); }
.sh-card__genre { color: var(--accent); }

/* ── Featured Grid ── */
.sh-featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 900px) { .sh-featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .sh-featured-grid { grid-template-columns: 1fr; } }

.sh-featured-card {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden;
  background-size: cover; background-position: center; display: flex; align-items: flex-end;
  transition: transform .3s;
}
.sh-featured-card:hover { transform: scale(1.02); }
.sh-featured-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,15,.95) 0%, rgba(8,8,15,.2) 60%); }
.sh-featured-card__content { position: relative; z-index: 1; padding: 1.25rem; }
.sh-featured-card__genres { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }
.sh-featured-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; line-height: 1.3; }
.sh-featured-card__meta { display: flex; gap: .5rem; color: var(--muted); font-size: .8rem; margin-bottom: .75rem; align-items: center; flex-wrap: wrap; }

/* ── Scroll Row ── */
.sh-scroll-row { position: relative; }
.sh-cards { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; -ms-overflow-style: none; scrollbar-width: none; }
.sh-cards::-webkit-scrollbar { display: none; }
.sh-cards .sh-card { scroll-snap-align: start; flex-shrink: 0; }
.sh-scroll-btn {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 5;
  width: 36px; height: 52px; background: rgba(8,8,15,.85); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--r); font-size: 1.25rem; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.sh-scroll-btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.sh-scroll-btn--prev { left: -14px; }
.sh-scroll-btn--next { right: -14px; }

/* ── Grid ── */
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.sh-grid .sh-card { width: 100%; flex: none; }
.sh-grid--compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }

/* ── Genres pills ── */
.sh-genres { display: flex; flex-wrap: wrap; gap: .6rem; }
.sh-genre-pill {
  display: flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 2rem;
  font-size: .875rem; font-weight: 500; transition: all .2s;
}
.sh-genre-pill:hover { border-color: var(--accent); color: var(--accent); background: rgba(245,158,11,.06); }
.sh-genre-pill small { color: var(--dim); font-size: .75rem; }

/* ── CTA section ── */
.sh-cta { background: linear-gradient(135deg, rgba(245,158,11,.06) 0%, rgba(124,58,237,.08) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4rem 1.25rem; text-align: center; }
.sh-cta__inner h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: .75rem; }
.sh-cta__inner p { color: var(--muted); margin-bottom: 2rem; font-size: 1rem; }
.sh-cta__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Pagination ── */
.sh-pagination { margin: 2rem 0; }
.sh-pager { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.sh-pager__btn {
  padding: .5rem .9rem; border-radius: var(--r); font-size: .85rem;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text); transition: all .2s;
}
.sh-pager__btn:hover { border-color: var(--accent); color: var(--accent); }
.sh-pager__btn--active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }
.sh-pager__btn--disabled { opacity: .4; pointer-events: none; }
.sh-pager__dots { padding: .5rem .4rem; color: var(--dim); }

/* ── Filters ── */
.sh-filters { margin-bottom: 1.5rem; }
.sh-filters__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.sh-select {
  padding: .5rem .875rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text); font-size: .875rem; outline: none; cursor: pointer;
}
.sh-select:focus { border-color: var(--accent); }

/* ── Page head ── */
.sh-page-head { padding: 2rem 0 1rem; }
.sh-page-head__title { font-size: 1.75rem; font-weight: 800; }

/* ── Empty state ── */
.sh-empty { text-align: center; padding: 4rem 1rem; }
.sh-empty--full { grid-column: 1/-1; }
.sh-empty__icon { font-size: 3rem; margin-bottom: 1rem; }
.sh-empty h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.sh-empty p { color: var(--muted); margin-bottom: 1.5rem; }

/* ── Detail page ── */
.sh-detail { padding-top: 0; }
.sh-detail__backdrop {
  position: fixed; top: 64px; left: 0; right: 0; height: 50vh;
  background-size: cover; background-position: center top; z-index: -1;
}
.sh-detail__backdrop-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,8,15,.3) 0%, rgba(8,8,15,1) 100%); }
.sh-detail__container { padding-top: calc(50vh - 100px); }
.sh-detail__layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; }
.sh-detail__poster-col { }
.sh-detail__poster { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 2/3; background: var(--bg-card); box-shadow: 0 8px 40px rgba(0,0,0,.6); }
.sh-detail__poster img { width: 100%; height: 100%; object-fit: cover; }
.sh-detail__poster-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.sh-detail__actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.sh-detail__genres { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.sh-detail__title { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.sh-detail__stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.sh-stat { display: flex; flex-direction: column; }
.sh-stat__val { font-size: 1.1rem; font-weight: 700; }
.sh-stat__val--gold { color: var(--accent); }
.sh-stat__label { font-size: .75rem; color: var(--muted); margin-top: .1rem; }
.sh-detail__desc { }
.sh-detail__desc h3 { font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .6rem; }
.sh-detail__desc p { color: #c4c4d0; line-height: 1.75; }

/* Seasons */

/* ── Episode list redesign ── */
.sh-seasons { margin-top: 2rem; }
.sh-seasons__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: .75rem; }
.sh-seasons__head h3 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; }
.sh-season-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.sh-season-tab { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: .3rem .85rem; border-radius: 20px; font-size: .8rem; cursor: pointer; transition: all .15s; }
.sh-season-tab.is-active, .sh-season-tab:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.sh-season-panel { display: none; }
.sh-season-panel.is-active { display: block; }
.sh-season-panel__meta { display: flex; align-items: center; gap: .75rem; padding: .6rem 0 .75rem; border-bottom: 1px solid var(--border); margin-bottom: .25rem; }
.sh-season-panel__name { font-weight: 600; font-size: .9rem; }
.sh-season-panel__count { font-size: .8rem; color: var(--muted); }
.sh-episode-list { }
.sh-ep { display: grid; grid-template-columns: 160px 28px 1fr auto; align-items: center; gap: .875rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.05); transition: background .15s; }
.sh-ep:last-child { border-bottom: none; }
.sh-ep:hover { background: rgba(255,255,255,.025); border-radius: var(--r); padding-left: .5rem; padding-right: .5rem; }
.sh-ep--locked { opacity: .55; }
.sh-ep--locked:hover { opacity: .7; }
.sh-ep__thumb { position: relative; width: 160px; height: 90px; border-radius: 6px; overflow: hidden; background: var(--bg-card); flex-shrink: 0; }
.sh-ep__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sh-ep__thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg-card); }
.sh-ep__play-icon { font-size: 1.25rem; opacity: .4; }
.sh-ep__lock-icon { font-size: 1.1rem; opacity: .5; }
.sh-ep__thumb-hover { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; opacity: 0; transition: opacity .15s; }
.sh-ep:hover .sh-ep__thumb-hover { opacity: 1; }
.sh-ep__num { text-align: center; font-size: .8rem; color: var(--dim); font-weight: 600; }
.sh-ep__body { min-width: 0; }
.sh-ep__top { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .3rem; }
.sh-ep__title { font-size: .9rem; font-weight: 600; }
.sh-ep__badges { display: flex; align-items: center; gap: .4rem; }
.sh-ep__dur { font-size: .75rem; color: var(--muted); }
.sh-ep__free { font-size: .68rem; background: rgba(34,197,94,.15); color: #22c55e; padding: .1rem .45rem; border-radius: 3px; font-weight: 700; letter-spacing: .03em; }
.sh-ep__synopsis { font-size: .8rem; color: var(--muted); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-ep__action { flex-shrink: 0; }
.sh-ep__btn-lock { font-size: .85rem; }
.sh-btn--sm { padding: .35rem .75rem; font-size: .8rem; }
@media (max-width: 600px) {
  .sh-ep { grid-template-columns: 100px 24px 1fr auto; gap: .6rem; }
  .sh-ep__thumb { width: 100px; height: 56px; }
  .sh-ep__synopsis { display: none; }
}
@media (max-width: 420px) {
  .sh-ep { grid-template-columns: 80px 1fr auto; }
  .sh-ep__num { display: none; }
  .sh-ep__thumb { width: 80px; height: 45px; }
}

.sh-card--form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; }
.sh-card--form__title { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }

/* ── Static page ── */
.sh-static-page { max-width: 800px; margin: 0 auto; padding: 3rem 0; }
.sh-static-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.sh-static-page__content { color: #c4c4d0; line-height: 1.85; font-size: .95rem; }

/* ── Footer ── */
.sh-footer { background: #060610; border-top: 1px solid var(--border); padding: 3rem 0 0; margin-top: 4rem; }
.sh-footer__inner { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2.5rem; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem 2.5rem; }
.sh-footer__brand .sh-logo { margin-bottom: .75rem; }
.sh-footer__brand p { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.sh-footer__links h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: .875rem; font-weight: 700; }
.sh-footer__links { display: flex; flex-direction: column; gap: .4rem; }
.sh-footer__links a { color: var(--muted); font-size: .875rem; transition: color .2s; }
.sh-footer__links a:hover { color: var(--text); }
.sh-footer__bottom { border-top: 1px solid var(--border); padding: 1rem 1.25rem; text-align: center; color: var(--dim); font-size: .8rem; max-width: 1280px; margin: 0 auto; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sh-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sh-nav { display: none; }
  .sh-hamburger { display: flex; }
  .sh-auth-btns { display: none; }
  .sh-mobile-nav { display: flex; flex-direction: column; }
  .sh-detail__layout { grid-template-columns: 1fr; }
  .sh-detail__poster-col { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; }
  .sh-detail__backdrop { position: relative; top: 0; height: 220px; }
  .sh-detail__container { padding-top: 0; }
  .sh-detail__backdrop-overlay { background: linear-gradient(to bottom, rgba(8,8,15,.4) 0%, rgba(8,8,15,1) 100%); }
  .sh-profile-page { grid-template-columns: 1fr; }
  .sh-footer__inner { grid-template-columns: 1fr 1fr; }
  .sh-hero { height: 60vh; }
  .sh-hero__content { padding: 2rem 1.25rem; }
}

@media (max-width: 520px) {
  .sh-detail__poster-col { grid-template-columns: 110px 1fr; }
  .sh-detail__backdrop { height: 180px; }
  .sh-detail__title { font-size: 1.3rem; }
  .sh-footer__inner { grid-template-columns: 1fr; }
  .sh-plans { grid-template-columns: 1fr; }
  .sh-hero { height: 50vh; min-height: 320px; }
  .sh-scroll-btn { display: none; }
}
.sh-card--form { width: 100%; } .sh-card--form .sh-form { background: none; border: none; padding: 0; border-radius: 0; }

/* ── Watch / Player page ── */
.sh-watch { background: #000; min-height: calc(100vh - 70px); }
.sh-watch__player-strip { background: #000; width: 100%; }
.sh-watch__player-wrap { max-width: 1280px; margin: 0 auto; aspect-ratio: 16/9; position: relative; background: #000; }
.sh-watch__video { width: 100%; height: 100%; display: block; background: #000; }
.sh-watch__iframe { width: 100%; height: 100%; display: block; border: none; }
.sh-watch__body { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; padding: 1.5rem 0 3rem; }
.sh-watch__body--movie { grid-template-columns: 1fr; max-width: 860px; }
.sh-watch__breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.sh-watch__breadcrumb a { color: var(--muted); text-decoration: none; transition: color .15s; }
.sh-watch__breadcrumb a:hover { color: var(--text); }
.sh-watch__breadcrumb-sep { opacity: .4; }
.sh-watch__title { font-size: 1.6rem; font-weight: 800; line-height: 1.25; margin-bottom: .5rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sh-watch__ep-badge { background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 4px; letter-spacing: .04em; flex-shrink: 0; }
.sh-watch__meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: .75rem; }
.sh-watch__desc { font-size: .9rem; color: #a0a0b0; line-height: 1.7; margin-bottom: 1.25rem; max-width: 640px; }
.sh-watch__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Playlist sidebar */
.sh-watch__playlist { background: var(--bg-card); border-radius: var(--r-lg); overflow: hidden; align-self: start; max-height: calc(100vh - 120px); display: flex; flex-direction: column; }
.sh-watch__playlist-head { display: flex; align-items: center; justify-content: space-between; padding: .875rem 1rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sh-watch__playlist-head span:first-child { font-size: .875rem; font-weight: 700; }
.sh-watch__playlist-count { font-size: .75rem; color: var(--muted); }
.sh-watch__playlist-list { overflow-y: auto; flex: 1; }
.sh-watch__playlist-list::-webkit-scrollbar { width: 4px; }
.sh-watch__playlist-list::-webkit-scrollbar-track { background: transparent; }
.sh-watch__playlist-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.sh-watch__pl-item { display: flex; align-items: center; gap: .625rem; padding: .625rem .875rem; text-decoration: none; color: var(--text); transition: background .15s; border-bottom: 1px solid rgba(255,255,255,.04); }
.sh-watch__pl-item:hover { background: rgba(255,255,255,.05); }
.sh-watch__pl-item.is-active { background: rgba(229,9,20,.08); border-left: 3px solid var(--accent); }
.sh-watch__pl-thumb { position: relative; width: 80px; height: 45px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: var(--bg); }
.sh-watch__pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sh-watch__pl-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); font-size: .75rem; color: var(--dim); }
.sh-watch__pl-playing { color: var(--accent); font-size: .9rem; }
.sh-watch__pl-now { position: absolute; inset: 0; background: rgba(229,9,20,.3); display: flex; align-items: center; justify-content: center; font-size: .9rem; color: #fff; }
.sh-watch__pl-info { flex: 1; min-width: 0; }
.sh-watch__pl-num { display: block; font-size: .68rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.sh-watch__pl-title { display: block; font-size: .8rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: .1rem 0; }
.sh-watch__pl-dur { font-size: .7rem; color: var(--dim); }

@media (max-width: 900px) {
  .sh-watch__body { grid-template-columns: 1fr; }
  .sh-watch__playlist { max-height: 340px; }
  .sh-watch__playlist-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .sh-watch__pl-item { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .sh-watch__pl-thumb { width: 100%; height: 80px; }
}
@media (max-width: 520px) {
  .sh-watch__title { font-size: 1.25rem; }
  .sh-watch__playlist-list { grid-template-columns: 1fr 1fr; }
}

/* ── Plans / Pricing page ── */
.sh-plans-page { padding: 3rem 0 4rem; }
.sh-plans-page__head { text-align: center; margin-bottom: 2rem; }
.sh-plans-page__head h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .5rem; }
.sh-plans-page__head p { color: var(--muted); font-size: 1rem; }
.sh-plans-toggle { display: flex; justify-content: center; gap: .375rem; margin-bottom: 2.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 30px; padding: .25rem; width: fit-content; margin-left: auto; margin-right: auto; }
.sh-plans-toggle__btn { padding: .4rem 1.25rem; border-radius: 25px; border: none; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 600; cursor: pointer; transition: all .2s; white-space: nowrap; }
.sh-plans-toggle__btn.is-active { background: var(--accent); color: #fff; }
.sh-plans-toggle__save { background: #16a34a; color: #fff; font-size: .65rem; font-weight: 700; padding: .15rem .45rem; border-radius: 10px; margin-left: .35rem; vertical-align: middle; }
.sh-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; margin-bottom: 4rem; }
.sh-plan { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; position: relative; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.sh-plan:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.sh-plan--popular { border-color: var(--accent); background: linear-gradient(135deg, rgba(229,9,20,.06) 0%, var(--bg-card) 60%); }
.sh-plan--popular:hover { box-shadow: 0 12px 40px rgba(229,9,20,.2); }
.sh-plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; padding: .25rem .9rem; border-radius: 20px; letter-spacing: .05em; white-space: nowrap; text-transform: uppercase; }
.sh-plan__head { margin-bottom: 1.25rem; }
.sh-plan__name { font-size: 1.2rem; font-weight: 700; margin-bottom: .3rem; }
.sh-plan__desc { font-size: .85rem; color: var(--muted); }
.sh-plan__price { margin-bottom: 1.5rem; }
.sh-plan__amount { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.sh-plan__period { font-size: .9rem; color: var(--muted); margin-left: .15rem; }
.sh-plan__billed { display: block; font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.sh-plan__features { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .6rem; }
.sh-plan__features li { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; color: #c4c4d0; }
.sh-plan__features li::before { content: '✓'; color: #22c55e; font-weight: 700; flex-shrink: 0; margin-top: .05rem; }

/* FAQ section */
.sh-plans-faq { border-top: 1px solid var(--border); padding-top: 3rem; }
.sh-plans-faq h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }
.sh-faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.sh-faq { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.sh-faq h4 { font-size: .9rem; font-weight: 700; margin-bottom: .5rem; }
.sh-faq p { font-size: .85rem; color: var(--muted); line-height: 1.6; margin: 0; }

@media (max-width: 860px) {
  .sh-plans { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .sh-faq-list { grid-template-columns: 1fr; }
}

/* ── Auth pages (login / register) ── */
.sh-auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: var(--bg); }
.sh-auth-box { width: 100%; max-width: 420px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2.25rem 2rem 2rem; }
.sh-auth-box__head { text-align: center; margin-bottom: 1.75rem; }
.sh-auth-box__head .sh-logo { display: flex; justify-content: center; font-size: 1.35rem; margin-bottom: .35rem; }
.sh-auth-box__head h1 { font-size: 1.35rem; font-weight: 800; margin: 0 0 .25rem; }
.sh-auth-box__head p { font-size: .875rem; color: var(--muted); margin: 0; }
.sh-form { display: flex; flex-direction: column; gap: 1.1rem; }
.sh-form__group { display: flex; flex-direction: column; gap: .35rem; }
.sh-form__group label { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.sh-input { width: 100%; padding: .65rem .9rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: .925rem; outline: none; transition: border-color .15s; box-sizing: border-box; }
.sh-input:focus { border-color: var(--accent); }
.sh-input-wrap { position: relative; }
.sh-input-wrap .sh-input { padding-right: 2.75rem; }
.sh-input-eye { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0; line-height: 1; }
.sh-input-eye:hover { color: var(--text); }
.sh-form__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sh-checkbox { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); cursor: pointer; user-select: none; }
.sh-checkbox input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.sh-form__row a { font-size: .85rem; color: var(--accent); text-decoration: none; }
.sh-form__row a:hover { text-decoration: underline; }
.sh-form-error { background: rgba(229,9,20,.12); border: 1px solid rgba(229,9,20,.3); color: #ff6b6b; border-radius: 8px; padding: .75rem 1rem; font-size: .85rem; }
.sh-form-error ul { margin: 0; padding-left: 1.25rem; }
.sh-form-error ul li { margin-bottom: .2rem; }
.sh-auth-box__foot { margin-top: 1.25rem; text-align: center; font-size: .875rem; color: var(--muted); }
.sh-auth-box__foot a { color: var(--accent); text-decoration: none; font-weight: 600; }
.sh-auth-box__foot a:hover { text-decoration: underline; }
.sh-auth-page .sh-btn--primary { width: 100%; justify-content: center; padding: .7rem 1rem; font-size: .95rem; }

/* Auth page — hide nav/footer */
.is-auth .sh-header, .is-auth .sh-mobile-nav, .is-auth .sh-overlay, .is-auth .sh-footer { display: none; }
.is-auth .sh-main { padding-top: 0; }

/* ── Profile pages ── */
.sh-profile-page { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2.5rem 0 4rem; align-items: start; }
.sh-profile-page__sidebar { position: sticky; top: 80px; }
.sh-profile-avatar { text-align: center; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 1rem; }
.sh-profile-avatar__circle { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.sh-profile-avatar h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.sh-profile-avatar p { font-size: .8rem; color: var(--muted); word-break: break-all; }
.sh-profile-nav { display: flex; flex-direction: column; gap: .25rem; }
.sh-profile-nav a { display: block; padding: .6rem 1rem; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: background .15s, color .15s; }
.sh-profile-nav a:hover { background: var(--bg-card); color: var(--text); }
.sh-profile-nav a.is-active { background: rgba(229,9,20,.12); color: var(--accent); font-weight: 600; }
.sh-profile-page__main { display: flex; flex-direction: column; gap: 1.25rem; }
.sh-profile-page__heading { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.sh-profile-sub { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.5rem; }
.sh-profile-sub__active, .sh-profile-sub__none { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sh-profile-sub__icon { font-size: 1.75rem; flex-shrink: 0; }
.sh-profile-sub__active h3, .sh-profile-sub__none h3 { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.sh-profile-sub__active p, .sh-profile-sub__none p { font-size: .85rem; color: var(--muted); }
.sh-profile-sub__none .sh-btn { margin-left: auto; }
@media (max-width: 720px) {
  .sh-profile-page { grid-template-columns: 1fr; }
  .sh-profile-page__sidebar { position: static; }
  .sh-profile-sub__none .sh-btn { margin-left: 0; margin-top: .75rem; }
}

/* Google OAuth button + auth divider */
.sh-btn-google { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; padding: .65rem 1rem; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; border-radius: 8px; font-size: .9rem; font-weight: 600; text-decoration: none; transition: box-shadow .15s, background .15s; margin-bottom: .75rem; }
.sh-btn-google:hover { box-shadow: 0 1px 6px rgba(0,0,0,.2); background: #f8f8f8; }
.sh-auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .8rem; margin: .75rem 0; }
.sh-auth-divider::before, .sh-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
