/* ==========================================================
   MOBY SOUND STUDIO — Refined CSS
   ========================================================== */

/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:ital,wght@0,400..700;1,400..700&family=Bebas+Neue&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box }

:root {
    --bg: #0a0a0a;
    --surface: #111;
    --card: #151515;
    --text: #e2e2e2;
    --muted: #6a6a6a;
    --accent: #c4a35a;
    --accent-dim: #8a7340;
    --white: #f5f5f5;
    --radius: 4px;
    --ease-out: cubic-bezier(.23, 1, .32, 1);
}

html { scroll-behavior: smooth }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 300;
    line-height: 1.6;
}

::selection { background: var(--accent); color: var(--bg) }
::-webkit-scrollbar { width: 5px }
::-webkit-scrollbar-track { background: var(--bg) }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px }
a { text-decoration: none; color: inherit }


/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px) }
    to   { opacity: 1; transform: translateY(0) }
}
@keyframes scrollLine {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top }
    50%  { opacity: 1; transform: scaleY(1) }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom }
}
@keyframes shimmer {
    0%   { background-position: 200% 0 }
    100% { background-position: -200% 0 }
}
@keyframes loaderFadeIn {
    from { opacity: 0; filter: blur(10px); transform: scale(.92) }
    to   { opacity: 1; filter: blur(0); transform: scale(1) }
}
@keyframes loaderFill { to { width: 100% } }

.anim-fadeup {
    opacity: 0;
    animation-name: fadeUp;
    animation-duration: .7s;
    animation-fill-mode: forwards;
}


/* ===== LOADER ===== */
.loader {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .6s .2s, visibility .6s .2s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 2rem }
.loader-logo {
    width: clamp(140px, 28vw, 260px);
    opacity: 0;
    animation: loaderFadeIn .8s .3s forwards;
}
.loader-bar-track {
    width: clamp(140px, 28vw, 260px);
    height: 1px;
    background: rgba(255,255,255,.06);
    position: relative; overflow: hidden;
}
.loader-bar-fill {
    position: absolute; left: 0; top: 0;
    height: 100%; width: 0;
    background: var(--accent);
    animation: loaderFill 2s .5s var(--ease-out) forwards;
}


/* ===== NAV ===== */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 2.5rem;
    height: 60px;
    display: flex; justify-content: space-between; align-items: center;
    backdrop-filter: blur(24px);
    background: rgba(10, 10, 10, .75);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    transition: transform .4s;
}
nav.hidden { transform: translateY(-100%) }

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    display: flex; align-items: center;
    letter-spacing: .18em;
    color: var(--accent);
    transition: opacity .3s;
}
.logo:hover { opacity: .7 }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 400;
    transition: color .3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width .3s;
}
.nav-links a:hover { color: var(--white) }
.nav-links a:hover::after { width: 100% }
.nav-accent { color: var(--accent) !important }


/* ===== HERO ===== */
/* === Corporate Left Align Title Patch === */

/* (추천) hero-inner 래퍼: 컨테이너는 가운데, 내용은 좌측 정렬 */
.hero-inner{
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center; /* 기본은 센터 */
}

/* 좌측 정렬 모드 */
.hero.hero--left{
  align-items: center;   /* 섹션 자체는 가운데 유지 */
  text-align: left;      /* 텍스트 정렬만 좌측 */
}

.hero.hero--left .hero-inner{
  align-items: flex-start; /* 내부 콘텐츠만 좌측으로 붙임 */
}

/* 타이틀 왼쪽 포인트 바 + 락업 */
.hero-title--left{
  position: relative;
  padding-left: 18px; /* 포인트 바 때문에 들여쓰기 */
}

/* 얇은 포인트 바 */
.hero-title--left::before{
  content:'';
  position: absolute;
  left: 0;
  top: .16em;
  width: 2px;          /* ← 여기 2px을 3px로 올리면 더 존재감 */
  height: .82em;
  background: rgba(196,163,90,.9);
  border-radius: 2px;
}

/* 2줄 분리(추천 A안 기준) */
.hero-title--left .t-line1{ display: block; }

.hero-title--left .t-line2{
  display: block;
  margin-top: .12rem;
  color: rgba(245,245,245,.92);
}

