/* Кино — тема онлайн-кинотеатра. Тёмная, акцент #19c37d. */
:root{
  --bg:#0d0f14; --panel:#171a22; --panel-2:#1a1d27; --border:#262a36;
  --text:#dfe3ea; --muted:#9aa1b2; --muted-2:#6b7283;
  --accent:#19c37d; --accent-ink:#06241a; --star:#ffb43a;
  --radius:10px;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);
  font-family:'Inter',-apple-system,Segoe UI,Roboto,Arial,sans-serif;line-height:1.5}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:1200px;margin:0 auto;padding:0 18px}

/* Топбар */
.topbar{position:sticky;top:0;z-index:50;background:rgba(13,15,20,.95);
  backdrop-filter:blur(8px);border-bottom:1px solid #1c1f29}
.topbar-inner{display:flex;align-items:center;gap:16px;height:60px;max-width:1400px;margin:0 auto;padding:0 18px}
.burger{display:none;background:none;border:0;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:0}
.logo{display:flex;align-items:center;gap:9px;text-decoration:none}
.logo-mark{display:block;flex:0 0 auto}
.logo-text{font-size:19px;font-weight:600;letter-spacing:.3px}
.logo-text b{color:#fff;font-weight:600}
.logo-text i{color:var(--accent);font-style:normal;font-weight:600}
.search{flex:1;max-width:360px;margin-left:auto}
.search input{width:100%;background:var(--panel);border:1px solid var(--border);
  border-radius:8px;padding:8px 12px;color:var(--text);font-size:14px}
.btn-login{background:var(--accent);color:var(--accent-ink);font-weight:600;
  font-size:14px;padding:8px 16px;border-radius:8px;white-space:nowrap}

/* Layout: сайдбар + контент */
.layout{display:flex;max-width:1400px;margin:0 auto;align-items:flex-start}
.sidebar{flex:0 0 230px;width:230px;position:sticky;top:60px;align-self:flex-start;
  padding:16px 10px;border-right:1px solid #1c1f29}
.main{flex:1;min-width:0;padding:0 6px}
.backdrop{display:none}

/* Сайдбар-меню */
.sidebar-nav{display:flex;flex-direction:column;gap:2px}
.snav-item,.snav-head{display:block;padding:8px 12px;border-radius:8px;color:var(--text);font-size:14px;font-weight:500}
.snav-item:hover,.snav-head:hover{background:var(--panel)}
.snav-group{margin-top:10px}
.snav-head{color:#fff}
.snav-sub{display:flex;flex-direction:column;padding:2px 0 2px 6px;margin-top:2px}
.snav-label{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted-2);padding:6px 12px 6px}
.snav-sub-item{display:flex;justify-content:space-between;align-items:center;gap:8px;
  padding:5px 12px;border-radius:6px;color:var(--muted);font-size:13px}
.snav-sub-item:hover{background:var(--panel);color:#fff}
.snav-count{color:var(--muted-2);font-size:12px;background:var(--panel);padding:1px 8px;border-radius:10px;flex:0 0 auto}
.snav-sub-item:hover .snav-count{background:#2a2f3a}

/* Мобильный сайдбар (бургер) */
@media(max-width:900px){
  .burger{display:block}
  .search{max-width:none}
  .sidebar{position:fixed;top:60px;left:0;bottom:0;height:auto;width:260px;background:var(--bg);
    z-index:55;transform:translateX(-100%);transition:transform .2s ease;border-right:1px solid #262a36}
  body.nav-open .sidebar{transform:none}
  body.nav-open .backdrop{display:block;position:fixed;inset:60px 0 0 0;background:rgba(0,0,0,.55);z-index:54}
}

/* Hero */
.hero{margin:18px auto;display:flex;min-height:240px;background:var(--panel-2);
  border-radius:14px;overflow:hidden}
.hero-poster{width:180px;background:#243a52 center/cover}
.hero-body{padding:26px 28px;display:flex;flex-direction:column;justify-content:center}
.hero-eyebrow{color:var(--accent);font-size:12px;font-weight:600;text-transform:uppercase;
  letter-spacing:.6px;margin-bottom:8px}
.hero h1{margin:0 0 10px;font-size:28px}
.hero-meta{color:var(--muted);font-size:14px;margin-bottom:14px}
.hero-meta .star{color:var(--star)}
.hero-desc{color:#aeb4c2;max-width:520px;margin-bottom:18px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 22px;border-radius:8px;
  font-weight:600;font-size:14px;background:var(--accent);color:var(--accent-ink)}
.btn.ghost{background:#22262f;color:var(--text);font-weight:400}

/* Полки и карточки */
.shelf-title{font-size:18px;margin:24px 0 12px}
.breadcrumbs{font-size:13px;color:var(--muted-2);padding:16px 0 4px}
.breadcrumbs a:hover{color:#fff}
.section-h1{font-size:24px;margin:8px 0 12px}
.genre-desc{color:#aeb4c2;line-height:1.7;max-width:820px;margin-bottom:18px}
.shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}
.poster{display:block}
.poster-img{position:relative;aspect-ratio:2/3;background:#222 center/cover;
  border-radius:var(--radius);transition:transform .15s}
.poster:hover .poster-img{transform:translateY(-4px)}
.poster-rating{position:absolute;top:8px;left:8px;background:rgba(0,0,0,.65);
  color:var(--star);font-size:12px;padding:2px 7px;border-radius:6px}
.poster-title{margin-top:8px;font-size:14px}
.poster-meta{font-size:12px;color:var(--muted-2)}
.poster-current .poster-img{outline:2px solid var(--accent)}

/* Страница фильма */
.film{padding:24px 0}
.film-top{display:flex;gap:28px;margin-bottom:24px}
.film-poster{flex:0 0 220px;aspect-ratio:2/3;background:#222 center/cover;border-radius:14px}
.film-info h1{margin:0 0 10px;font-size:30px}
.film-meta{color:var(--muted);margin-bottom:16px}
.film-meta .star{color:var(--star)}
.episode-badge{display:inline-block;background:var(--panel);border:1px solid var(--border);
  color:var(--text);padding:4px 12px;border-radius:20px;font-size:13px}
.season-title{font-size:15px;color:var(--muted);margin:22px 0 10px;font-weight:600}
.film-desc{color:#aeb4c2;max-width:640px}
.film-player{position:relative;aspect-ratio:16/9;background:#000;border-radius:14px;
  overflow:hidden;margin:8px 0 24px}
.film-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.film-desc-full{margin:24px 0;color:#c2c7d2;line-height:1.7;max-width:820px}
.film-desc-full h2,.film-desc-full h3{color:#fff}
.reviews{margin:32px 0}
.reviews-title{font-size:18px;margin-bottom:14px}
.reviews-empty{color:var(--muted-2)}
.review{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;margin-bottom:12px}
.review-author{font-weight:500}
.review-rating{color:var(--star);font-size:13px;margin-bottom:6px}
.review-date{color:var(--muted-2);font-size:12px;font-weight:400}
.review-text{color:#c2c7d2;margin-top:4px;font-size:14px}
.comment-form{display:flex;flex-direction:column;gap:10px;margin-bottom:18px;max-width:640px}
.comment-form .cf-name{background:var(--panel);border:1px solid var(--border);border-radius:8px;
  padding:8px 12px;color:var(--text);font-size:14px;max-width:260px}
.comment-form textarea{background:var(--panel);border:1px solid var(--border);border-radius:8px;
  padding:10px 12px;color:var(--text);font-size:14px;font-family:inherit;resize:vertical;width:100%}
.comment-form .cf-btn{align-self:flex-start;background:var(--accent);color:var(--accent-ink);
  font-weight:600;font-size:14px;padding:9px 20px;border:0;border-radius:8px;cursor:pointer}
.cf-msg{color:var(--accent);margin-bottom:10px}

/* Подвал */
.site-footer{border-top:1px solid #1c1f29;margin-top:40px;padding:24px 0;
  color:var(--muted-2);font-size:13px}
.site-footer a:hover{color:#fff}

@media(max-width:680px){
  .main-nav{display:none}
  .film-top{flex-direction:column}
  .film-poster{flex-basis:auto;width:160px}
  .hero-poster{display:none}
}
