:root{
  --bg:#0b1020;
  --bg2:#151d33;
  --card:#111827;
  --line:rgba(255,255,255,.08);
  --text:#f8fafc;
  --muted:#cbd5e1;
  --accent:#f59e0b;
  --accent2:#fb7185;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:linear-gradient(180deg, var(--bg), var(--bg2));
}

a{
  color:inherit;
}

.container{
  width:min(1180px, 92%);
  margin:0 auto;
}

header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,16,32,.86);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:18px 0;
}

.logo{
  display:flex;
  align-items:center;
  min-width:0;
}

.logo img{
  max-height:56px;
  width:auto;
  display:block;
  object-fit:contain;
}

.nav-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:auto;
  position:relative;
}

.menu-checkbox{
  display:none;
}

.menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:12px;
  background:rgba(255,255,255,.05);
  color:#ffffff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  user-select:none;
}

nav{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

nav a{
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  padding:8px 0;
}

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

.hero{
  padding:40px 0 24px;
}

.hero h1{
  font-size:42px;
  margin:0;
  line-height:1.15;
}

/* Лента с дни + стрелки */
.days-nav{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.days-strip{
  display:flex;
  gap:12px;
  overflow-x:auto;
  scroll-behavior:smooth;
  padding:6px 0 20px;
  flex:1;
}

.days-strip::-webkit-scrollbar{
  height:6px;
}

.days-arrow{
  flex:0 0 auto;
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:28px;
  line-height:1;
  cursor:pointer;
  transition:.2s ease;
}

.days-arrow:hover{
  border-color:rgba(245,158,11,.45);
  color:#fde68a;
}

.days-arrow:disabled{
  opacity:0.35;
  cursor:default;
}

/* Дни */
.day-tab{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:16px;
  padding:12px 16px;
  min-width:96px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  font-weight:700;
  transition:.2s ease;
}

.day-tab:hover{
  border-color:rgba(245,158,11,.45);
}

.day-tab.active{
  background:rgba(245,158,11,.16);
  border-color:rgba(245,158,11,.4);
  color:#fde68a;
}

.day-label{
  font-size:14px;
}

.day-date{
  font-size:20px;
}

.day-tab.empty-day{
  background:rgba(255,255,255,.02);
  border-color:rgba(255,255,255,.05);
  color:rgba(248,250,252,.45);
  opacity:0.65;
  cursor:not-allowed;
}

.day-tab.empty-day:hover{
  border-color:rgba(255,255,255,.05);
  transform:none;
}

.day-tab.empty-day .day-date,
.day-tab.empty-day .day-label{
  color:rgba(248,250,252,.45);
}

.day-empty-text{
  font-size:10px;
  margin-top:2px;
  color:rgba(248,250,252,.35);
}

/* Карти */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:20px;
  align-items:start;
  padding-bottom:20px;
}

.card{
  background:rgba(17,24,39,.95);
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 16px 40px rgba(0,0,0,.28);
  display:flex;
  flex-direction:column;
  height:100%;
}

.poster{
  width:100%;
  aspect-ratio:16 / 10;
  object-fit:cover;
  display:block;
  background:#0f172a;
}

.card-body{
  padding:18px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.card h3{
  margin:0 0 10px;
  font-size:24px;
  line-height:1.25;
  min-height:72px;
}

.meta{
  color:var(--muted);
  line-height:1.7;
  font-size:15px;
}

.actions{
  margin-top:12px;
}

.trailer-btn{
  width:100%;
  padding:10px;
  border-radius:10px;
  border:none;
  background:linear-gradient(135deg, #f97316, #f59e0b);
  color:white;
  font-weight:700;
  cursor:pointer;
  transition:0.2s;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.trailer-btn:hover{
  transform:scale(1.03);
}

.times{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:14px;
  flex-grow:1;
}

.schedule-group{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;
}

.schedule-label{
  color:var(--text);
  font-weight:700;
  font-size:16px;
  line-height:1.4;
}

.schedule-hours{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* Часове + зали */
.time{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:82px;
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  white-space:nowrap;
  line-height:1.1;
}

.time-value{
  font-size:14px;
  font-weight:800;
}

.hall-label{
  display:block;
  margin-top:4px;
  font-size:10px;
  font-weight:700;
  line-height:1.1;
}

.vip-time{
  background:rgba(59,130,246,.18);
  border:1px solid rgba(59,130,246,.4);
  color:#93c5fd;
  box-shadow:0 0 10px rgba(59,130,246,.28);
}

.standard-time{
  background:rgba(245,158,11,.18);
  border:1px solid rgba(245,158,11,.35);
  color:#fde68a;
  box-shadow:0 0 10px rgba(245,158,11,.22);
}

.vip-time:hover{
  background:rgba(59,130,246,.25);
}

.standard-time:hover{
  background:rgba(245,158,11,.25);
}

.badge{
  display:inline-block;
  margin-top:12px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(245,158,11,.16);
  color:#fdba74;
  font-size:13px;
  font-weight:700;
}

/* Прогрес */
.screening-progress{
  margin-top:14px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(34,197,94,.08);
  border:1px solid rgba(34,197,94,.18);
}

.screening-progress-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:6px;
  gap:10px;
  flex-wrap:wrap;
  font-size:13px;
  font-weight:700;
}

.live-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  border-radius:6px;
  background:rgba(34,197,94,.18);
  color:#86efac;
  font-size:12px;
  font-weight:800;
}

.remaining-time{
  color:#bbf7d0;
  font-size:12px;
  font-weight:700;
}

.progress-bar{
  width:100%;
  height:6px;
  background:rgba(255,255,255,.08);
  border-radius:999px;
  overflow:hidden;
}

.progress-bar-fill{
  height:100%;
  background:linear-gradient(90deg, #22c55e, #4ade80);
  transition:width 0.4s ease;
}

/* Реклами */
.ads-phase{
  background:rgba(59,130,246,.08);
  border:1px solid rgba(59,130,246,.18);
}

.ads-phase .live-badge{
  background:rgba(59,130,246,.18);
  color:#93c5fd;
}

.ads-phase .remaining-time{
  color:#bfdbfe;
}

.ads-phase .progress-bar-fill{
  background:linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* Пулс */
.pulse{
  position:relative;
  animation:livePulse 1.4s infinite ease-in-out;
}

@keyframes livePulse{
  0%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(34,197,94,.45);
  }
  70%{
    transform:scale(1.04);
    box-shadow:0 0 0 10px rgba(34,197,94,0);
  }
  100%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(34,197,94,0);
  }
}

.ads-phase .pulse{
  animation:adsPulse 1.4s infinite ease-in-out;
}

@keyframes adsPulse{
  0%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(59,130,246,.45);
  }
  70%{
    transform:scale(1.04);
    box-shadow:0 0 0 10px rgba(59,130,246,0);
  }
  100%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(59,130,246,0);
  }
}

/* Countdown */
.next-countdown{
  margin-top:14px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(245,158,11,.08);
  border:1px solid rgba(245,158,11,.18);
}

.next-countdown-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:6px;
}

