/*
Theme Name: Cinematic Portfolio
Theme URI: https://editorhan.me
Author: Han Jinkyu
Author URI: https://editorhan.me
Description: Apple-inspired dark cinematic portfolio theme for film editors. Features large typography, generous whitespace, fullscreen visuals, and smooth scroll animations.
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cinematic-portfolio
Tags: dark, portfolio, film, cinematic, one-column, custom-menu, featured-images
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');


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

:root {
    --black: #000000;
    --bg: #000000;
    --bg-elevated: #0d0d0d;
    --bg-card: #111111;
    --bg-hover: #1a1a1a;
    --surface: #1d1d1f;
    --gray-100: #f5f5f7;
    --gray-200: #e8e8ed;
    --gray-300: #d2d2d7;
    --gray-400: #86868b;
    --gray-500: #6e6e73;
    --gray-600: #424245;
    --gray-700: #2d2d2d;
    --white: #ffffff;
    --accent: #c8a96e;
    --accent-bright: #e2c992;
    --font-display: 'Oswald', 'Noto Sans KR', -apple-system, 'Helvetica Neue', sans-serif;
    --font-text: 'Noto Sans KR', 'Oswald', -apple-system, 'Helvetica Neue', sans-serif;
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
    --max-w: 980px;
    --max-w-wide: 1200px;
    --max-w-narrow: 700px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-text);
    background: var(--bg);
    color: var(--gray-300);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
}
a:hover { color: var(--accent-bright); }

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

/* ============================================
   APPLE-STYLE TYPOGRAPHY
   ============================================ */
.headline-oversized {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.05;
    color: var(--white);
}

.headline-large {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.009em;
    line-height: 1.07;
    color: var(--white);
}

.headline-medium {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.003em;
    line-height: 1.1;
    color: var(--white);
}

.headline-small {
    font-family: var(--font-display);
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.14;
    color: var(--white);
}

.eyebrow {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

.body-large {
    font-size: clamp(17px, 1.8vw, 21px);
    font-weight: 400;
    line-height: 1.52;
    color: var(--gray-400);
}

.body-medium {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47;
    color: var(--gray-400);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 22px;
}
.container-wide {
    max-width: var(--max-w-wide);
    margin: 0 auto;
    padding: 0 22px;
}
.container-narrow {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
    padding: 0 22px;
}

.section-padding {
    padding: clamp(80px, 12vw, 160px) 0;
}

.text-center { text-align: center; }

/* ============================================
   HEADER / NAV — Apple Frosted Glass
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    height: 48px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.36s var(--ease-out);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo a {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-100);
    letter-spacing: -0.01em;
    transition: opacity 0.3s;
}
.site-logo a:hover { opacity: 0.7; color: var(--gray-100); }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}
.main-nav a {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-300);
    opacity: 0.8;
    transition: opacity 0.3s;
    letter-spacing: 0;
}
.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    opacity: 1;
    color: var(--white);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--gray-100);
    margin: 5px 0;
    transition: 0.3s var(--ease-out);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   HERO — Apple-Style Fullscreen
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 40%, rgba(200,169,110,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(200,169,110,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 22px;
    max-width: 900px;
}

.hero .eyebrow {
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 2.2s var(--ease-out) forwards;
}

.hero .headline-oversized {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 2.5s var(--ease-out) forwards;
}

.hero .body-large {
    max-width: 460px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 2.8s var(--ease-out) forwards;
}

.hero-scroll-indicator {
    opacity: 0;
    animation: fadeInUp 0.8s 3.2s var(--ease-out) forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}
.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    position: relative;
}
.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 7px;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-out infinite;
}
.scroll-chevron {
    width: 18px;
    height: auto;
    color: rgba(255,255,255,0.4);
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0%, 10% { opacity: 1; top: 7px; }
    80% { opacity: 0; top: 20px; }
    100% { opacity: 0; top: 7px; }
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(4px); opacity: 0.7; }
}

/* Hero Poster Collage Background */
.hero-poster-bg {
    position: absolute;
    inset: -30px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    opacity: 0.36;
    filter: blur(5px);
    animation: heroBgIntro 2.5s ease-out forwards;
}
@keyframes heroBgIntro {
    /* blur는 고정, opacity만 변경 (blur 전환시 스케일업 현상 방지) */
    0%   { opacity: 0.75; filter: blur(5px); }
    100% { opacity: 0.36; filter: blur(5px); }
}
.hero-poster-row {
    display: flex;
    gap: 6px;
    height: calc(50vh - 3px);
    will-change: transform;
    /* 애니메이션은 JS가 전담 */
}
.hero-poster-row-reverse {
    transform: translateX(-50%);
}
.hero-poster-item {
    flex-shrink: 0;
    width: calc(33vh);
    height: 100%;
    background-size: cover;
    background-position: center;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   SECTION DIVIDERS — Apple Style
   ============================================ */
.section-dark {
    background: var(--bg);
}
.section-elevated {
    background: var(--bg-elevated);
}
.section-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    max-width: var(--max-w);
    margin: 0 auto;
}

/* ============================================
   FILMOGRAPHY GRID — Apple Product Grid Style
   ============================================ */
.filmography-intro {
    margin-bottom: clamp(40px, 6vw, 80px);
}

.filmography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.film-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-card);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    cursor: pointer;
    display: block;
    color: inherit;
}
.film-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    color: inherit;
}

