@font-face {
  font-family: 'Space Grotesk';
  src: url('./assets/space-grotesk.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0a0e;
  --panel: #131117;
  --line: #2b2631;
  --text: #f9f6ff;
  --muted: #bdb6c7;
  --accent: #d7c3ff;
  --display: 'Space Grotesk', Arial, sans-serif;
  --body: 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem / 1.6 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, dl, dd { margin: 0; }
.shell { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }

.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 16px; background: var(--accent); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid #211d26; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-name { font: 700 1.4rem / 1 var(--display); letter-spacing: -0.072em; }
.brand-name span { color: var(--accent); }
.brand-icon {
  position: relative;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  width: 34px;
  aspect-ratio: 1;
  background: var(--accent);
  border-radius: 9px;
  color: #241638;
}
.brand-icon i, .poster-frame i, .art-frame-front i {
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 2px 0 0 2px;
  position: absolute;
}
.brand-icon i:first-child { top: 9px; left: 9px; border-top-left-radius: 2px; }
.brand-icon i:last-child { bottom: 9px; right: 9px; transform: rotate(180deg); border-top-left-radius: 2px; }
.site-nav { display: flex; gap: 32px; align-items: center; color: #d1cbd8; font-weight: 650; font-size: 0.9375rem; }
.site-nav a { padding-block: 11px; white-space: nowrap; transition: color 160ms ease; }
.site-nav a:hover { color: var(--accent); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(490px, 42vw, 570px);
  margin-top: 24px;
  display: grid;
  align-items: center;
  border: 1px solid #383044;
  border-radius: 21px;
  background: #12111c;
}
.hero-image, .hero-shade { position: absolute; pointer-events: none; inset: 0; height: 100%; }
.hero-image { left: auto; width: 92%; object-fit: cover; object-position: center 32%; }
.hero-shade {
  background:
    linear-gradient(90deg, #100e18 0%, #100e18f2 12%, #100e18b3 34%, #100e180c 65%, transparent 100%),
    linear-gradient(0deg, #0b0913a8, transparent 35%);
}

.hero-content { position: relative; padding: 55px clamp(36px, 5.15vw, 76px); }
.hero-label { display: flex; align-items: center; gap: 11px; margin-bottom: 23px; color: #dac8fd; font: 600 0.875rem / 1.4 var(--display); letter-spacing: .15em; }
.hero-label::before { content: ''; width: 21px; height: 2px; border-radius: 2px; background: #c8a9ff; }
.hero h1 { font-weight: 800; font-size: clamp(3.25rem, 5.45vw, 5.375rem); line-height: 1.08; letter-spacing: -.095em; overflow-wrap: normal; }
.hero h1 span { color: #f0e6ff; }
.hero-description { color: #ddd5e8; margin-top: 21px; font-size: 1.125rem; font-weight: 500; letter-spacing: -.025em; }
.mobile-break { display: none; }
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  margin-top: 32px;
  padding: 11px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #1e112e;
  font-weight: 800;
  line-height: 1.2;
  transition: background 160ms ease, transform 160ms ease;
}
.primary-button:hover { background: #e8dbff; transform: translateY(-2px); }
.play-icon {
  width: 0;
  height: 0;
  display: inline-block;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}
.viewfinder { position: absolute; pointer-events: none; inset: 20px; color: #eee3ff61; }
.viewfinder i { position: absolute; height: 16px; width: 16px; border: solid currentColor; border-width: 1px 0 0 1px; }
.viewfinder i:nth-child(1) { top: 0; left: 0; }
.viewfinder i:nth-child(2) { top: 0; right: 0; rotate: 90deg; }
.viewfinder i:nth-child(3) { bottom: 0; right: 0; rotate: 180deg; }
.viewfinder i:nth-child(4) { bottom: 0; left: 0; rotate: 270deg; }

.program { padding-block: 55px 69px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.section-heading h2, .about h2 { font-size: clamp(1.875rem, 3.1vw, 2.8rem); font-weight: 800; line-height: 1.12; letter-spacing: -.072em; }
.section-heading p, .about p { margin-top: 7px; color: var(--muted); letter-spacing: -.023em; }
.status-pill {
  color: #d8c8ef;
  background: #1c1526;
  border: 1px solid #3c2c51;
  border-radius: 30px;
  align-self: flex-end;
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
}
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: #ad8dd7; }
.status-pill.is-playing i { background: #d7bfff; box-shadow: 0 0 9px #c6a5fbb8; }

.film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.film-grid:empty { display: none; }
.is-featured { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); column-gap: 19px; }
.is-featured .section-heading { grid-column: 1 / -1; }
.is-featured .film-grid { grid-template-columns: minmax(0, 1fr); }
.film-card {
  position: relative;
  min-width: 0;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 170ms ease, transform 170ms ease;
}
.film-card:has(button:is(:hover, :focus-visible)) { border-color: #9b7ac8; transform: translateY(-3px); }
.film-button { position: absolute; z-index: 1; inset: 0; padding: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.film-poster {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 14px 14px 0 0;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 65% 40%, #382c55, #1d172a 60%, #15101e);
}
.film-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #08060dc9, transparent 48%); }
.film-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.film-card:hover img { transform: scale(1.035); }
.poster-frame { width: 35%; height: 45%; color: #bc9ffb59; position: relative; }
.poster-frame i:first-child, .art-frame-front i:first-child { top: 0; left: 0; }
.poster-frame i:last-child, .art-frame-front i:last-child { bottom: 0; right: 0; rotate: 180deg; }
.poster-play {
  z-index: 1;
  display: grid;
  place-items: center;
  position: absolute;
  right: 13px;
  bottom: 12px;
  width: 42px;
  aspect-ratio: 1;
  padding-left: 2px;
  border: 1px solid #efddff91;
  border-radius: 50%;
  background: #15101ad9;
  color: #fff9ff;
  transition: background 170ms ease, color 170ms ease;
}
.film-card:has(.film-button:is(:hover, :focus-visible)) .poster-play { background: var(--accent); color: #1e112e; }
.film-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 17px; }
.film-title { min-width: 0; overflow-wrap: anywhere; font-size: 1.2rem; font-weight: 750; line-height: 1.4; letter-spacing: -.035em; }
.film-credit { margin-top: 3px; color: var(--muted); font-size: 0.9375rem; }
.film-duration { color: var(--muted); font: 500 0.875rem / 1.65 var(--display); white-space: nowrap; }

.pending {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  min-height: 146px;
  padding: 24px 36px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: radial-gradient(ellipse at 100% 90%, #2c1d40, transparent 55%), #141117;
}
.film-grid:not(:empty) ~ .pending { margin-top: 18px; }
.is-featured .film-grid:not(:empty) ~ .pending { position: relative; align-items: end; margin-top: 0; min-height: 206px; padding: 30px; }
.is-featured .pending-info { position: relative; z-index: 1; }
.is-featured .pending-art { position: absolute; inset: 15% 9% auto auto; width: 168px; scale: 1.4; transform-origin: right top; }
.pending h3 { color: #f0e7ff; font-size: clamp(1.25rem, 2.5vw, 1.625rem); line-height: 1.3; font-weight: 750; letter-spacing: -.04em; }
.pending p { margin-top: 7px; color: var(--muted); letter-spacing: -.025em; }
.pending-art { flex: 0 0 168px; height: 95px; position: relative; margin-right: 18px; }
.art-frame {
  position: absolute;
  display: block;
  width: 116px;
  aspect-ratio: 16 / 9;
  border: 1px solid #c4a6fd8c;
  border-radius: 6px;
  background: linear-gradient(145deg, #3f2e55, #231932);
}
.art-frame-back { left: 48px; top: 2px; rotate: 8deg; opacity: .38; }
.art-frame-middle { left: 26px; top: 15px; rotate: 1deg; opacity: .64; }
.art-frame-front { left: 4px; top: 28px; rotate: -7deg; color: #d1bbfd; box-shadow: 0 2px 18px #100b19bf; }
.art-frame-front i:first-child { top: 13px; left: 13px; }
.art-frame-front i:last-child { right: 13px; bottom: 13px; }

.about {
  border-top: 1px solid var(--line);
  padding-block: 37px 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.about h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.teacher { display: flex; align-items: center; gap: 11px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 7px; white-space: nowrap; }
.teacher dt { color: var(--muted); font-size: 0.875rem; }
.teacher dd { color: var(--text); font-weight: 750; }
.site-footer { border-top: 1px solid #211d26; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; min-height: 66px; gap: 16px; color: var(--muted); font-size: 0.875rem; }
.footer-brand { font: 700 0.875rem / 1.2 var(--display); letter-spacing: .05em; }
.footer-inner a { padding-block: 10px; }
.footer-inner a:hover { color: var(--accent); }

.screening-room {
  padding: 0;
  max-height: calc(100dvh - 24px);
  width: min(1180px, calc(100% - 32px), max(600px, calc((100dvh - 160px) * 16 / 9)));
  max-width: none;
  border: 1px solid #5c4776;
  border-radius: 15px;
  color: var(--text);
  background: #121017;
}
.screening-room::backdrop { background: #08060de8; backdrop-filter: blur(8px); }
.screening-header, .screening-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; }
.screening-header h2 { font-size: clamp(1.125rem, 3vw, 1.5rem); line-height: 1.3; overflow-wrap: anywhere; }
.screening-header p { margin-top: 2px; color: var(--muted); font-size: 0.9375rem; }
.close-button {
  position: relative;
  width: 39px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 1px solid #493b5b;
  border-radius: 50%;
  background: #21182c;
  color: var(--text);
  cursor: pointer;
}
.close-button:hover { background: #362848; }
.close-button::before, .close-button::after { content: ''; position: absolute; top: 50%; left: 50%; width: 15px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.close-button::after { transform: translate(-50%, -50%) rotate(-45deg); }
.video-slot { width: 100%; aspect-ratio: 16 / 9; min-height: 200px; background: #000; }
.video-slot iframe { display: block; width: 100%; height: 100%; border: 0; }
.screening-footer { justify-content: flex-end; }
.screening-footer a { padding: 4px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: 0.9375rem; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .hero { min-height: 460px; }
  .hero-image { width: 96%; }
  .hero h1 { font-size: clamp(3.2rem, 7.35vw, 4.5rem); }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 66px; }
  .site-nav { gap: 19px; }
  .hero { min-height: 530px; align-items: end; margin-top: 17px; border-radius: 15px; }
  .hero-image { width: 100%; object-position: 72% top; }
  .hero-shade { background: linear-gradient(0deg, #100e18 3%, #100e18ec 27%, #100e1870 56%, #100e1808 91%); }
  .hero-content { padding: 40px 27px; }
  .hero h1 { font-size: clamp(2.75rem, 8.8vw, 4.1rem); }
  .hero-label { margin-bottom: 14px; font-size: 0.8125rem; }
  .hero-description { margin-top: 14px; font-size: 1rem; }
  .primary-button { margin-top: 22px; }
  .viewfinder { inset: 12px; }
  .viewfinder i { width: 12px; height: 12px; }
  .program { padding-block: 42px 49px; }
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .is-featured { display: block; }
  .is-featured .film-grid:not(:empty) ~ .pending { align-items: center; min-height: 126px; margin-top: 14px; padding: 19px 22px; }
  .is-featured .pending-art { position: relative; inset: auto; scale: 1; }
  .pending { padding-inline: 22px; }
  .pending-art { margin-right: 0; }
  .about { gap: 16px; padding-block: 29px 36px; }
}

@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 1.15rem; }
  .brand-icon { width: 29px; border-radius: 7px; }
  .brand-icon i:first-child { top: 7px; left: 7px; }
  .brand-icon i:last-child { bottom: 7px; right: 7px; }
  .site-nav { gap: 13px; font-size: 0.875rem; }
  .hero { min-height: 490px; }
  .hero-image { height: 85%; object-position: 70% 0%; }
  .hero-shade { background: linear-gradient(0deg, #100e18 11%, #100e18f5 24%, #100e188b 52%, #100e1810 86%); }
  .hero-content { padding: 32px 21px; }
  .hero h1 { font-size: clamp(2.18rem, 9.6vw, 3rem); }
  .mobile-break { display: initial; }
  .section-heading { position: relative; display: block; margin-bottom: 18px; }
  .section-heading h2 { padding-right: 112px; }
  .section-heading p { font-size: 0.9375rem; }
  .section-heading .status-pill { position: absolute; top: 0; right: 0; }
  .film-grid { grid-template-columns: minmax(0, 1fr); }
  .pending { min-height: 128px; gap: 8px; padding: 17px; }
  .is-featured .film-grid:not(:empty) ~ .pending { padding: 17px; }
  .pending p { font-size: 0.9375rem; }
  .pending-art { flex-basis: 64px; height: 63px; }
  .art-frame { width: 49px; border-radius: 4px; }
  .art-frame-back { left: 14px; top: 11px; }
  .art-frame-middle { left: 7px; top: 18px; }
  .art-frame-front { left: 0; top: 24px; }
  .art-frame-front i { width: 4px; height: 4px; border-width: 1px 0 0 1px; }
  .art-frame-front i:first-child { inset: 6px auto auto 6px; }
  .art-frame-front i:last-child { inset: auto 6px 6px auto; }
  .about { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