/* 서브라인은 기업 톤으로(이탤릭 제거 + 트래킹 정돈) */
.hero.hero--left .hero-title-sub{
  font-style: normal;
  opacity: .75;
  letter-spacing: .08em;
  color: rgba(196,163,90,.92);
}

/* 간격 약간만 기업 톤으로 */
.hero.hero--left .hero-tagline{ margin-top: 1rem; }
.hero.hero--left .hero-panels-wrap{ margin-top: 2rem; }

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 2rem 3rem;
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 35%, rgba(196, 163, 90, .05) 0%, transparent 65%);
}

.hero-subtitle {
    font-size: .65rem;
    letter-spacing: .45em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.hero-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: clamp(3rem, 10vw, 7.5rem);
    font-weight: 700;
    line-height: .88;
    color: var(--white);
    letter-spacing: -.01em;
}

.hero-title-sub {
    display: block;
    font-family: "Archivo Narrow", sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(.85rem, 2.2vw, 1.5rem);
    letter-spacing: .04em;
    color: var(--accent);
    margin-top: .7rem;
    opacity: .85;
}

.hero-tagline {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 1.2rem;
    letter-spacing: .1em;
    font-weight: 300;
}

/* 모바일 전용: 패널 아래 tagline */
.hero-tagline-bottom {
    display: none;
}

/* 모바일 전용: 구분선 */
.hero-divider {
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}
.scroll-indicator span {
    font-size: .6rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted);
}
.scroll-line {
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s ease infinite;
}


/* ===== HERO ACCORDION PANELS ===== */
.hero-panels-wrap {
    position: relative;
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    margin-top: 2.5rem;
    border-radius: 5px;
}

.hero-panels {
    display: flex;
    height: 300px;
    width: 100%;
}

.hero-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex .7s var(--ease-out);
    border-right: 1px solid rgba(255, 255, 255, .05);
}
.hero-panel:last-child { border-right: none }
.hero-panel:hover { flex: 5 }
.hero-panels:not(:hover) .hero-panel.active { flex: 5 }

.hero-panel img {
    position: absolute;
    top: 0; left: 50%;
    height: 100%; width: auto; max-width: none;
    transform: translateX(-50%) scale(1);
    object-fit: cover;
    filter: brightness(.28) saturate(.45);
    transition: filter .6s, transform 4s ease-out;
}
.hero-panel.active img,
.hero-panel:hover img {
    filter: brightness(.82) saturate(1);
    transform: translateX(-50%) scale(1.06);
}

.hero-panel-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    font-family: 'Bebas Neue', sans-serif;
    font-size: .75rem;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .4);
    transition: opacity .35s;
    pointer-events: none;
}
.hero-panel.active .hero-panel-label,
.hero-panel:hover .hero-panel-label { opacity: 0 }

.hero-panel-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.2rem 1.2rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.7) 50%, rgba(0,0,0,.3) 75%, transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s .1s, transform .5s .1s;
    pointer-events: none;
    z-index: 3;
}
.hero-panel.active .hero-panel-info,
.hero-panel:hover .hero-panel-info { opacity: 1; transform: translateY(0) }

.hero-panel-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: .05em;
    color: var(--white);
    text-shadow: 0 1px 8px rgba(0,0,0,.7), 0 0 20px rgba(0,0,0,.5);
}
.hero-panel-year {
    font-size: .65rem;
    color: var(--accent);
    letter-spacing: .15em;
    margin-bottom: .2rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

.hero-panel::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 45%);
    opacity: 1;
    transition: opacity .45s;
    pointer-events: none;
}
.hero-panel.active::after,
.hero-panel:hover::after { opacity: 0 }

.hero-panel::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(196,163,90,.06) 45%, rgba(196,163,90,.1) 50%, rgba(196,163,90,.06) 55%, transparent 70%);
    z-index: 2; pointer-events: none;
    background-size: 200% 100%;
    animation: shimmer 4s ease infinite;
    opacity: 0;
    transition: opacity .5s;
}
.hero-panel:not(:hover):not(.active)::before { opacity: 1 }
.hero-panel:hover::before,
.hero-panel.active::before { opacity: 0 }

