:root {
    --mist-50: #f8fafb;
    --mist-100: #f0f4f7;
    --mist-200: #d9e2e8;
    --mist-500: #8a9ba8;
    --mist-600: #6f7f8d;
    --mist-700: #5a6774;
    --mist-800: #4a5560;
    --mist-900: #3e4750;
    --forest-50: #f3f8f4;
    --forest-100: #e1ede4;
    --forest-500: #4d8862;
    --forest-600: #3a6e4d;
    --forest-700: #30593f;
    --stream-50: #f0f9ff;
    --stream-100: #e0f2fe;
    --stream-600: #0284c7;
    --stream-700: #0164a1;
    --sunset-50: #fff8ed;
    --sunset-600: #ef5f0c;
    --mountain-700: #424f48;
    --white: #ffffff;
    --shadow-sm: 0 4px 14px rgba(62, 71, 80, 0.08);
    --shadow-md: 0 10px 30px rgba(62, 71, 80, 0.12);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--mist-50);
    color: var(--mist-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

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

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

.container-custom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--mist-200);
    backdrop-filter: blur(14px);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--mist-900);
}

.site-logo-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--forest-600), var(--stream-600));
    color: #ffffff;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.site-logo-text {
    font-size: clamp(18px, 3vw, 25px);
    letter-spacing: -0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 650;
    color: var(--mist-700);
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--forest-600);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 3px;
    border-radius: 999px;
    background: var(--forest-600);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--mist-100);
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--mist-800);
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--mist-200);
    background: #ffffff;
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-inner {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 18px;
}

.mobile-category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 6px;
}

.mobile-category-strip a,
.tag-chip,
.movie-card-tags a,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--forest-100);
    color: var(--forest-700);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 650;
}

.hero-slider {
    position: relative;
    height: clamp(520px, 76vh, 820px);
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding-bottom: clamp(58px, 8vw, 100px);
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 7vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2.2vw, 21px);
    line-height: 1.7;
}

.hero-actions,
.category-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 750;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--mist-900);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #ffffff;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.btn-green {
    background: var(--forest-600);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    transition: background 0.25s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.42);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.quick-search {
    position: relative;
    z-index: 4;
    margin-top: -36px;
}

.quick-search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    padding: 14px;
}

.quick-search-box input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--mist-200);
    border-radius: 14px;
    background: var(--mist-50);
    color: var(--mist-900);
    padding: 0 14px;
    outline: none;
}

.quick-search-box input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--forest-500);
    box-shadow: 0 0 0 4px rgba(77, 136, 98, 0.12);
}

.section-block {
    padding: clamp(54px, 7vw, 86px) 0;
}

.section-white {
    background: #ffffff;
}

.section-soft {
    background: var(--mist-50);
}

.section-gradient {
    background: linear-gradient(135deg, var(--forest-50), var(--stream-50));
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0 0 8px;
    color: var(--mist-900);
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--mist-600);
    font-size: 17px;
}

.section-more {
    flex: 0 0 auto;
    color: var(--forest-600);
    font-weight: 750;
}

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

.movie-grid.compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.movie-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--mist-200), var(--mist-100));
}

.movie-card.wide .movie-card-cover {
    aspect-ratio: 16 / 10;
}

.movie-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .movie-card-cover img {
    transform: scale(1.08);
}

.movie-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .movie-card-cover::after {
    opacity: 1;
}

.movie-card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mist-900);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .movie-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #ffffff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 750;
    backdrop-filter: blur(6px);
}

.movie-card-body {
    padding: 16px;
}

.movie-card-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--mist-900);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.25s ease;
}

.movie-card-title:hover {
    color: var(--forest-600);
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 8px;
    color: var(--mist-500);
    font-size: 12px;
}

