:root {
    --flame-500: #ff6b35;
    --flame-600: #f4511e;
    --phoenix-500: #ff7043;
    --honey-50: #fff8e1;
    --honey-100: #fff0d1;
    --honey-200: #ffe2a3;
    --honey-300: #ffd875;
    --honey-700: #a67c3e;
    --ink-900: #16110c;
    --ink-800: #231914;
    --ink-700: #332219;
    --muted: #72635a;
    --line: rgba(166, 124, 62, 0.18);
    --shadow: 0 22px 60px rgba(93, 57, 23, 0.16);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink-800);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 42%, #ffe7d5 100%);
}

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

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

button,
input {
    font: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(166, 124, 62, 0.96), rgba(255, 107, 53, 0.96), rgba(255, 112, 67, 0.96));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(110, 62, 19, 0.18);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: auto 1fr minmax(220px, 360px) auto;
    gap: 22px;
    align-items: center;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7a2d0d;
    background: linear-gradient(135deg, #ffca28, #ffffff);
    box-shadow: 0 10px 22px rgba(122, 45, 13, 0.28);
    animation: flameFlicker 3s ease-in-out infinite;
}

@keyframes flameFlicker {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-1px) scale(1.04);
        opacity: 0.86;
    }
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    font-weight: 700;
}

.main-nav a,
.mobile-nav a {
    opacity: 0.88;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    opacity: 1;
    transform: translateY(-1px);
}

.header-search {
    position: relative;
}

.header-search input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 11px 18px;
    outline: none;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.search-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, 90vw);
    max-height: 430px;
    overflow-y: auto;
    color: var(--ink-800);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: none;
    padding: 10px;
}

.search-panel.open {
    display: block;
}

.search-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.search-item:hover {
    background: var(--honey-100);
}

.search-item img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--honey-100);
}

.search-item strong {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}

.search-item span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.search-empty {
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    gap: 14px;
    flex-direction: column;
    font-weight: 700;
}

.mobile-nav.open {
    display: flex;
}

.page-main {
    min-height: 68vh;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: #21140d;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.75s ease, transform 0.95s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.25) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 680px;
    margin: 0 auto;
    padding: 110px 24px 86px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    gap: 48px;
    align-items: center;
}

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

.hero-kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-weight: 800;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

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

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.card-tags span,
.detail-tags span {
    border-radius: 999px;
    background: rgba(255, 240, 209, 0.9);
    color: #7a3e16;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
    box-shadow: 0 14px 30px rgba(255, 107, 53, 0.3);
}

.btn-light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-panel {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-panel h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

.hero-mini-list {
    display: grid;
    gap: 12px;
}

.hero-mini {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.13);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(4px);
}