.hero-panel:nth-child(1)::before { animation-delay: 0s }
.hero-panel:nth-child(2)::before { animation-delay: .6s }
.hero-panel:nth-child(3)::before { animation-delay: 1.2s }
.hero-panel:nth-child(4)::before { animation-delay: 1.8s }
.hero-panel:nth-child(5)::before { animation-delay: 2.4s }
.hero-panel:nth-child(6)::before { animation-delay: 3s }

/* ── 프로그레스 바 ── */
.hero-progress {
    display: flex;
    gap: 4px;
    margin-top: .8rem;
    justify-content: center;
}

.hero-progress-dot {
    width: 32px;
    height: 2px;
    background: rgba(255,255,255,.12);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background .3s;
}
.hero-progress-dot:hover {
    background: rgba(255,255,255,.25);
}

.hero-progress-dot::after {
    content: '';
    position: absolute;
    left: 0; top: 0;
    height: 100%; width: 0;
    background: var(--accent);
    border-radius: 1px;
}

.hero-progress-dot.active::after {
    width: 100%;
    animation: progressFill var(--panel-duration, 3.5s) linear forwards;
}

@keyframes progressFill {
    from { width: 0 }
    to   { width: 100% }
}


/* ===== FILTER BAR ===== */
.filter-section {
    padding: 1.8rem 3rem;
    top: 60px;
    z-index: 50;
    background: rgba(10, 10, 10, .96);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, .03);
}
.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: .8rem;
}
.filter-col {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.filter-group {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}
.filter-btn {
    padding: .45rem 1rem;
    border: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
    color: var(--muted);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: .7rem;
    letter-spacing: .08em;
    cursor: pointer;
    transition: all .3s;
    border-radius: 2px;
}
.filter-btn:hover {
    border-color: var(--accent-dim);
    color: var(--text);
}
.filter-btn.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 600;
}

.filter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.filter-top-right {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.view-toggle { display: flex; gap: .25rem }
.view-btn {
    width: 34px; height: 34px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s;
    border-radius: 2px;
}
.view-btn.active {
    background: rgba(196, 163, 90, .12);
    border-color: var(--accent);
    color: var(--accent);
}

.results-count {
    font-size: .65rem;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.filter-toggle {
    display: none;
    align-items: center;
    gap: .35rem;
    padding: .35rem .8rem;
    border: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
    color: var(--accent);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all .3s;
}
.filter-toggle:hover { border-color: var(--accent) }
.filter-toggle svg { transition: transform .3s }
.filter-toggle.open svg { transform: rotate(180deg) }


/* ===== WORKS GRID ===== */
.works-wrap { position: relative; z-index: 1 }

.works-grid {
    padding: 2rem 3rem 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
    transition: all .4s;
}
.works-grid.list-view {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}


/* ===== WORK CARD ===== */
.work-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--card);
    aspect-ratio: 3 / 4;
    transition: transform .5s var(--ease-out), box-shadow .5s;
}
.work-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, .5),
        0 0 0 1px rgba(196, 163, 90, .1);
}
.work-card.hidden { display: none }

.work-card-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.work-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-out), filter .5s;
}
.work-card:hover .work-card-img img {
    transform: scale(1.04);
    filter: brightness(.5);
}

.work-card-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 60%, transparent 100%);
    z-index: 3;
    transition: transform .45s var(--ease-out), opacity .35s;
}

.work-card-year {
    display: block;
    font-size: .6rem;
    letter-spacing: .18em;
    color: var(--accent);
    margin-bottom: .15rem;
}

.work-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: .04em;
    color: var(--white);
    line-height: 1.1;
}

.work-card-meta {
    display: flex;
    gap: .6rem;
    margin-top: .3rem;
    font-size: .65rem;
    color: var(--muted);
    letter-spacing: .04em;
}

.work-card-genre {
    display: inline-block;
    margin-top: .25rem;
    font-size: .6rem;
    color: var(--accent-dim);
    letter-spacing: .06em;
}

/* 카드 hover overlay */
.card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(196, 163, 90, .08);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(196, 163, 90, .15);
    padding: .6rem 1.2rem;
    display: flex; align-items: center;
    gap: .6rem; flex-wrap: wrap;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .45s var(--ease-out), opacity .35s;
    z-index: 4;
}
.work-card:hover .card-overlay {
    transform: translateY(0);
    opacity: 1;
}
.card-tag {
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: .15rem .5rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1px;
}
.card-studio {
    font-size: .6rem;
    color: var(--accent-dim);
    letter-spacing: .06em;
}

