:root{
  --bg:#080a0f;
  --panel:#11151e;
  --line:#262d3a;
  --text:#f7f8fb;
  --muted:#a4adbd;
  --muted-2:#747e90;
  --red:#ff3b30;
  --red-soft:#ff8c84;
  --blue:#2f80ed;
  --violet:#7c5cff;
  --pink:#ff2d55;
  --green:#4cc38a;
  --radius:20px;
  --shadow:0 20px 60px rgba(0,0,0,.3);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 18% 0%,rgba(255,59,48,.13),transparent 26%),
    radial-gradient(circle at 88% 12%,rgba(124,92,255,.09),transparent 24%),
    var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
.container{width:min(1160px,calc(100% - 32px));margin-inline:auto}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid rgba(255,255,255,.05);
  backdrop-filter:blur(18px);
  background:rgba(8,10,15,.82);
}

.nav{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{display:flex;align-items:center;gap:12px}
.brand-mark{
  width:42px;height:42px;display:grid;place-items:center;border-radius:13px;
  font-weight:950;background:linear-gradient(135deg,var(--red),#b31313);
  box-shadow:0 8px 28px rgba(255,59,48,.2);
}
.brand strong{display:block;font-size:18px;letter-spacing:-.3px}
.brand small{display:block;margin-top:2px;color:var(--muted);font-size:11px}

.button{
  display:inline-flex;align-items:center;justify-content:center;min-height:42px;
  padding:0 16px;border-radius:999px;font-size:13px;font-weight:850;
  transition:transform .18s ease,background .18s ease;
}
.button:hover{transform:translateY(-1px)}
.button-light{background:#fff;color:#090b10}
.button-primary{background:var(--red);color:white}
.button-primary:hover{background:#ff5147}

.hero{
  padding:52px 0 18px;
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(310px,.55fr);
  gap:18px;
}

.panel{
  border:1px solid rgba(255,255,255,.075);
  border-radius:var(--radius);
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));
  box-shadow:var(--shadow);
}

.hero-main{padding:34px}
.eyebrow{
  margin:0 0 12px;color:var(--red-soft);font-weight:900;
  letter-spacing:.16em;font-size:11px;
}

h1,h2,p{margin-top:0}
h1{
  margin-bottom:15px;font-size:clamp(38px,5vw,62px);
  line-height:.98;letter-spacing:-2.8px;
}
.hero-copy{
  max-width:700px;margin-bottom:22px;color:var(--muted);
  font-size:16px;line-height:1.65;
}

.next-panel{min-height:260px;padding:28px;display:flex;flex-direction:column}
.next-label{
  margin-bottom:14px;color:var(--muted);font-size:11px;
  font-weight:900;letter-spacing:.12em;
}
.next-date{
  font-size:44px;
  font-weight:950;
  line-height:1;
  letter-spacing:-1.8px;
}
.next-title{margin-top:12px;font-weight:850;font-size:20px;line-height:1.3}
.next-countdown{
  margin-top:auto;padding-top:26px;color:#ff9f98;font-weight:850;font-size:14px;
}

.schedule-section{padding:28px 0 24px}
.section-heading{
  display:flex;justify-content:space-between;align-items:flex-end;
  gap:20px;margin-bottom:16px;
}
.section-heading h2{margin-bottom:3px;font-size:28px;letter-spacing:-.8px}
.section-heading p{margin-bottom:0;color:var(--muted);font-size:12px}

.status-area{text-align:right}
.sheet-status{
  display:block;
  margin-bottom:4px;
  color:var(--muted-2);
  font-size:11px;
}
.sheet-status.ok{color:var(--green)}
.sheet-status.error{color:#ff8c84}

.schedule{display:grid;gap:14px}
.day-card{
  overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--panel);
}
.day-header{
  min-height:58px;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.018);
}
.day-header strong{
  font-size:30px;
  letter-spacing:-.8px;
}
.day-header span{
  color:var(--text);
  font-size:24px;
  font-weight:950;
}

.event{
  display:grid;
  grid-template-columns:88px 152px minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  padding:16px 18px;
  border-top:1px solid rgba(255,255,255,.045);
}
.event:first-of-type{border-top:0}

.event-time{
  font-size:32px;
  font-weight:950;
  letter-spacing:-.8px;
}

.thumb-wrap{
  width:152px;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.07);
  background:#202633;
}
.thumb{width:100%;height:100%;display:block;object-fit:cover}
.thumb-fallback{
  width:100%;height:100%;display:flex;flex-direction:column;justify-content:flex-end;
  padding:10px;background:
    radial-gradient(circle at 15% 20%,rgba(255,59,48,.45),transparent 28%),
    linear-gradient(135deg,#202633,#10131a);
}
.thumb-fallback strong{font-size:11px;letter-spacing:.06em}
.thumb-fallback small{margin-top:2px;color:var(--muted);font-size:8px}

.event-info{min-width:0}
.event-title{
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:26px;
  font-weight:900;
  line-height:1.22;
  letter-spacing:-.35px;
}
.event-meta{
  margin-top:8px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  color:var(--muted);
  font-size:13px;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 11px;
  border-radius:999px;
  color:white;
  font-size:12px;
  font-weight:950;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.badge-film{background:var(--blue)}
.badge-premiera{background:var(--violet)}
.badge-live{background:var(--pink)}

.open-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  min-height:46px;
  padding:11px 18px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:13px;
  font-size:15px;
  font-weight:950;
  letter-spacing:.01em;
  background:rgba(255,255,255,.06);
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  transition:transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
a.open-link:hover{
  color:#0b0d12;
  border-color:white;
  background:white;
  transform:translateY(-1px);
}

.empty{
  padding:28px;border:1px solid var(--line);border-radius:18px;
  background:var(--panel);color:var(--muted);
}

.footer{
  min-height:90px;display:flex;align-items:center;justify-content:center;
  gap:8px;color:var(--muted-2);font-size:12px;
}

@media(max-width:920px){
  .hero{grid-template-columns:1fr}
  .next-panel{min-height:210px}
  .event{grid-template-columns:80px minmax(0,1fr) auto}
  .thumb-wrap{display:none}
}

@media(max-width:640px){
  .container{width:min(100% - 20px,1160px)}
  .nav{min-height:64px}
  .brand small{display:none}
  .hero{padding-top:28px}
  .hero-main{padding:24px}
  h1{font-size:41px;letter-spacing:-1.9px}
  .next-panel{padding:23px}
  .next-date{font-size:35px}
  .next-title{font-size:18px}
  .section-heading{align-items:flex-start;flex-direction:column;gap:7px}
  .status-area{text-align:left}

  .day-header strong{font-size:23px}
  .day-header span{font-size:18px}

  .event{
    grid-template-columns:70px minmax(0,1fr);
    gap:12px;
    padding:14px;
  }
  .event-time{font-size:24px}
  .event-title{font-size:22px}
  .open-link{
    grid-column:2;
    justify-self:start;
    min-width:132px;
    min-height:42px;
    font-size:14px;
    padding:9px 15px;
  }
  .day-header{padding:0 14px}
}
