:root {
    --primary-50: #fff7ed;
    --primary-100: #ffedd5;
    --primary-500: #d4884b;
    --primary-600: #c6703f;
    --primary-700: #a55936;
    --accent-500: #ed7516;
    --secondary-50: #fafaf9;
    --secondary-100: #f5f5f4;
    --secondary-600: #57534e;
    --secondary-700: #44403c;
    --secondary-800: #292524;
    --secondary-900: #1c1917;
    --warm-50: #faf9f7;
    --warm-100: #f4f2ee;
    --warm-200: #e8e4dc;
    --warm-300: #d9d3c7;
    --white: #ffffff;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 45px rgba(28, 25, 23, 0.14);
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--warm-50);
    color: var(--secondary-900);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 8px rgba(28, 25, 23, 0.06);
    backdrop-filter: blur(14px);
}

.nav-shell {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand:hover {
    color: var(--primary-600);
}

.brand-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-500);
    color: var(--white);
    transition: background 0.25s ease;
}

.brand:hover .brand-icon {
    background: var(--primary-600);
}

.brand-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-name {
    font-size: 24px;
    letter-spacing: -0.02em;
}

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

.nav-link,
.mobile-nav-link {
    color: var(--secondary-700);
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: var(--secondary-700);
}

.mobile-nav {
    border-top: 1px solid var(--warm-200);
    padding: 12px 16px 18px;
    background: var(--white);
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
}

.mobile-nav-link:hover {
    background: var(--warm-50);
}

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--secondary-900);
}

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

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 84px;
}

.hero-copy {
    width: min(720px, 100%);
    color: var(--white);
}

.hero-kicker,
.category-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(212, 136, 75, 0.92);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 680px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.inline-tags span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    padding: 6px 12px;
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

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

.btn-primary {
    background: var(--primary-500);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(212, 136, 75, 0.28);
}

.btn-primary:hover {
    background: var(--primary-600);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.is-active {
    width: 30px;
    background: var(--primary-500);
}

.quick-search-panel,
.filter-panel {
    margin-top: -34px;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.search-form {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form label,
.filter-grid label span {
    color: var(--secondary-700);
    font-weight: 800;
}

.search-form input,
.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--warm-200);
    border-radius: 12px;
    background: var(--white);
    color: var(--secondary-900);
    padding: 0 14px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.filter-grid input:focus,
.filter-grid select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(212, 136, 75, 0.16);
}

.hero-shortcuts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-shortcuts a {
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--warm-100);
    color: var(--secondary-700);
    font-size: 14px;
    font-weight: 700;
}

.hero-shortcuts a:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.section-block {
    padding: 58px 0 0;
}

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

.section-heading h2,
.detail-card h2,
.side-card h2 {
    margin: 0;
    color: var(--secondary-900);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-subtitle {
    margin: 8px 0 0;
    color: var(--secondary-600);
}

.section-more {
    color: var(--primary-600);
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--warm-200);
}

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

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

.movie-cover-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
}

.movie-card:hover .movie-cover-shade {
    background: rgba(0, 0, 0, 0.3);
}

.movie-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-600);
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    backdrop-filter: blur(8px);
}

.movie-play svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

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

.movie-duration,
.rank-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.62);
    color: var(--white);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 12px;
    right: auto;
    background: var(--accent-500);
}

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    margin: 0;
    color: var(--secondary-900);
    font-size: 18px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-info h3 a:hover {
    color: var(--primary-600);
}

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

.movie-meta,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    color: var(--secondary-600);
    font-size: 14px;
}

.pill {
    display: inline-flex;
    border-radius: 999px;
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 800;
}

.score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-500);
    font-weight: 800;
}

.score svg,
.ranking-score svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

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

.category-card {
    display: flex;
    min-height: 236px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--secondary-900), #3f2f25 52%, var(--primary-700));
    color: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card-link {
    display: block;
    padding: 24px 24px 8px;
}

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

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.category-samples {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 24px 24px;
}

.category-samples a {
    max-width: 100%;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.86);
    padding: 7px 10px;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-preview {
    padding-bottom: 40px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 112px 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-radius: 18px;
    background: var(--white);
    padding: 12px 18px 12px 12px;
    box-shadow: var(--shadow-soft);
}