/* 카드 하단 */
.card-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 60%, transparent 100%);
    z-index: 3;
    transition: transform .45s var(--ease-out), opacity .35s;
}
.card-bottom-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: .04em;
    color: var(--white);
    line-height: 1.1;
}
.card-bottom-year {
    font-size: .6rem;
    color: var(--accent);
    letter-spacing: .18em;
    margin-bottom: .15rem;
}
.work-card:hover .card-bottom { transform: translateY(-44px) }
.card-poster {
    width: 100%; height: 100%;
    object-fit: cover;
    background: var(--card);
    transition: transform .7s var(--ease-out), filter .5s;
}
.work-card:hover .card-poster { transform: scale(1.04); filter: brightness(.5) }

/* list view */
.works-grid.list-view .work-card {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 150px;
}
.works-grid.list-view .card-overlay {
    position: relative; inset: auto;
    opacity: 1; transform: none;
    background: none; border: none; backdrop-filter: none;
    padding: 1.4rem;
    justify-content: flex-start;
}
.works-grid.list-view .card-bottom { display: none }
.works-grid.list-view .card-poster { height: 100% }
.works-grid.list-view .work-card:hover .card-poster { filter: brightness(.75) }


/* ===== FILM & TRAILER SECTION ===== */
.film-wrap {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, .03);
}

.film-header-section {
    padding: 5.5rem 3rem 1.5rem;
}

.film-section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.film-label {
    display: inline-block;
    font-size: .6rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .6rem;
}

.film-heading {
    font-family: "Archivo Narrow", sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--white);
    line-height: 1;
}

.film-heading-line {
    width: 40px; height: 1px;
    background: var(--accent);
    margin: 1rem auto;
    opacity: .5;
}

.film-heading-desc {
    font-size: .75rem;
    color: var(--muted);
    letter-spacing: .05em;
    font-weight: 300;
}

.film-filter-section {
    padding: 1.2rem 3rem;
}

/* ── 영화 그리드 ── */
.film-grid {
    padding: 1.5rem 3rem 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    transition: all .4s;
}

.film-grid.list-view {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== 영화 카드 ===== */
.film-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--card);
    aspect-ratio: 2 / 3;
    transition: transform .5s var(--ease-out), box-shadow .5s;
}

.film-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, .5),
        0 0 0 1px rgba(196, 163, 90, .1);
}

.film-card.hidden { display: none }

.film-card-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.film-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-out), filter .5s;
}

.film-card:hover .film-card-img img {
    transform: scale(1.04);
    filter: brightness(.5);
}

.film-card-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: .9rem .9rem .7rem;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 60%, transparent 100%);
    z-index: 3;
    transition: transform .45s var(--ease-out), opacity .35s;
}

.film-card-year {
    display: block;
    font-size: .55rem;
    letter-spacing: .18em;
    color: var(--accent);
    margin-bottom: .1rem;
}

.film-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: .03em;
    color: var(--white);
    line-height: 1.15;
}

.film-card-meta {
    display: flex;
    gap: .6rem;
    margin-top: .3rem;
    font-size: .6rem;
    color: var(--muted);
    letter-spacing: .04em;
}

.film-card-genre {
    display: inline-block;
    margin-top: .2rem;
    font-size: .55rem;
    color: var(--accent-dim);
    letter-spacing: .06em;
}

.film-card-badge {
    display: inline-block;
    font-size: .55rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: .12rem .4rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1px;
}

.film-card-network {
    font-size: .55rem;
    color: var(--accent-dim);
    letter-spacing: .06em;
}

/* ── 영화 리스트뷰 ── */
.film-grid.list-view .film-card {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 120px;
}

.film-grid.list-view .film-card-img {
    position: relative;
}

.film-grid.list-view .film-card-body {
    display: none;
}

.film-grid.list-view .film-card-overlay {
    position: relative;
    inset: auto;
    transform: none;
    opacity: 1;
    background: none;
    border: none;
    backdrop-filter: none;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .3rem;
}