.hero-mini img {
    width: 68px;
    height: 86px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-mini strong,
.hero-mini span {
    display: block;
}

.hero-mini strong {
    margin-bottom: 6px;
}

.hero-mini span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.active {
    background: #ffffff;
}

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

.section {
    padding: 72px 0;
}

.section-soft {
    background: linear-gradient(90deg, rgba(255, 240, 209, 0.84), rgba(255, 248, 225, 0.74), rgba(255, 224, 178, 0.62));
}

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

.section-title {
    margin: 0 0 8px;
    color: var(--ink-900);
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.section-subtitle {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid rgba(166, 124, 62, 0.12);
    box-shadow: 0 12px 28px rgba(93, 57, 23, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(93, 57, 23, 0.18);
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--honey-100);
}

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

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

.card-rating,
.card-duration {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.card-rating {
    left: 12px;
    background: linear-gradient(135deg, #ffca28, var(--flame-500));
}

.card-duration {
    right: 12px;
    background: rgba(0, 0, 0, 0.62);
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: var(--ink-900);
    font-size: 17px;
    line-height: 1.35;
}

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

.card-body p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.card-tags {
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #8b7568;
    font-size: 12px;
}

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

.category-tile {
    min-height: 180px;
    padding: 26px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(166, 124, 62, 0.96), rgba(255, 107, 53, 0.95));
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -52px;
    bottom: -70px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.category-tile h2,
.category-tile h3,
.category-tile p,
.category-tile span {
    position: relative;
    z-index: 2;
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.category-tile span {
    margin-top: 22px;
    font-weight: 900;
}

.page-hero {
    padding: 84px 0 54px;
    color: #ffffff;
    background: linear-gradient(135deg, #a67c3e, #ff6b35, #ff7043);
}

.page-hero h1 {
    max-width: 920px;
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(93, 57, 23, 0.1);
}

.filter-bar input {
    min-width: min(100%, 360px);
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 16px;
    outline: none;
}

.filter-note {
    color: var(--muted);
    font-size: 14px;
}

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

.media-link {
    display: grid;
    grid-template-columns: auto 72px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(93, 57, 23, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(93, 57, 23, 0.16);
}

.media-link img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--honey-100);
}

.media-link strong,
.media-link em {
    display: block;
}

.media-link strong {
    color: var(--ink-900);
    line-height: 1.4;
}

.media-link em {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

.detail-hero {
    padding: 44px 0 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #6a4c20, #a67c3e 38%, #ff6b35 100%);
}

.detail-head {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 30px;
    align-items: end;
}

.detail-cover {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    background: var(--honey-100);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-title h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
}

.detail-title p {
    margin: 0;
    max-width: 860px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.85;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 800;
}

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

.player-card,
.content-card,
.side-card {
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid rgba(166, 124, 62, 0.12);
    box-shadow: var(--shadow);
}

.player-card {
    padding: 18px;
    margin-bottom: 28px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.62) 100%);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
    box-shadow: 0 18px 40px rgba(255, 107, 53, 0.36);
    font-size: 32px;
}

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

.content-card {
    padding: 28px;
    margin-bottom: 28px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 16px;
    color: var(--ink-900);
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: #514239;
    line-height: 2;
    white-space: pre-line;
}

.side-card {
    padding: 22px;
    position: sticky;
    top: 94px;
}

.side-list {
    display: grid;
    gap: 13px;
}

.side-list .media-link {
    grid-template-columns: 64px 1fr;
    box-shadow: none;
    padding: 8px;
    background: transparent;
}

.side-list .media-link:hover {
    background: var(--honey-100);
    transform: none;
}

.side-list .media-link img {
    width: 64px;
    height: 84px;
}

.site-footer {
    color: #f8ead1;
    background: linear-gradient(135deg, #6a4c20, #3a2417 55%, #1f140f 100%);
}

.footer-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 50px 0 36px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
}

.footer-inner h2 {
    margin: 0 0 14px;
    color: #ffd875;
    font-size: 18px;
}

.footer-inner p {
    max-width: 460px;
    color: rgba(248, 234, 209, 0.78);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer-links a {
    color: rgba(248, 234, 209, 0.78);
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(248, 234, 209, 0.68);
}

@media (max-width: 1120px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

    .hero-panel,
    .side-card {
        position: static;
    }

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

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

@media (max-width: 860px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 14px;
    }

    .header-search {
        grid-column: 1 / -1;
        order: 3;
    }

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

    .hero-content {
        padding-top: 72px;
        gap: 26px;
    }

    .hero-panel {
        display: none;
    }

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

    .category-grid,
    .ranking-list,
    .footer-inner,
    .detail-head {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 240px;
    }

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

@media (max-width: 620px) {
    .header-inner,
    .container,
    .footer-inner,
    .footer-bottom {
        width: calc(100% - 32px);
        padding-left: 0;
        padding-right: 0;
    }

    .site-logo {
        font-size: 20px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

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

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

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

    .section {
        padding: 54px 0;
    }

    .card-body {
        padding: 12px;
    }

    .card-body p {
        display: none;
    }

    .media-link {
        grid-template-columns: auto 62px 1fr;
        gap: 10px;
    }

    .media-link img {
        width: 62px;
        height: 84px;
    }

    .content-card {
        padding: 22px;
    }
}
