:root {
    --alley-50: #faf9f7;
    --mist-50: #f0f4f8;
    --mist-500: #627d98;
    --mist-600: #486581;
    --mist-700: #334e68;
    --rain-100: #e9ecef;
    --rain-200: #dee2e6;
    --rain-300: #ced4da;
    --rain-500: #6c757d;
    --rain-600: #495057;
    --rain-700: #343a40;
    --rain-800: #212529;
    --gold: #f5c542;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(33, 37, 41, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--alley-50);
    color: var(--rain-700);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--rain-200);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(33, 37, 41, 0.06);
}

.header-inner {
    max-width: 1280px;
    height: 76px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--mist-700), var(--mist-500));
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(72, 101, 129, 0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    color: var(--rain-800);
    font-size: 23px;
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.logo-subtitle {
    color: var(--rain-500);
    font-size: 12px;
    margin-top: 5px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 1;
}

.main-nav a {
    color: var(--rain-700);
    font-size: 14px;
    font-weight: 650;
    padding: 10px 6px;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--mist-700);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--rain-700);
    background: var(--mist-50);
    cursor: pointer;
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--rain-800);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    background-size: cover;
    background-position: center;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 24, 31, 0.9) 0%, rgba(18, 24, 31, 0.62) 42%, rgba(18, 24, 31, 0.1) 100%),
        linear-gradient(0deg, rgba(18, 24, 31, 0.64), rgba(18, 24, 31, 0.08));
}

.hero-slide::after {
    content: "";
    position: absolute;
    left: -12%;
    top: 12%;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    background: rgba(98, 125, 152, 0.35);
    filter: blur(35px);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 44px));
    min-height: 620px;
    margin: 0 auto;
    padding: 86px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 44px;
}

.hero-copy {
    color: var(--white);
    max-width: 760px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 22px 0 16px;
    color: var(--white);
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: 0.02em;
}

.hero-desc {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.85;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 24px 0 30px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(240, 244, 248, 0.9);
    color: var(--mist-700);
    font-size: 12px;
    font-weight: 700;
}

.hero .tag {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: var(--mist-600);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 28px rgba(72, 101, 129, 0.22);
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--mist-700);
    box-shadow: 0 18px 34px rgba(72, 101, 129, 0.3);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.btn.light {
    background: var(--white);
    color: var(--mist-700);
    box-shadow: 0 12px 24px rgba(33, 37, 41, 0.08);
}

.hero-panel {
    position: relative;
    align-self: stretch;
    min-height: 430px;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-panel img {
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.hero-panel-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--rain-700);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.hero-panel-caption strong {
    display: block;
    color: var(--rain-800);
    font-size: 18px;
    margin-bottom: 4px;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--white);
}

.search-wrap {
    position: relative;
    width: min(680px, 100%);
    margin-top: 28px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.search-box input {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--rain-800);
    padding: 0 12px;
}

.search-box button {
    border: 0;
    border-radius: 14px;
    min-width: 92px;
    min-height: 46px;
    background: var(--mist-600);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    max-height: 390px;
    overflow: auto;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
    z-index: 50;
}

.search-results.is-open {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--rain-100);
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: var(--mist-50);
}

.search-result-thumb {
    width: 50px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--rain-100);
    flex: 0 0 auto;
}

.search-result-title {
    display: block;
    color: var(--rain-800);
    font-weight: 800;
}

.search-result-meta {
    color: var(--rain-500);
    font-size: 13px;
}

.section {
    padding: 72px 0;
}

.section.alt {
    background: var(--white);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-kicker {
    color: var(--mist-600);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-title {
    margin: 6px 0 0;
    color: var(--rain-800);
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-desc {
    margin: 10px 0 0;
    color: var(--rain-600);
    max-width: 720px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid rgba(222, 226, 230, 0.75);
    box-shadow: 0 14px 36px rgba(33, 37, 41, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(33, 37, 41, 0.14);
}

.movie-poster {
    position: relative;
    aspect-ratio: 3 / 4.25;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rain-100), var(--mist-50));
}

.movie-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(33, 37, 41, 0.78);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.movie-body {
    padding: 16px;
}

.movie-title {
    margin: 0 0 8px;
    color: var(--rain-800);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-meta {
    color: var(--rain-500);
    font-size: 13px;
    margin-bottom: 10px;
}

.movie-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.25em;
    margin: 0;
    color: var(--rain-600);
    font-size: 14px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 26px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--white), var(--mist-50));
    border: 1px solid var(--rain-200);
    box-shadow: 0 14px 34px rgba(33, 37, 41, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(33, 37, 41, 0.12);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: rgba(98, 125, 152, 0.13);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    color: var(--rain-800);
    font-size: 24px;
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
}

.category-card p {
    margin: 0 0 20px;
    color: var(--rain-600);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 86px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--rain-200);
    box-shadow: 0 12px 28px rgba(33, 37, 41, 0.07);
}

