:root {
    --bg: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --brand: #f59e0b;
    --brand-deep: #ea580c;
    --brand-soft: #ffedd5;
    --line: rgba(148, 87, 13, 0.16);
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(120, 53, 15, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #ffffff 100%);
    color: var(--text);
    line-height: 1.65;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, #f59e0b, #f97316, #d97706);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.22);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
}

.brand-mark,
.footer-logo span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ffffff;
    color: var(--brand-deep);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-panel a {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
    color: #ffffff;
    transform: translateY(-1px);
}

.site-search {
    display: flex;
    align-items: center;
    min-width: 290px;
    border-radius: 999px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.site-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: transparent;
    color: #374151;
}

.site-search button,
.button,
.hero-button,
.player-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 14px 26px rgba(234, 88, 12, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-search button:hover,
.button:hover,
.hero-button:hover,
.player-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px rgba(234, 88, 12, 0.32);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-radius: 14px;
    padding: 10px 13px;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: radial-gradient(circle at 15% 15%, rgba(254, 215, 170, 0.45), transparent 28%), linear-gradient(135deg, #9a3412 0%, #ea580c 44%, #f59e0b 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.45;
}

.hero::before {
    width: 340px;
    height: 340px;
    right: -80px;
    top: 56px;
    background: rgba(255, 255, 255, 0.22);
}

.hero::after {
    width: 220px;
    height: 220px;
    left: 8%;
    bottom: -60px;
    background: rgba(253, 186, 116, 0.38);
}

.hero-track {
    position: relative;
    z-index: 2;
}

.hero-slide {
    display: none;
    min-height: 620px;
    align-items: center;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.78fr);
    gap: 46px;
    padding: 76px 0;
}

.hero-slide.is-active {
    display: grid;
}

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

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

.hero h1,
.hero h2 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -1px;
}

.hero p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

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

.hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-media {
    position: relative;
}

.hero-card {
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 70px rgba(124, 45, 18, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.24);
    transform: rotate(2deg);
}

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

.hero-card-caption {
    padding: 18px;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(14px);
}

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

.hero-card-caption span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

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

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

.section {
    padding: 70px 0;
}

.section.alt {
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.8), rgba(254, 243, 199, 0.88));
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-desc {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 760px;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 60px rgba(120, 53, 15, 0.18);
}

.category-card strong {
    font-size: 22px;
}

.category-card p {
    margin: 10px 0 16px;
    color: var(--muted);
}

.category-card span {
    color: var(--brand-deep);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 62px rgba(120, 53, 15, 0.2);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #f97316);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.movie-score {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 900;
    color: #78350f;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.movie-card-body {
    padding: 18px;
}

.movie-meta,
.movie-line {
    margin: 0;
    color: var(--muted);
}

.movie-card h3 {
    margin: 7px 0 10px;
    font-size: 20px;
    line-height: 1.28;
}

.movie-card h3 a:hover {
    color: var(--brand-deep);
}

.movie-line {
    display: -webkit-box;
    min-height: 54px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.movie-tags span,
.detail-tags span {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 700;
    font-size: 13px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(120, 53, 15, 0.11);
}

.rank-item img {
    width: 72px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #fed7aa, #f97316);
}

.rank-copy strong,
.rank-copy em {
    display: block;
}

.rank-copy em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.rank-views {
    color: #b45309;
    font-size: 20px;
    font-weight: 900;
}

.page-hero {
    padding: 78px 0;
    color: #ffffff;
    background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.25), transparent 26%), linear-gradient(135deg, #f59e0b, #ea580c);
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.1;
}

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

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

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 26px 64px rgba(17, 24, 39, 0.28);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.38), rgba(146, 64, 14, 0.36));
    z-index: 2;
}

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

.player-button {
    min-width: 150px;
    min-height: 56px;
    font-size: 18px;
}

.detail-panel,
.side-panel,
.text-panel {
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.detail-panel,
.text-panel {
    padding: 28px;
}

.detail-panel h2,
.text-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-panel p,
.text-panel p {
    margin: 0 0 18px;
    color: #4b5563;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}

.side-panel {
    padding: 20px;
    align-self: start;
    position: sticky;
    top: 94px;
}

.side-poster {
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fed7aa, #f97316);
}

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

.info-list {
    display: grid;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

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

.content-stack {
    display: grid;
    gap: 24px;
}

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

.empty-state {
    display: none;
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--muted);
    border: 1px solid var(--line);
}

.empty-state.is-visible {
    display: block;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 58%, #111827);
}

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

.footer-grid h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.footer-grid p {
    color: #9ca3af;
}

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

.footer-grid a:hover {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
    text-align: center;
    color: #9ca3af;
}

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

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

    .site-search {
        min-width: 0;
        width: 100%;
    }

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

    .hero-media {
        max-width: 440px;
    }

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

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

    .side-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .hero,
    .hero-slide {
        min-height: auto;
    }

    .hero-slide {
        padding: 48px 0 86px;
    }

    .section,
    .page-hero {
        padding: 48px 0;
    }

    .section-head {
        display: block;
    }

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

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

    .rank-views {
        grid-column: 2;
    }

    .detail-panel,
    .text-panel {
        padding: 22px;
    }
}