.film-grid.list-view .film-card:hover .film-card-img img {
    filter: brightness(.75);
}


/* ===== SECTION HEADER (공통) ===== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    letter-spacing: .1em;
    color: var(--white);
}
.section-header p {
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}


/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 5.5rem 3rem;
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, .03);
}

.contact-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-map-wrap {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .05);
}
.contact-map {
    width: 100%;
    height: 480px;
    background: var(--surface);
}

.contact-address-card {
    position: absolute;
    bottom: 1.5rem; left: 1.5rem;
    background: rgba(10, 10, 10, .92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(196, 163, 90, .18);
    border-radius: 5px;
    padding: 1.2rem 1.6rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
}
.contact-address-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: .12em;
    color: var(--accent);
    margin-bottom: .4rem;
}
.address-text {
    font-size: .78rem;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 300;
}

.contact-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    padding: 1.3rem;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .03);
    border-radius: 5px;
    transition: all .3s;
}
.contact-info-item:hover {
    border-color: rgba(196, 163, 90, .15);
    background: rgba(22, 22, 22, .7);
    transform: translateX(3px);
}

.contact-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(196, 163, 90, .06);
    border: 1px solid rgba(196, 163, 90, .12);
    border-radius: 50%;
    color: var(--accent);
    transition: all .3s;
}
.contact-info-item:hover .contact-icon {
    background: rgba(196, 163, 90, .12);
    border-color: var(--accent);
}

.contact-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.contact-label {
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}
.contact-value {
    font-size: .85rem;
    color: var(--text);
    line-height: 1.6;
    transition: color .3s;
}
.contact-info-item:hover .contact-value { color: var(--accent) }

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color :#3333336e;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

#scrollTopBtn:hover {
  opacity: 1;
}
/* ===== MODAL ===== */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(8px);
    z-index: 200;
    opacity: 0; visibility: hidden;
    transition: all .35s;
}
.modal-backdrop.open { opacity: 1; visibility: visible }

.modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.96);
    z-index: 201;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 5px;
    width: 90vw; max-width: 780px; max-height: 85vh;
    overflow: hidden;
    opacity: 0; visibility: hidden;
    transition: all .35s;
}
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1) }

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .6);
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    z-index: 10;
    transition: all .3s;
}
.modal-close:hover { color: var(--white); border-color: var(--accent) }

.modal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 420px;
    max-height: 85vh;
}

.modal-poster-wrap {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-content {
    padding: 2.2rem;
    overflow-y: auto;
    max-height: 85vh;
}

.modal-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: .05em;
    color: var(--white);
}

.modal-sub {
    display: flex; gap: 1rem;
    margin-top: .6rem;
    flex-wrap: wrap;
}
.modal-sub span {
    font-size: .7rem;
    color: var(--muted);
    letter-spacing: .06em;
}
.modal-sub strong { color: var(--accent); font-weight: 500 }

.modal-desc {
    margin-top: 1.2rem;
    font-size: .85rem;
    line-height: 1.85;
    color: var(--muted);
    font-weight: 300;
}


/* ===== FOOTER ===== */
footer {
    padding: 3.5rem 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .03);
    text-align: center;
}
.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: .2em;
    color: var(--accent);
    margin-bottom: .8rem;
}
footer p {
    font-size: .65rem;
    color: var(--muted);
    letter-spacing: .08em;
}