.movie-card-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 43px;
    margin: 10px 0 12px;
    color: var(--mist-600);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-list {
    display: grid;
    gap: 18px;
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
    gap: 24px;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-row img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.feature-row-content {
    align-self: center;
    padding: 26px 26px 26px 0;
}

.feature-row-content h3 {
    margin: 0 0 12px;
    font-size: clamp(22px, 3vw, 32px);
    letter-spacing: -0.04em;
}

.feature-row-content p {
    margin: 0 0 12px;
    color: var(--mist-600);
    line-height: 1.75;
}

.feature-row-content .review {
    display: -webkit-box;
    overflow: hidden;
    color: var(--mist-500);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, var(--forest-50));
    box-shadow: var(--shadow-sm);
    padding: 22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -36px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(58, 110, 77, 0.12);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    letter-spacing: -0.03em;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--mist-600);
    font-size: 14px;
    line-height: 1.65;
}

.category-count {
    display: inline-flex;
    border-radius: 999px;
    background: var(--stream-100);
    color: var(--stream-700);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 58px 92px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 12px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    color: var(--forest-600);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.ranking-item img {
    width: 92px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-info h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.ranking-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--mist-600);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hot-score {
    border-radius: 999px;
    background: var(--sunset-50);
    color: var(--sunset-600);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
}

.page-hero {
    background: linear-gradient(135deg, var(--forest-700), var(--stream-700));
    color: #ffffff;
    padding: 62px 0;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(130px, 0.7fr)) auto;
    gap: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 14px;
    margin-bottom: 30px;
}

.result-count {
    margin-bottom: 18px;
    color: var(--mist-600);
    font-weight: 700;
}

.empty-result {
    display: none;
    border-radius: 20px;
    background: #ffffff;
    color: var(--mist-600);
    box-shadow: var(--shadow-sm);
    padding: 36px;
    text-align: center;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.player-shell {
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: var(--shadow-lg);
    margin-bottom: 28px;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    background: rgba(0, 0, 0, 0.28);
    transition: background 0.25s ease;
}

.player-overlay:hover {
    background: rgba(0, 0, 0, 0.38);
}

.player-overlay[hidden] {
    display: none;
}

.play-ring {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mist-900);
    font-size: 34px;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease;
}

.player-overlay:hover .play-ring {
    transform: scale(1.08);
}

.detail-card,
.side-card {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: clamp(22px, 3vw, 32px);
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
}

.detail-card h2 {
    margin: 28px 0 12px;
    font-size: 22px;
}

.detail-card p {
    margin: 0 0 14px;
    color: var(--mist-700);
    font-size: 16px;
    line-height: 1.9;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.side-card {
    position: sticky;
    top: 104px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.compact-list {
    display: grid;
    gap: 14px;
}

.compact-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.compact-card img {
    width: 112px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    object-fit: cover;
}

.compact-card strong {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 5px;
    color: var(--mist-900);
    font-size: 15px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.compact-card em {
    color: var(--mist-500);
    font-size: 12px;
    font-style: normal;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.stat-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.13);
    padding: 20px;
    backdrop-filter: blur(8px);
}

.stat-card strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.category-sample {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.category-sample span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--mist-600);
    padding: 5px 9px;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .movie-grid,
    .movie-grid.compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .side-card {
        position: static;
    }

    .filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .nav-bar {
        min-height: 66px;
    }

    .hero-slider {
        height: 620px;
    }

    .hero-content {
        padding-bottom: 72px;
    }

    .hero-control {
        display: none;
    }

    .quick-search {
        margin-top: 18px;
    }

    .quick-search-box {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        display: inline-flex;
        margin-top: 12px;
    }

    .movie-grid,
    .movie-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }

    .feature-row-content {
        padding: 22px;
    }

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

    .ranking-item {
        grid-template-columns: 38px 76px minmax(0, 1fr);
    }

    .ranking-item img {
        width: 76px;
        height: 52px;
    }

    .hot-score {
        display: none;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .container-custom {
        width: min(100% - 22px, 1280px);
    }

    .movie-grid,
    .movie-grid.compact {
        gap: 12px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-card-title {
        font-size: 15px;
    }

    .movie-card-desc {
        display: none;
    }

    .detail-card,
    .side-card {
        padding: 18px;
    }
}