.next-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  border-radius:6px;
  background:rgba(245,158,11,.16);
  color:#fcd34d;
  font-size:12px;
  font-weight:800;
}

.next-time{
  color:#fde68a;
  font-size:13px;
  font-weight:800;
}

.next-countdown-text{
  color:#fef3c7;
  font-size:13px;
  font-weight:700;
}

/* Премиери */
.premiere-list{
  display:grid;
  gap:18px;
}

.premiere{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:18px;
  background:rgba(17,24,39,.95);
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 16px 40px rgba(0,0,0,.28);
}

.premiere img{
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:320px;
  background:#0f172a;
}

.premiere-body{
  padding:18px;
}

.premiere h3{
  margin:0 0 10px;
  font-size:26px;
}

.premiere .meta{
  margin:12px 0;
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
}

.premiere .meta strong{
  color:var(--text);
}

.premiere .trailer-btn{
  width:auto;
  min-width:160px;
  margin-top:10px;
}

.date{
  font-size:16px;
  font-weight:800;
  color:#fdba74;
  margin-bottom:10px;
}

.tag-3d{
  display:inline-block;
  background:#ef4444;
  color:white;
  font-weight:800;
  font-size:12px;
  padding:4px 8px;
  border-radius:6px;
  margin-right:6px;
  letter-spacing:0.5px;
  box-shadow:0 0 10px rgba(239,68,68,0.6);
}

/* Modal */
.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.82);
  z-index:9999;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.modal.active{
  display:flex;
}

.modal-content{
  position:relative;
  width:min(960px, 100%);
}

