:root {
    --honey-50: #fff8ed;
    --honey-100: #fff0d1;
    --honey-500: #d4a574;
    --honey-600: #c4954f;
    --flame-50: #fff3e0;
    --flame-100: #ffe0b2;
    --flame-500: #ff6b35;
    --flame-600: #f4511e;
    --phoenix-50: #fff4ef;
    --phoenix-500: #c1440e;
    --phoenix-600: #a13810;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft-shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
    --strong-shadow: 0 28px 80px rgba(161, 56, 16, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, var(--honey-50), #ffffff 48%, var(--flame-50));
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #1f2937;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.35);
}

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

.nav-link {
    padding: 10px 14px;
    color: #4b5563;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.25s ease;
}

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

.header-search {
    margin-left: auto;
    min-width: 300px;
    display: flex;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 999px;
    padding: 4px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 9px 12px;
    color: #374151;
    background: transparent;
}

.header-search button,
.primary-button,
.secondary-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.25s ease;
}

.header-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
    box-shadow: 0 14px 28px rgba(255, 107, 53, 0.26);
}

.header-search button {
    padding: 8px 16px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
}

.primary-button:hover,
.header-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.35);
}

.secondary-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.28);
}

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

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

.mobile-nav {
    display: none;
    padding: 0 20px 16px;
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.hero-slider {
    position: relative;
    height: min(680px, calc(100vh - 76px));
    min-height: 520px;
    overflow: hidden;
    background: #111827;
}

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

.hero-slide.active {
    opacity: 1;
}

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

.hero-slide.active img {
    animation: heroZoom 8s ease forwards;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 46%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    max-width: 1180px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 660px;
    color: #ffffff;
    animation: float 6s ease-in-out infinite;
}

.hero-badges,
.meta-row,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--honey-500), #ffbf69);
}

.rating-pill {
    color: #fde68a;
    font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 20px 0 14px;
    font-size: clamp(2.4rem, 5.2vw, 5.8rem);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 620px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.meta-row {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 30px;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-dots button.active {
    width: 34px;
    background: #ffffff;
}

.section,
.page-hero,
.content-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 76px 20px;
}

.section.alt {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    background: linear-gradient(90deg, var(--honey-100), #fff7ed, var(--flame-100));
}

.section.alt > .section-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--flame-600);
    font-weight: 900;
}

.section h2,
.page-hero h1,
.content-title {
    margin: 8px 0 0;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-head p,
.page-hero p {
    max-width: 720px;
    color: var(--muted);
    margin: 12px 0 0;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    transition: 0.28s ease;
}

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

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

.card-cover img,
.rank-cover img,
.detail-poster img,
.tile-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .card-cover img,
.rank-item:hover .rank-cover img,
.category-tile:hover .tile-covers img {
    transform: scale(1.08);
}

.card-type,
.card-rank,
.card-play {
    position: absolute;
    z-index: 2;
}

.card-type {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.card-rank {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #ffbf69, var(--flame-500));
    border-radius: 999px;
}

.card-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
    border-radius: 999px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.25s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 18px;
}

.card-meta,
.card-foot,
.rank-meta,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.88rem;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 1.1rem;
    line-height: 1.35;
}

.card-body h3 a:hover,
.rank-title:hover {
    color: var(--flame-600);
}

.card-body p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 14px;
    color: #4b5563;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-foot {
    justify-content: space-between;
}

.card-foot a,
.inline-link {
    color: var(--flame-600);
    font-weight: 800;
}

.compact-card .card-body p {
    display: none;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 128px 1fr;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    transition: 0.25s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--soft-shadow);
}

.rank-cover {
    position: relative;
    min-height: 172px;
    overflow: hidden;
    background: var(--flame-50);
}

.rank-cover span {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffbf69, var(--flame-600));
}

.rank-content {
    padding: 18px;
}

.rank-title {
    display: block;
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 900;
}

.rank-content p {
    display: -webkit-box;
    margin: 0 0 14px;
    color: #4b5563;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-tile {
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.09);
    transition: 0.28s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--strong-shadow);
}

.tile-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 210px;
    overflow: hidden;
    background: var(--honey-100);
}

.tile-body {
    padding: 24px;
}

.tile-kicker {
    color: var(--flame-600);
    font-weight: 900;
}

.tile-body h3 {
    margin: 10px 0 18px;
    font-size: 1.25rem;
    line-height: 1.45;
}

.tile-link {
    display: inline-flex;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
}

.page-hero {
    padding-top: 64px;
    padding-bottom: 40px;
}

.page-hero-card {
    padding: 42px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 240, 209, 0.96), rgba(255, 255, 255, 0.96) 45%, rgba(255, 224, 178, 0.92));
    box-shadow: var(--soft-shadow);
}

.filter-panel {
    position: sticky;
    top: 76px;
    z-index: 9;
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.filter-panel input {
    width: 100%;
    border: 1px solid var(--line);
    outline: 0;
    padding: 13px 16px;
    border-radius: 999px;
    background: #ffffff;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    border: 0;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--phoenix-600);
    background: var(--flame-50);
    cursor: pointer;
    font-weight: 800;
}

.filter-chip.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
}

.empty-state {
    display: none;
    padding: 42px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: #ffffff;
}

.empty-state.show {
    display: block;
}

.detail-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px 80px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 26px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--flame-600);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.92fr);
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-side,
.story-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.player-card {
    overflow: hidden;
}

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

.video-element {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.62), rgba(193, 68, 14, 0.34));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.4);
    font-size: 2rem;
}

.player-caption {
    padding: 22px 24px 26px;
}

.player-caption h1 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 4vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.player-caption p {
    color: #4b5563;
    margin: 0;
}

.detail-side {
    overflow: hidden;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    background: var(--honey-100);
}

.side-body {
    padding: 22px;
}

.tag-row {
    margin-top: 16px;
}

.tag-row a,
.tag-row span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--phoenix-600);
    background: var(--flame-50);
    font-size: 0.86rem;
    font-weight: 800;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 28px;
}

.story-card {
    padding: 28px;
}

.story-card h2 {
    margin: 0 0 12px;
    font-size: 1.55rem;
}

.story-card p {
    margin: 0;
    color: #374151;
}

.related-section {
    margin-top: 34px;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.84);
    background: linear-gradient(135deg, #2b130b, #4a1f0e 45%, #111827);
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 20px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 36px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 16px;
}

.site-footer p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer a:not(.brand) {
    display: block;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.76);
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px 30px;
    color: rgba(255, 255, 255, 0.58);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes heroZoom {
    from {
        transform: scale(1.03);
    }
    to {
        transform: scale(1.1);
    }
}

@media (max-width: 1024px) {
    .header-search {
        min-width: 220px;
    }

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

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

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

@media (max-width: 760px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .mobile-nav .nav-link {
        display: block;
    }

    .hero-slider {
        min-height: 570px;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.38));
    }

    .hero-content {
        align-items: end;
        padding-bottom: 84px;
    }

    .hero-arrow {
        display: none;
    }

    .section,
    .page-hero,
    .content-shell {
        padding: 52px 16px;
    }

    .section-head {
        display: block;
    }

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

    .card-body {
        padding: 14px;
    }

    .card-body p,
    .card-foot {
        display: none;
    }

    .rank-item {
        grid-template-columns: 104px 1fr;
    }

    .rank-cover {
        min-height: 144px;
    }

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

    .tile-covers {
        min-height: 150px;
    }

    .filter-panel {
        position: static;
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

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

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

@media (max-width: 460px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 2.2rem;
    }

    .page-hero-card {
        padding: 26px;
        border-radius: 24px;
    }
}