.rank-num {
    color: var(--mist-600);
    font-size: 30px;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    height: 116px;
    border-radius: 16px;
    object-fit: cover;
    background: var(--rain-100);
}

.rank-item h3 {
    margin: 0 0 8px;
    color: var(--rain-800);
    font-size: 18px;
}

.rank-item p {
    margin: 0;
    color: var(--rain-600);
    font-size: 14px;
}

.page-hero {
    background:
        radial-gradient(circle at top left, rgba(98, 125, 152, 0.24), transparent 34%),
        linear-gradient(135deg, var(--rain-800), var(--mist-700));
    color: var(--white);
    padding: 82px 0;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
}

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

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

.breadcrumb a:hover {
    color: var(--white);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--rain-200);
    box-shadow: 0 12px 30px rgba(33, 37, 41, 0.07);
}

.filters input {
    min-width: 260px;
    flex: 1;
    border: 1px solid var(--rain-200);
    border-radius: 14px;
    min-height: 44px;
    padding: 0 14px;
    outline: none;
}

.filters button {
    border: 1px solid var(--rain-200);
    border-radius: 999px;
    background: var(--mist-50);
    color: var(--rain-700);
    min-height: 42px;
    padding: 0 14px;
    font-weight: 750;
    cursor: pointer;
}

.filters button.is-active,
.filters button:hover {
    background: var(--mist-600);
    color: var(--white);
    border-color: var(--mist-600);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    z-index: 2;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mist-700);
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.play-overlay.is-hidden {
    display: none;
}

.detail-card {
    padding: 28px;
    border-radius: 28px;
    background: var(--white);
    border: 1px solid var(--rain-200);
    box-shadow: var(--shadow);
}

.detail-card h2 {
    margin: 0 0 12px;
    color: var(--rain-800);
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: 28px;
}

.detail-card p {
    color: var(--rain-600);
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.meta-cell {
    padding: 14px;
    border-radius: 16px;
    background: var(--mist-50);
}

.meta-cell span {
    display: block;
    color: var(--rain-500);
    font-size: 12px;
    margin-bottom: 4px;
}

.meta-cell strong {
    color: var(--rain-800);
}

.side-poster {
    overflow: hidden;
    border-radius: 28px;
    background: var(--white);
    border: 1px solid var(--rain-200);
    box-shadow: var(--shadow);
}

.side-poster img {
    aspect-ratio: 3 / 4.25;
    object-fit: cover;
}

.related-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.related-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--rain-200);
    transition: transform 0.2s ease, background 0.2s ease;
}

.related-item:hover {
    transform: translateX(3px);
    background: var(--mist-50);
}

.related-item img {
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--rain-100);
}

.related-item strong {
    color: var(--rain-800);
    display: block;
    margin-bottom: 4px;
}

.related-item span {
    color: var(--rain-500);
    font-size: 13px;
}

.site-footer {
    background: var(--rain-800);
    color: var(--rain-100);
    padding: 52px 0;
    margin-top: 72px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer p,
.site-footer a {
    color: var(--rain-300);
}

.footer-links {
    display: grid;
    gap: 9px;
}

.no-results {
    display: none;
    padding: 28px;
    text-align: center;
    border-radius: 22px;
    background: var(--white);
    color: var(--rain-600);
    border: 1px solid var(--rain-200);
}

.no-results.is-visible {
    display: block;
}

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

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

    .hero-panel {
        display: none;
    }

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

@media (max-width: 820px) {
    .header-inner {
        height: 68px;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        border-radius: 22px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 14px;
        border-radius: 14px;
        background: var(--alley-50);
    }

    .logo-subtitle {
        display: none;
    }

    .hero,
    .hero-content {
        min-height: 640px;
    }

    .hero-content {
        padding: 64px 0 88px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .grid,
    .grid.compact,
    .rank-list,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .filters input {
        min-width: 100%;
    }
}

@media (max-width: 560px) {
    .container,
    .hero-content {
        width: min(100% - 28px, 1280px);
    }

    .logo-title {
        font-size: 19px;
    }

    .hero-desc,
    .page-hero p {
        font-size: 16px;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box button {
        width: 100%;
    }

    .rank-item {
        grid-template-columns: 46px 72px minmax(0, 1fr);
    }

    .rank-thumb {
        height: 98px;
    }

    .detail-card {
        padding: 20px;
    }

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