.modal-content iframe{
  width:100%;
  aspect-ratio:16 / 9;
  border:none;
  border-radius:16px;
  background:#000;
  display:block;
}

.close{
  position:absolute;
  top:-44px;
  right:0;
  width:38px;
  height:38px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:24px;
  line-height:38px;
  text-align:center;
  cursor:pointer;
  padding:0;
}

footer{
  margin-top:40px;
  padding:26px 0 40px;
  color:var(--muted);
  border-top:1px solid var(--line);
}

footer a{
  color:#fde68a;
  text-decoration:none;
  font-weight:700;
}

footer a:hover{
  color:#fdba74;
}

/* Desktop */
@media (min-width:761px){
  nav{
    display:flex !important;
    position:static;
    width:auto;
    padding:0;
    border:none;
    background:transparent;
    box-shadow:none;
  }

  .day-tab{
    min-width:82px;
    padding:10px 12px;
  }

  .day-date{
    font-size:18px;
  }

  .day-label{
    font-size:13px;
  }
}

@media (max-width:980px){
  .hero h1{
    font-size:34px;
  }
}

/* Mobile */
@media (max-width:760px){
  .topbar{
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    flex-wrap:nowrap;
    position:relative;
  }

  .menu-toggle{
    display:flex;
  }

  nav{
    display:none;
    position:absolute;
    top:64px;
    right:0;
    min-width:220px;
    padding:10px 12px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    background:rgba(11,16,32,.98);
    box-shadow:0 18px 40px rgba(0,0,0,.35);
    z-index:999;
    flex-direction:column;
    gap:0;
  }

  .menu-checkbox:checked + .menu-toggle + nav{
    display:flex;
  }

  nav a{
    display:block;
    width:100%;
    padding:12px 8px;
    margin:0;
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  nav a:last-child{
    border-bottom:none;
  }

  .hero{
    padding:28px 0 18px;
  }

  .hero h1{
    font-size:24px;
    line-height:1.25;
  }

  .days-nav{
    gap:8px;
  }

  .days-arrow{
    width:40px;
    height:40px;
    font-size:24px;
    border-radius:12px;
  }

  .days-strip{
    gap:8px;
    padding:4px 0 14px;
  }

  .grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .poster{
    aspect-ratio:16 / 9;
  }

  .card-body,
  .premiere-body{
    padding:14px;
  }

  .card h3{
    font-size:19px;
    margin-bottom:8px;
    min-height:0;
    line-height:1.2;
  }

  .premiere h3{
    font-size:19px;
    margin-bottom:8px;
  }

  .meta,
  .premiere p{
    font-size:14px;
    line-height:1.45;
  }

  .times{
    gap:10px;
    margin-top:12px;
  }

  .schedule-label{
    font-size:15px;
  }

  .schedule-hours{
    gap:6px;
  }

  .time{
    min-width:72px;
    padding:6px 10px;
  }

  .time-value{
    font-size:12px;
  }

  .hall-label{
    font-size:9px;
  }

  .badge{
    margin-top:12px;
    font-size:12px;
    padding:8px 11px;
  }

  .day-tab{
    min-width:74px;
    padding:8px 10px;
    border-radius:14px;
    gap:2px;
  }

  .day-date{
    font-size:16px;
    line-height:1.1;
  }

  .day-label{
    font-size:11px;
    line-height:1.1;
  }

  .day-empty-text{
    font-size:9px;
  }

  .premiere{
    grid-template-columns:1fr;
  }

  .premiere img{
    min-height:220px;
    max-height:220px;
    object-fit:cover;
  }

  .modal{
    padding:12px;
  }

  .modal-content{
    width:100%;
  }

  .close{
    top:-38px;
  }
}

@media (max-width:520px){
  .container{
    width:min(100%, 94%);
  }

  .logo img{
    max-height:40px;
  }

  .hero h1{
    font-size:22px;
  }
}

@media (max-width:420px){
  .logo img{
    max-height:34px;
  }

  .time{
    min-width:64px;
    padding:5px 8px;
  }

  .time-value{
    font-size:11px;
  }

  .hall-label{
    font-size:8px;
  }

  .day-tab{
    min-width:68px;
    padding:7px 8px;
  }

  .day-label{
    font-size:10px;
  }

  .day-date{
    font-size:15px;
  }
}