/* =========================
   Director Grid
========================= */

.director-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

/* =========================
   Director Card
========================= */

.director-item {
    background: linear-gradient(145deg, #141414, #0f0f0f);
    border: 1px solid #2a2a2a;
    border-radius: 18px;
    padding: 16px 14px 18px;
    text-align: center;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all .3s ease;
}

.director-item:hover {
    transform: translateY(-4px);
    border-color: #ff6b25;
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(255, 107, 37, 0.4);
}

/* =========================
   Profile Image
========================= */

.director-profile-img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    margin: 0 auto 12px;
    display: block;
    background: #111;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.6);
}

/* Placeholder */

.director-profile-placeholder {
    width: 120px;
    height: 150px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background:
        radial-gradient(circle at top, #1f1f1f, #0f0f0f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* =========================
   Link / Names
========================= */

.director-item a {
    text-decoration: none;
    display: block;
    padding: 6px 0 0;
    transition: color .25s ease;
}

.director-item a:hover {
    color: #ff6b25;
}

/* Korean Name */

.director-name-kr {
    font-size: 14px;
    font-weight: 700;
    color: #f1f1f1;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

/* English Name */

.director-name-en {
    font-size: 12px;
    color: #9a9a9a;
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
    .director-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 14px;
    }

    .director-profile-img,
    .director-profile-placeholder {
        width: 100px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .director-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .director-profile-img,
    .director-profile-placeholder {
        width: 120px;
        height: 150px;
    }
}


/* =========================
   COMMON TEXT
========================= */
.movie_genres {
    font-size: 11px;
    color: var(--text-sub);
    margin-bottom: 4px
}

.movie_year {
    font-size: 11px;
    color: #888;
    margin-left: 6px
}

.column_title {
    color: #e6e6e6;
    font-weight: 600
}

/* =========================
   LAYOUT
========================= */
.layout_1 {
    float: left;
    min-width: 230px;
    padding-right: 20px;
    min-height: 320px
}

.layout_1>img {
    border-radius: var(--radius-md);
    border: 1px solid var(--border)
}

.layout_2 {
    float: left;
    min-width: 40%;
    max-width: 100%;
    padding-right: 20px;
    margin-bottom: 16px
}

/* =========================
   PROFILE / HERO IMAGE
========================= */
.main-profile-image-container {
    width: 100%;
    height: 280px;
    margin: 24px 0;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4)
}

/* =========================
   YEAR / GENRE / DIRECTOR HEADER
========================= */
.year-header,
.genre-header,
.director-header {
    background:
        radial-gradient(circle at top,
            var(--primary-soft),
            transparent 60%),
        linear-gradient(135deg, #1a1a1a, #141414);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 20px;
    text-align: center;
    margin-bottom: 24px
}

.year-title,
.genre-title,
.director-title {
    font-size: 2.4em;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff
}

.year-subtitle,
.genre-subtitle,
.director-subtitle {
    font-size: 1.05em;
    color: var(--text-sub)
}

.year-stats,
.genre-stats,
.director-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 18px
}

.stat-item {
    text-align: center
}

.stat-number {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary)
}

.stat-label {
    font-size: .85em;
    color: var(--text-sub)
}

/* =========================
   YEAR NAVIGATION
========================= */
.year-navigation {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 20px 0;
    text-align: center
}

.year-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap
}

.year-nav-btn {
    padding: 6px 14px;
    border-radius: 999px;
    background: #000;
    border: 1px solid var(--border);
    color: var(--text-sub);
    font-size: .85em;
    transition: .2s
}

.year-nav-btn:hover {
    color: #fff;
    border-color: var(--primary)
}

.year-nav-btn.disabled {
    opacity: .4;
    pointer-events: none
}

/* =========================
   CONTROLS / SORT
========================= */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
    flex-wrap: wrap
}

.sort-controls {
    display: flex;
    gap: 8px;
    align-items: center
}

.sort-controls span {
    font-size: .85em;
    color: var(--text-sub)
}

.sort-btn {
    padding: 6px 14px;
    border-radius: 999px;
    background: #000;
    border: 1px solid var(--border);
    font-size: .8em;
    color: var(--text-sub);
    transition: .2s
}

.sort-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary)
}

.sort-btn:hover {
    border-color: var(--primary);
    color: #fff
}

/* =========================
   MOVIE LIST ITEM
========================= */
.movie-grid-item {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: .25s
}

.movie-grid-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(255, 107, 53, .12)
}

.movie-poster-section {
    flex: 0 0 130px
}

.movie-poster-section img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block
}

.movie-info-section {
    flex: 1;
    padding: 16px
}

.movie-title-main {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 6px
}

.movie-title-eng {
    font-size: .8em;
    color: #888;
    margin-bottom: 10px
}

.movie-meta {
    font-size: .8em;
    line-height: 1.5;
    color: var(--text-sub)
}

/* =========================
   EMPTY STATE
========================= */
.no-movies {
    text-align: center;
    padding: 48px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-sub)
}

.no-movies h2 {
    color: #fff;
    margin-bottom: 8px
}

/* =========================
   FORM ELEMENTS
========================= */
select {
    background: #000;
    color: #fff;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px
}

/* =========================
   ADS CLEANUP
========================= */
div:has(> ins.adsbygoogle[data-ad-status="unfilled"]),
div:has(> ins.adsbygoogle[data-ad-status="unfilled"])+hr {
    display: none !important
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 840px) {
    .layout_1 {
        min-width: 130px;
        min-height: 260px
    }

    .main-profile-image-container {
        height: 190px
    }

    .layout_2 {
        width: 100%
    }
}

@media (max-width: 768px) {

    .year-title,
    .genre-title,
    .director-title {
        font-size: 2em
    }

    .controls {
        flex-direction: column
    }

    .movie-poster-section {
        flex: 0 0 110px
    }

    .movie-info-section {
        padding: 12px
    }
}