/* ===== CUSTOM PROPERTIES ===== */
:root {
  --red: #ff3131;
  --green: #00bf63;
  --blue: #38b6ff;
  --yellow: #ffde59;

  /* dark mode defaults */
  --bg: #0a0a0a;
  --bg2: #111111;
  --surface: #161616;
  --surface2: #202020;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --text-muted: #888;
  --text-faint: #444;
  --nav-bg: rgba(10, 10, 10, 0.85);
  --hero-overlay: rgba(0, 0, 0, 0.55);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.3);
}

[data-theme="light"] {
  --bg: #f4f4f4;
  --bg2: #ebebeb;
  --surface: #ffffff;
  --surface2: #f0f0f0;
  --border: #e0e0e0;
  --text: #111111;
  --text-muted: #666;
  --text-faint: #bbb;
  --nav-bg: rgba(244, 244, 244, 0.88);
  --hero-overlay: rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.section-sub {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== SCROLL ANIMATION ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease, background 0.3s;
}

.nav.hidden {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  border-radius: 8px;
}

.nav-logo-text {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text);
}

.nav-brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--surface2);
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0d0d0d;
  transform: scale(1.04);
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.7) 100%
  );
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 24px 80px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

/* Hero logo */
.hero-logo-wrap {
  margin-bottom: 20px;
}

.hero-logo {
  height: 56px;
  width: auto;
  border-radius: 12px;
}

.hero-logo-fallback {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hlf-top,
.hlf-bottom {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #fff;
}

.hlf-line {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.4);
}

.hero-meta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 48px;
}

.hero-title em {
  font-style: normal;
  color: var(--green);
}

/* Countdown */
.countdown-wrap {
  display: inline-block;
  margin-bottom: 8px;
}

.countdown {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.cd-num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: transform 0.15s ease;
}

.cd-num.tick {
  transform: scale(1.08);
}

.cd-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-top: 4px;
}

.cd-sep {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: rgba(255,255,255,0.2);
  line-height: 1;
  padding-top: 2px;
  user-select: none;
}

.countdown-today {
  display: none;
  font-size: 20px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: -0.01em;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.scroll-hint:hover {
  opacity: 0.9;
}

.sh-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #fff;
  text-transform: uppercase;
}