/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s, transform .7s;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== ADMIN STYLES ===== */
.admin-login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem }
.admin-login-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--accent); letter-spacing: .15em; margin-bottom: 1.5rem }
.admin-login-form { display: flex; flex-direction: column; gap: .8rem; width: 100%; max-width: 340px }
.admin-login-form input { background: var(--surface); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: .7rem .9rem; color: var(--white); font-size: .85rem; outline: none; transition: border-color .3s }
.admin-login-form input:focus { border-color: var(--accent) }
.admin-login-form button { background: var(--accent); color: var(--bg); font-weight: 700; padding: .7rem; border: none; border-radius: var(--radius); cursor: pointer; letter-spacing: .1em; font-size: .85rem; transition: opacity .3s }
.admin-login-form button:hover { opacity: .9 }
.form-error { color: #e74c3c; font-size: .75rem }
.admin-back { color: var(--muted); font-size: .75rem; margin-top: 1.2rem; transition: color .3s }
.admin-back:hover { color: var(--white) }
/* 
.admin-wrap { min-height: 100vh; padding: 1.5rem 2.5rem }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .8rem }
.admin-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--accent); letter-spacing: .15em }
.admin-email { color: var(--muted); font-size: .7rem; margin-top: .15rem }
.admin-header-btns { display: flex; gap: .4rem }
.btn-outline { border: 1px solid rgba(255,255,255,.08); padding: .45rem .8rem; border-radius: var(--radius); color: var(--muted); font-size: .75rem; transition: all .3s }
.btn-outline:hover { color: var(--white); border-color: rgba(255,255,255,.2) }
.btn-danger { background: rgba(231,76,60,.12); color: #e74c3c; padding: .45rem .8rem; border-radius: var(--radius); font-size: .75rem; transition: background .3s }
.btn-danger:hover { background: rgba(231,76,60,.25) }
.btn-accent { background: var(--accent); color: var(--bg); font-weight: 700; padding: .5rem 1.2rem; border: none; border-radius: var(--radius); cursor: pointer; font-size: .8rem; letter-spacing: .05em; transition: opacity .3s }
.btn-accent:hover { opacity: .9 }

.admin-form-wrap { background: var(--surface); border: 1px solid rgba(255,255,255,.05); border-radius: 6px; padding: 1.2rem; margin-bottom: 1.5rem }
.admin-form-wrap h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; color: var(--white); letter-spacing: .1em; margin-bottom: .8rem }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem }
.form-grid input, .form-grid select, .form-grid textarea { background: var(--bg); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: .55rem .7rem; color: var(--white); font-size: .8rem; font-family: 'Noto Sans KR', sans-serif; outline: none; transition: border-color .3s }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--accent) }
.form-grid .full-width { grid-column: 1 / -1 }
.form-grid textarea { resize: none }
.form-actions { display: flex; gap: .6rem; margin-top: .8rem }

.admin-table-wrap { background: var(--surface); border: 1px solid rgba(255,255,255,.05); border-radius: 6px; overflow: hidden }
.admin-table { width: 100%; border-collapse: collapse; font-size: .8rem }
.admin-table thead tr { border-bottom: 1px solid rgba(255,255,255,.05) }
.admin-table th { text-align: left; padding: .7rem .8rem; color: var(--muted); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500 }
.admin-table td { padding: .7rem .8rem; border-bottom: 1px solid rgba(255,255,255,.02) }
.admin-table tbody tr:hover { background: rgba(255,255,255,.015) }
.td-title { font-weight: 500; color: var(--white) }
.td-accent { color: var(--accent) }
.td-muted { color: var(--muted) }
.text-right { text-align: right }
.link-accent { color: var(--accent); font-size: .75rem; margin-right: .6rem; background: none; border: none; cursor: pointer }
.link-accent:hover { text-decoration: underline }
.link-danger { color: #e74c3c; font-size: .75rem; background: none; border: none; cursor: pointer }
.link-danger:hover { text-decoration: underline }
.empty-row { text-align: center; color: var(--muted); padding: 1.5rem !important }
 */

/* ===== RESPONSIVE ===== */
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .contact-container { grid-template-columns: 1fr }
    .contact-map { height: 380px }
    .film-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) }
    .hide-tablet { display: none }
}