.film-card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--surface);
}
.film-card-poster img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
    object-position: center center;
}
.film-card-poster img.poster-landscape {
    object-position: right bottom;
}

.film-card:hover .film-card-poster img {
    transform: scale(1.04);
}

.film-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}
.film-card:hover .film-card-overlay {
    opacity: 1;
}
.film-card-overlay .cta-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}
.film-card-overlay .cta-text svg {
    width: 14px; height: 14px;
    transition: transform 0.3s;
}
.film-card:hover .film-card-overlay .cta-text svg {
    transform: translateX(4px);
}

.film-card-info {
    padding: 20px 24px 24px;
}
.film-card-year {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.film-card-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.26;
    margin-bottom: 4px;
}
.film-card-role {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 400;
}

/* ============================================
   CTA LINK — Apple "Learn more >" Style
   ============================================ */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 17px;
    font-weight: 400;
    color: var(--accent);
    transition: gap 0.3s var(--ease-out);
}
.cta-link:hover {
    gap: 8px;
    color: var(--accent-bright);
}
.cta-link svg {
    width: 16px; height: 16px;
}

/* ============================================
   SINGLE FILM — Fullscreen Cinematic
   ============================================ */
.film-detail {
    padding-top: 48px;
}

.film-hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.film-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.25);
    transform: scale(1.2);
}

.film-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 22px;
}

.film-hero-poster {
    width: clamp(200px, 30vw, 320px);
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.film-hero-poster img {
    width: 100%;
    object-fit: contain;
}

.film-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    max-width: 640px;
    margin: 40px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}
.meta-item .meta-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 4px;
}
.meta-item-wide {
    grid-column: 1 / -1;
}
.film-synopsis-box {
    margin-top: clamp(24px, 3vw, 40px);
    padding-top: clamp(20px, 2.5vw, 32px);
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.meta-item-wide .meta-value {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.3px;
}
.meta-item .meta-value {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    color: var(--white);
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Trailer */
.film-trailer-section {
    background: var(--bg-elevated);
}
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: none;
}

/* Film Description */
.film-description {
    font-size: 19px;
    line-height: 1.58;
    color: var(--gray-400);
    max-width: 600px;
}

/* ============================================
   ABOUT — Apple-style Split
   ============================================ */
.about-section { padding-top: 48px; }

.about-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 8vw, 120px);
    align-items: center;
}

.about-photo {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--surface);
}
.about-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.about-text .eyebrow { margin-bottom: 12px; }
.about-text .headline-large { margin-bottom: 24px; }
.about-text .body-large { margin-bottom: 0; }
.about-text .body-large p {
    margin-bottom: 20px;
    color: var(--gray-400);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 48px;
    margin-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}
.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 6px;
}

/* ============================================
   CONTACT — Clean Minimal
   ============================================ */
.contact-section { padding-top: 48px; }

.contact-hero {
    text-align: center;
    padding: clamp(80px, 15vw, 200px) 22px clamp(60px, 8vw, 100px);
}
.contact-hero .headline-large { margin-bottom: 16px; }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
}