.sh-line {
  width: 1px;
  height: 32px;
  background: #fff;
  animation: scrollPulse 1.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* ===== HIGHLIGHTS ===== */
.highlights-section {
  background: var(--bg);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.highlight-card {
  border-radius: 16px;
  padding: 28px 24px;
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
  opacity: 0;
  transition: opacity 0.25s;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.highlight-card:hover::before {
  opacity: 1;
}

.hc-emoji {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.hc-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 6px;
}

.hc-loc {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

/* ===== PLÁZS ===== */
.plazs-section {
  background: var(--bg);
}

.plazs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .plazs-grid {
    grid-template-columns: 1fr;
  }
}

.plazs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}

.plazs-card:first-child {
  border-top: 3px solid var(--green);
}

.plazs-card--schedule {
  border-top: 3px solid var(--red);
}

.plazs-card-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.plazs-card-time-badge {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.plazs-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.plazs-timeline li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.plazs-timeline li:last-child {
  border-bottom: none;
}

.pt-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 44px;
  flex-shrink: 0;
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}

.pt-event {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.plazs-timeline li.pt-highlight .pt-time,
.plazs-timeline li.pt-highlight .pt-event {
  color: var(--green);
  font-weight: 700;
}

.plazs-schedule {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.plazs-schedule li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.plazs-schedule li:last-child {
  border-bottom: none;
}

.plazs-schedule li[data-type="break"] {
  opacity: 0.5;
}

.ps-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.plazs-schedule li[data-type="podcast"] .ps-tag {
  background: rgba(56, 182, 255, 0.15);
  color: var(--blue);
}

.plazs-schedule li[data-type="game"] .ps-tag {
  background: rgba(255, 49, 49, 0.15);
  color: var(--red);
}

.plazs-schedule li[data-type="break"] .ps-tag {
  background: var(--surface2);
  color: var(--text-muted);
}

.ps-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  line-height: 1.3;
}

.ps-dur {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== PROGRAMS ===== */
.programs-section {
  background: var(--bg2);
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.filter-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.program-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px 0 0 2px;
}

.program-card[data-type="allday"]::before { background: var(--green); }
.program-card[data-type="fixed"]::before { background: var(--red); }
.program-card[data-type="halfday"]::before { background: var(--yellow); }
.program-card[data-type="special"]::before { background: var(--yellow); }

.program-card {
  cursor: pointer;
}

.program-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.program-card.hidden {
  display: none;
}

.pc-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
}

.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pc-location {
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.pc-location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.badge-allday {
  background: rgba(0, 191, 99, 0.15);
  color: var(--green);
}

.badge-fixed {
  background: rgba(255, 49, 49, 0.15);
  color: var(--red);
}

.badge-halfday,
.badge-special {
  background: rgba(255, 222, 89, 0.15);
  color: #c4a900;
}

[data-theme="dark"] .badge-halfday,
[data-theme="dark"] .badge-special {
  color: var(--yellow);
}

/* ===== LIVE ===== */
.live-section {
  background: var(--bg);
}

.live-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.live-badge-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
}

.live-player {
  max-width: 840px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  position: relative;
}

.live-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}

.lp-icon {
  color: var(--blue);
  opacity: 0.7;
}

.lp-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.lp-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.live-iframe-wrap {
  position: absolute;
  inset: 0;
}

.live-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.live-location {
  max-width: 840px;
  margin: 28px auto 0;
}

.live-loc-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.live-loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.live-loc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--green);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.live-loc-card--alt {
  border-top-color: var(--blue);
}

.live-loc-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.live-loc-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-loc-cond {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.live-loc-place {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.live-loc-note {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

.live-loc-note--highlight {
  color: var(--yellow);
  font-weight: 600;
  background: rgba(255, 222, 89, 0.08);
  border-radius: 6px;
  padding: 4px 8px;
  margin-top: 6px;
}

@media (max-width: 540px) {
  .live-loc-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== POSTER ===== */
.poster-section {
  background: var(--bg2);
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .poster-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}

.poster-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.poster-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lb-img-wrap {
  max-width: min(90vw, 600px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  opacity: 0;
}

.lightbox-overlay.active .lb-img {
  transform: scale(1);
  opacity: 1;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  z-index: 2;
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lb-nav:disabled {
  opacity: 0.2;
  pointer-events: none;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  user-select: none;
}

@media (max-width: 600px) {
  .lb-nav {
    width: 40px;
    height: 40px;
  }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ===== GALLERY ===== */
.gallery-section {
  background: var(--bg);
}

.gallery-wrapper {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  filter: blur(8px);
  transition: filter 0.4s ease;
  pointer-events: none;
  user-select: none;
}

.gallery-grid.unlocked {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-item {
  aspect-ratio: 4 / 3;
  background: var(--surface2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.35s ease;
  border-radius: 10px;
}

.gallery-lock-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.gallery-lock-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 50px;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* Gallery Password Modal */
.gallery-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gallery-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 400px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: modalSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.gallery-modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.gallery-modal-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 8px;
}

.gallery-modal-input:focus {
  border-color: var(--green);
}

.gallery-modal-error {
  font-size: 13px;
  color: var(--red);
  min-height: 18px;
  margin-bottom: 20px;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-modal-error.visible {
  opacity: 1;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.gallery-modal-input.shake {
  animation: shake 0.35s ease;
  border-color: var(--red);
}

.gallery-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.gallery-modal-cancel {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.gallery-modal-cancel:hover {
  background: var(--surface2);
  color: var(--text);
}

.gallery-modal-submit {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: var(--green);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery-modal-submit:hover {
  opacity: 0.85;
}

/* Gallery Lightbox download button */
.lb-download {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: 1px solid rgba(255,255,255,0.15);
}

.lb-download:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

@media (max-width: 600px) {
  .lb-download {
    bottom: 16px;
    right: 16px;
    font-size: 12px;
    padding: 7px 13px;
  }
}

#galleryLightbox .lb-counter {
  bottom: 70px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-school {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.footer-dok {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== FOOTER ACCESS LINK ===== */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-access-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-access-link:hover {
  color: var(--text);
}

/* ===== ACCESS MODAL ===== */
.access-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.3s ease;
}

.access-modal-overlay.hidden {
  display: none;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.access-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: modalSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.access-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 28px 0;
}

.access-modal-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 49, 49, 0.12);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.access-modal-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.access-modal-body {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.access-modal-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.access-modal-body strong {
  color: var(--text);
  font-weight: 700;
}

.access-modal-notice {
  background: rgba(255, 49, 49, 0.07);
  border: 1px solid rgba(255, 49, 49, 0.2);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.access-modal-notice-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--red) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.access-modal-footer-note {
  font-size: 12px !important;
  color: var(--text-faint) !important;
  font-style: italic;
}

.access-modal-actions {
  padding: 0 28px 28px;
}

.access-modal-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.access-modal-btn:hover {
  background: #cc2828;
}

.access-modal-btn:active {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .access-modal {
    border-radius: 16px;
  }

  .access-modal-header {
    padding: 22px 20px 0;
    gap: 12px;
  }

  .access-modal-body {
    padding: 16px 20px;
  }

  .access-modal-title {
    font-size: 16px;
  }

  .access-modal-actions {
    padding: 0 20px 22px;
  }
}

/* ===== PROGRAM DETAIL MODAL ===== */
.prog-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.prog-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.prog-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  padding: 40px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: modalSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.prog-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.prog-modal-close:hover {
  background: var(--surface2);
  color: var(--text);
}

.prog-modal-header {
  padding-right: 32px;
  margin-bottom: 20px;
}

.prog-modal-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
}

.prog-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prog-modal-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
}

.prog-modal-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

.prog-modal-teacher-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.prog-modal-teacher-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.prog-modal-teacher-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.prog-modal-desc {
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(56, 182, 255, 0.4);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: #1a9fe0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .hero-content {
    padding: 88px 24px 72px;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .countdown {
    gap: 4px;
  }

  .cd-item {
    min-width: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .highlights-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .highlight-card {
    padding: 20px 16px;
  }

  .hc-emoji {
    font-size: 26px;
  }

  .hc-name {
    font-size: 14px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