.ranking-cover {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 9;
    background: var(--warm-200);
}

.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-index {
    color: var(--primary-600);
    font-size: 28px;
    font-weight: 900;
}

.ranking-body h3 {
    margin: 0;
    font-size: 18px;
}

.ranking-body h3 a:hover {
    color: var(--primary-600);
}

.ranking-body p {
    margin: 6px 0 0;
    color: var(--secondary-600);
    font-size: 14px;
}

.inline-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.inline-tags span {
    background: var(--warm-100);
    color: var(--secondary-700);
    backdrop-filter: none;
}

.ranking-score {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-500);
    font-size: 18px;
    font-weight: 900;
}

.site-footer {
    margin-top: 80px;
    background: var(--secondary-900);
    color: var(--warm-100);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 44px;
    padding: 50px 0;
}

.footer-brand {
    color: var(--white);
    font-size: 22px;
}

.site-footer p {
    max-width: 420px;
    margin: 16px 0 0;
    color: var(--warm-300);
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--warm-300);
}

.footer-links a:hover {
    color: var(--primary-500);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    color: var(--warm-300);
    text-align: center;
    font-size: 14px;
}

.subpage .page-hero {
    background: linear-gradient(135deg, var(--secondary-900), #3f2f25 58%, var(--primary-700));
    color: var(--white);
    padding: 70px 0;
}

.page-hero span {
    display: inline-flex;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
    line-height: 1.08;
}

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

.filter-panel {
    margin-top: -30px;
}

.search-page-panel {
    margin-bottom: 12px;
}

.filter-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.4fr) minmax(160px, 0.4fr);
    gap: 16px;
}

.filter-grid label {
    display: grid;
    gap: 8px;
}

.detail-page {
    background: var(--warm-50);
}

.player-band {
    padding: 34px 0;
    background: var(--secondary-900);
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    object-fit: contain;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.16));
    color: var(--white);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-layer span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-600);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
    transform: scale(1);
    transition: transform 0.2s ease;
}

.play-layer:hover span {
    transform: scale(1.06);
}

.play-layer svg {
    width: 42px;
    height: 42px;
    fill: currentColor;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 34px;
    padding-top: 36px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--secondary-600);
    font-size: 14px;
    margin-bottom: 18px;
}

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

.detail-main h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-meta {
    margin: 18px 0 26px;
}

.detail-card,
.side-card {
    margin-bottom: 22px;
    border-radius: 18px;
    background: var(--white);
    padding: 26px;
    box-shadow: var(--shadow-soft);
}

.detail-card h2,
.side-card h2 {
    margin-bottom: 14px;
    font-size: 23px;
}

.detail-card p {
    margin: 12px 0 0;
    color: var(--secondary-700);
    line-height: 1.85;
}

.lead-text {
    color: var(--primary-700) !important;
    font-weight: 700;
}

.review-text p:first-child {
    margin-top: 0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    border: 1px solid var(--warm-200);
    border-radius: 999px;
    background: var(--warm-50);
    color: var(--secondary-700);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
}

.tag-cloud a:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
    background: var(--primary-50);
}

.detail-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 22px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

.side-card dt {
    color: var(--secondary-600);
    font-weight: 700;
}

.side-card dd {
    margin: 0;
    color: var(--secondary-900);
}

.related-block {
    padding-top: 34px;
}

.movie-card.is-hidden {
    display: none;
}

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

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

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

    .detail-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .nav-shell {
        height: 66px;
    }

    .brand-name {
        font-size: 20px;
    }

    .hero-slider {
        height: 540px;
    }

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

    .hero-control {
        display: none;
    }

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

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

    .search-form label {
        width: 100%;
    }

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

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

    .ranking-row {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .ranking-index,
    .ranking-score {
        display: none;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-slider {
        height: 500px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-tags span:nth-child(n+3) {
        display: none;
    }

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

    .movie-grid,
    .wide-grid,
    .category-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .movie-info {
        padding: 16px;
    }

    .subpage .page-hero {
        padding: 48px 0 64px;
    }

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

    .play-layer span {
        width: 72px;
        height: 72px;
    }
}