.contact-info-list {
    list-style: none;
}
.contact-info-list li {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.contact-info-list .label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 4px;
}
.contact-info-list .value {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
    color: var(--white);
}
.contact-info-list .value a { color: var(--white); }
.contact-info-list .value a:hover { color: var(--accent); }

/* Form */
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    font-family: var(--font-text);
    font-size: 17px;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
}
.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}
.btn-submit {
    display: inline-block;
    padding: 12px 28px;
    background: var(--white);
    border: none;
    color: var(--black);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    border-radius: 980px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.btn-submit:hover {
    background: var(--gray-200);
    transform: scale(1.02);
}

/* ============================================
   FOOTER — Apple Ultra-Clean
   ============================================ */
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-copy {
    font-size: 12px;
    color: var(--gray-600);
}
.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.footer-links a {
    font-size: 12px;
    color: var(--gray-600);
}
.footer-links a:hover { color: var(--gray-300); }

/* ============================================
   PAGE DEFAULTS
   ============================================ */
.page-content {
    padding-top: 48px;
    min-height: 60vh;
}
.page-content .entry-content {
    font-size: 19px;
    line-height: 1.58;
    color: var(--gray-400);
}
.page-content .entry-content p {
    margin-bottom: 24px;
}

/* No Poster Placeholder */
.no-poster {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 24px;
    transition: gap 0.3s;
}
.back-link:hover { gap: 10px; }
.back-link svg { width: 14px; height: 14px; }

/* Success/Error messages */
.msg-success {
    padding: 14px 20px;
    background: rgba(200,169,110,0.1);
    border: 1px solid rgba(200,169,110,0.3);
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 15px;
}
.msg-error {
    padding: 14px 20px;
    background: rgba(255,59,48,0.1);
    border: 1px solid rgba(255,59,48,0.3);
    border-radius: 12px;
    margin-bottom: 24px;
    color: #ff6961;
    font-size: 15px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 834px) {
    .menu-toggle { display: block; }

    .header-actions {
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }    .main-nav {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.97);
        backdrop-filter: blur(30px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s var(--ease-out);
        z-index: 10000;
    }
    .main-nav.active { opacity: 1; pointer-events: auto; }
    .main-nav ul { flex-direction: column; gap: 28px; text-align: center; }
    .main-nav a { font-size: 17px; opacity: 1; }

    .about-grid { grid-template-columns: 1fr; }
    .about-photo { max-width: 400px; }

    .film-hero-section { min-height: 60vh; }

    .contact-layout { grid-template-columns: 1fr; }

    .filmography-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .filmography-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .film-card { border-radius: 12px; }
    .film-card-info { padding: 12px 14px 16px; }
    .film-card-title { font-size: 15px; }
    .film-card-role { font-size: 12px; }
    .film-hero-poster { width: 200px; }
    .film-meta-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
        max-width: 100%;
    }
    .meta-item .meta-value {
        font-size: 15px;
    }
}


/* ── Language Toggle Button ── */
.lang-toggle {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.lang-toggle:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
}
.lang-toggle-ko, .lang-toggle-en {
    pointer-events: none;
}

/* Smooth transition for language switching */
.lang-ko, .lang-en,
.lang-ko-img, .lang-en-img,
.lang-ko-bg, .lang-en-bg,
.lang-ko-trailer, .lang-en-trailer {
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .lang-toggle {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* ── Film Filter Tabs ── */
.film-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-tab {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    padding: 10px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.filter-tab:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}
.filter-tab.active {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}
.film-card.filter-hidden {
    display: none !important;
}
/* Category Dividers */
.category-divider {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 0 12px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    position: relative;
}
.category-divider::before,
.category-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 80px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.category-divider::before { left: 0; }
.category-divider::after { right: 0; }
.category-divider:first-child {
    padding-top: 0;
}

@media (max-width: 768px) {
    .film-filter-tabs {
        flex-wrap: wrap;
        gap: 6px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ============================================
   COMING SOON Badge
   ============================================ */
.film-card-poster {
    position: relative;
}
.coming-soon-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0;
    background: none;
    border: none;
    z-index: 5;
    pointer-events: none;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}