@media (max-width: 768px) {
    nav { padding: 0 1.2rem; height: 48px }
    .logo { font-size: 1rem; letter-spacing: .14em }
    .nav-links { gap: .8rem }
    .nav-links a { font-size: .55rem; letter-spacing: .08em }

    /* ── 히어로 모바일 (방향2) ── */
    .hero {
        min-height: 100svh;
        padding: 60px 1rem 4rem;
        justify-content: center;
        gap: 0;
    }

    .hero-panels { height: 220px }
    .hero-panels-wrap { margin-top: 1.2rem }
    .hero-subtitle { display: none }
    .hero-tagline { display: none }

    .hero-title {
        font-size: clamp(2.4rem, 13vw, 3.8rem);
        line-height: .9;
        letter-spacing: .01em;
        margin-bottom: 9%;
    }

    .hero-title-sub {
        font-size: clamp(.6rem, 2.5vw, .85rem);
        margin-top: .3rem;
        letter-spacing: .02em;
    }

    .hero-panel-label { font-size: .5rem; letter-spacing: .15em }
    .hero-panel-title { font-size: .7rem }
    .hero-panel-year { font-size: .42rem }
    .hero-panel-info { padding: .5rem .6rem .4rem }
    .hero-progress { margin-top: .6rem; gap: 3px }
    .hero-progress-dot { width: 20px; height: 2px }

    .hero-divider {
        display: block;
        width: 24px;
        height: 1px;
        background: var(--accent);
        opacity: .3;
        margin-top: .8rem;
        border: none;
    }

    .hero-tagline-bottom {
        display: block;
        font-size: .55rem;
        color: var(--muted);
        letter-spacing: .12em;
        text-transform: uppercase;
        margin-top: .6rem;
        font-weight: 400;
        opacity: .6;
    }

    .scroll-indicator { bottom: 1.2rem }
    .scroll-indicator span { font-size: .5rem; letter-spacing: .2em }
    .scroll-line { height: 24px }

    /* 모달 */
    .modal { width: 95vw; max-height: 90vh }
    .modal-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 320px 1fr;
        min-height: auto;
        max-height: 90vh;
    }
    .modal-poster { object-fit: contain; max-height: 320px }
    .modal-content { padding: 1.2rem; max-height: none; overflow-y: auto }
    .modal-content h2 { font-size: 1.6rem }

    /* ===== 필터 모바일 ===== */
    .filter-section { padding: 1rem 1.2rem }
    .filter-row { flex-direction: column }

    /* ── 드라마 필터: 토글 방식 ── */
    .filter-toggle {
        display: flex !important;  /* 토글 버튼 표시 */
    }

    .filter-col {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .3s ease, opacity .3s ease;
        margin-top: 0;
    }

    .filter-col.open {
        max-height: 200px;
        overflow: visible;
        opacity: 1;
        margin-top: 0.5rem;
    }

    .filter-group {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    /* ── 영화 필터: 항상 노출 (토글 없음) ── */
    .film-filter-section .filter-col {
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        margin-top: 0.5rem;
    }

    /* 작품 그리드 */
    .works-grid {
        padding: .8rem .8rem 3rem;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: .7rem;
    }
    .work-card-title, .card-bottom-title { font-size: 1.05rem }
    .work-card-body, .card-bottom { padding: .8rem .9rem }

    /* 영화 */
    .film-header-section { padding: 3.5rem 1.2rem .8rem }
    .film-heading { font-size: clamp(1.7rem, 7vw, 2.5rem) }
    .film-filter-section { padding: .8rem 1.2rem }
    .film-grid {
        padding: .8rem .8rem 3rem;
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
        gap: .6rem;
    }
    .film-card-title { font-size: .9rem }
    .film-card-badge { font-size: .48rem; padding: .12rem .35rem }
    .film-card-body { padding: .6rem .7rem .5rem }
    .film-card-year { font-size: .5rem }

    /* 컨택트 */
    .contact-section { padding: 3.5rem 1.2rem }
    .contact-map { height: 280px }
    .contact-address-card { bottom: .8rem; left: .8rem; right: .8rem; padding: .8rem 1rem }
    .contact-address-card h3 { font-size: 1rem }
    .address-text { font-size: .7rem }
    .contact-info-item { padding: 1rem }

    /* 어드민 */
    .admin-wrap { padding: .8rem }
    .hide-mobile { display: none }
}

@media (max-width: 480px) {
    .works-grid { grid-template-columns: repeat(2, 1fr) }
    .film-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem }

    .hero-title { font-size: clamp(1.9rem, 13vw, 2.8rem) }
    .hero-title-sub { font-size: .55rem }

    .hero-panels { height: 190px }
    .hero-panel-title { font-size: .6rem }
    .hero-panel-year { font-size: .38rem }
    .hero-panel-info { padding: .5rem .6rem }
    .hero-progress-dot { width: 16px }

    .hero-tagline-bottom { font-size: .5rem }

    .nav-links { gap: .6rem }
    .nav-links a { font-size: .5rem }
}