:root {
    --bg: #fff7ed;
    --panel: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --amber: #f59e0b;
    --orange: #ea580c;
    --deep: #9a3412;
    --soft: #fffbeb;
    --shadow: 0 24px 70px rgba(154, 52, 18, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fff 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 10px 30px rgba(194, 65, 12, 0.22);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
    margin-left: auto;
}

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

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

.header-search {
    position: relative;
    width: 240px;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 11px 42px 11px 18px;
    background: rgba(255, 255, 255, 0.92);
    color: #374151;
}

.header-search button {
    position: absolute;
    right: 7px;
    top: 6px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    padding: 10px 12px;
    font-size: 20px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    color: #fff;
}

.mobile-nav a {
    display: block;
    padding: 11px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

.page-main {
    min-height: calc(100vh - 72px);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.5), transparent 34%),
        radial-gradient(circle at 80% 0%, rgba(234, 88, 12, 0.34), transparent 32%),
        linear-gradient(135deg, #fffbeb 0%, #fed7aa 54%, #fdba74 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 247, 237, 0.92) 42%, rgba(255, 237, 213, 0.54) 100%);
}

.hero-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    padding: 56px 0;
}

.hero-slide {
    display: none;
    animation: fadeIn 0.45s ease both;
}

.hero-slide.active {
    display: block;
}

.hero-kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--deep);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 30px rgba(154, 52, 18, 0.1);
    font-weight: 800;
}

.hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.06;
    letter-spacing: -2px;
    color: #111827;
}

.hero-intro {
    max-width: 670px;
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #92400e;
    font-weight: 700;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.25);
}

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
}

.btn-secondary {
    color: #9a3412;
    background: #fff;
    box-shadow: 0 14px 28px rgba(154, 52, 18, 0.12);
}

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

.hero-visual {
    position: relative;
    min-height: 460px;
}

.hero-poster {
    position: absolute;
    right: 0;
    top: 20px;
    width: min(420px, 80vw);
    height: 520px;
    border-radius: 34px;
    object-fit: cover;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    background: linear-gradient(135deg, #fde68a, #fdba74);
}

.hero-card {
    position: absolute;
    left: 0;
    bottom: 42px;
    width: min(360px, 86vw);
    border-radius: 28px;
    padding: 20px;
    color: #fff;
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.94), rgba(234, 88, 12, 0.9));
    box-shadow: 0 24px 56px rgba(154, 52, 18, 0.24);
    backdrop-filter: blur(12px);
}

.hero-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.hero-card p {
    margin: 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(154, 52, 18, 0.24);
    cursor: pointer;
}

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

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.section-wide {
    padding: 64px 0;
    background: linear-gradient(90deg, #fffbeb 0%, #fed7aa 100%);
}

.section-wide .section {
    padding: 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    color: #1f2937;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--panel);
    box-shadow: 0 16px 38px rgba(154, 52, 18, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 56px rgba(154, 52, 18, 0.18);
}

.card-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fde68a, #fdba74);
    overflow: hidden;
}

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.card-score {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.94);
    color: #fff;
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-title a:hover {
    color: #ea580c;
}

.card-text {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

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

.mini-tag {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
}

.category-card {
    display: block;
    min-height: 180px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff 0%, #ffedd5 100%);
    border: 1px solid rgba(251, 191, 36, 0.34);
    box-shadow: 0 16px 38px rgba(154, 52, 18, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 56px rgba(154, 52, 18, 0.16);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 18px;
}

.rank-panel {
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 26px;
}

.rank-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px 84px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fffaf2;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #ffedd5;
    transform: translateX(4px);
}

.rank-num {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #f59e0b;
    color: #fff;
    font-weight: 900;
}

.rank-thumb {
    width: 84px;
    height: 84px;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, #fde68a, #fdba74);
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.rank-score {
    font-weight: 900;
    color: #ea580c;
    white-space: nowrap;
}

.page-hero {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
    padding: 72px 0;
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    margin: 0 0 14px;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(154, 52, 18, 0.1);
    margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid #fed7aa;
    outline: 0;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fffaf2;
    color: #374151;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #9a3412;
    margin-bottom: 24px;
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-card,
.side-card {
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.player-card {
    overflow: hidden;
}

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

.video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #111827;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.78));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(234, 88, 12, 0.36);
}

.detail-card {
    padding: 28px;
    margin-top: 24px;
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
}

.detail-summary {
    color: #4b5563;
    line-height: 1.9;
    font-size: 17px;
}

.info-table {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #ffedd5;
}

.info-row span:first-child {
    color: var(--muted);
}

.info-row span:last-child {
    text-align: right;
    font-weight: 800;
}

.side-card {
    padding: 20px;
}

.side-cover {
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #fde68a, #fdba74);
    margin-bottom: 18px;
}

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

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

.empty-state {
    padding: 40px;
    border-radius: 24px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.site-footer {
    margin-top: 64px;
    background: #1f2937;
    color: #d1d5db;
    padding: 44px 0 24px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.footer-title {
    color: #fff;
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 900;
}

.footer-shell p,
.footer-shell li {
    line-height: 1.8;
    color: #9ca3af;
}

.footer-shell ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-bottom {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    color: #9ca3af;
    font-size: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .mobile-toggle {
        display: block;
    }

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

    .hero-shell {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-visual {
        min-height: 360px;
    }

    .hero-poster {
        position: relative;
        width: 78%;
        height: 420px;
        top: 0;
        margin-left: auto;
    }

    .hero-card {
        left: 0;
        bottom: 0;
    }

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

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

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

@media (max-width: 620px) {
    .nav-shell {
        min-height: 64px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .hero {
        min-height: auto;
    }

    .hero-shell {
        min-height: auto;
        padding: 42px 0 70px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-poster {
        width: 100%;
        height: 360px;
    }

    .hero-card {
        position: relative;
        width: 100%;
        margin-top: -48px;
    }

    .section,
    .section-wide {
        padding: 42px 0;
    }

    .section-head {
        display: block;
    }

    .grid-4,
    .grid-3,
    .related-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-thumb {
        width: 64px;
        height: 64px;
    }

    .rank-score {
        display: none;
    }

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