:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --amber: #f59e0b;
    --amber-soft: #fef3c7;
    --paper: #fffaf0;
    --white: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --shadow: 0 18px 45px rgba(234, 88, 12, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 44%, #ffffff 100%);
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(251, 146, 60, 0.2);
    box-shadow: 0 8px 26px rgba(234, 88, 12, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.24);
}

.brand-text {
    display: grid;
    gap: 0;
}

.brand-text strong,
.footer-brand span:last-child {
    font-size: 24px;
    line-height: 1.1;
    color: transparent;
    background: linear-gradient(90deg, #b45309, var(--orange-dark), #d97706);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

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

.nav-link {
    position: relative;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--orange-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.mobile-menu-button {
    display: none;
    border: 0;
    border-radius: 12px;
    color: #374151;
    background: #ffedd5;
    padding: 10px 14px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--orange-dark);
    background: #ffedd5;
}

.hero-section {
    padding: 48px 0 32px;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 54px;
    min-height: 500px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.5s ease both;
}

.hero-copy {
    display: grid;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--orange-dark);
    background: linear-gradient(90deg, #ffedd5, #fef3c7);
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.hero-copy h1 span {
    color: transparent;
    background: linear-gradient(90deg, #b45309, var(--orange), #d97706);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-copy p,
.page-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-movie-meta {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.08);
}

.hero-movie-meta strong {
    font-size: 21px;
}

.hero-movie-meta span {
    color: var(--muted);
}

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

.primary-button,
.secondary-button,
.small-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    min-height: 50px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--amber));
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.24);
}

.secondary-button {
    min-height: 50px;
    padding: 0 24px;
    color: #374151;
    border: 2px solid #fed7aa;
    background: #ffffff;
}

.primary-button:hover,
.secondary-button:hover,
.small-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-poster {
    position: relative;
    min-height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(154, 52, 18, 0.24);
    background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.78));
}

.hero-glow {
    position: absolute;
    inset: -18px;
    z-index: -1;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.4), rgba(245, 158, 11, 0.35));
    filter: blur(32px);
}

.hero-poster-info {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    z-index: 2;
    display: grid;
    gap: 8px;
    color: #ffffff;
}

.hero-poster-info em {
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.88);
    font-size: 13px;
    font-style: normal;
}

.hero-poster-info strong {
    font-size: 30px;
    line-height: 1.25;
}

.hero-controls {
    position: absolute;
    left: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-size: 24px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: #fdba74;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--orange-dark);
}

.content-section {
    padding: 64px 0;
}

.soft-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 237, 0.92), rgba(254, 243, 199, 0.72));
}

.ranking-panel {
    background: linear-gradient(90deg, #ffedd5, #fef3c7, #ffedd5);
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.18;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

.section-more,
.small-link {
    color: var(--orange-dark);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(154, 52, 18, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.poster-link img,
.detail-poster img,
.category-cover img,
.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-link img {
    transition: transform 0.55s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.72));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.9);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 34px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-weight: 900;
    text-align: center;
}

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

.movie-meta {
    margin: 0 0 8px;
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 800;
}

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

.compact-card h3 {
    font-size: 16px;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.category-overview-card h2 a:hover {
    color: var(--orange-dark);
}

.movie-one-line {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    padding: 4px 9px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--shadow);
    background: #f59e0b;
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.76));
}

.category-tile span,
.category-tile em {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 2;
}

.category-tile span {
    bottom: 52px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile em {
    bottom: 18px;
    font-size: 13px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.86);
}

.category-tile:hover img {
    transform: scale(1.07);
}

.rank-list {
    display: grid;
    gap: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: auto 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(154, 52, 18, 0.08);
}

.rank-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-weight: 900;
}

.rank-thumb {
    height: 120px;
    overflow: hidden;
    border-radius: 16px;
    background: #fed7aa;
}

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

.rank-content p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 800;
}

.page-hero,
.detail-header {
    padding: 64px 0;
    background: radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.28), transparent 32%), linear-gradient(135deg, #fff7ed, #fffbeb 58%, #ffffff);
}

.page-hero h1,
.detail-info h1 {
    max-width: 920px;
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.category-overview-grid {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-cover {
    height: 170px;
    overflow: hidden;
    border-radius: 18px;
    background: #fed7aa;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.category-samples span,
.related-category-links a {
    padding: 6px 11px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(154, 52, 18, 0.08);
}

.filter-panel input {
    width: 100%;
    height: 52px;
    border: 2px solid #fed7aa;
    border-radius: 16px;
    padding: 0 18px;
    outline: none;
    color: #374151;
    background: #fffaf0;
}

.filter-panel input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.filter-chips button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 800;
    cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

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

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

.related-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--orange-dark);
    font-weight: 800;
}

.detail-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4.2;
    background: #fed7aa;
    box-shadow: var(--shadow);
}

.detail-one-line {
    max-width: 760px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 800;
}

.large-tags {
    margin-bottom: 26px;
}

.player-section {
    padding-top: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.24);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    text-align: center;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.28), rgba(0, 0, 0, 0.72));
}

.player-shell.is-playing .player-overlay {
    display: none;
}

.play-button {
    width: 82px;
    height: 82px;
    margin: 0 auto;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 20px 38px rgba(249, 115, 22, 0.32);
    font-size: 34px;
    cursor: pointer;
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay span {
    color: rgba(255, 255, 255, 0.82);
}

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

.detail-article,
.detail-side-card {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 16px;
    font-size: 25px;
}

.detail-article p {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 17px;
}

.detail-side-card dl {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    margin: 0;
}

.detail-side-card dt {
    color: var(--orange-dark);
    font-weight: 900;
}

.detail-side-card dd {
    margin: 0;
    color: #4b5563;
}

.site-footer {
    padding-top: 56px;
    border-top: 1px solid rgba(251, 146, 60, 0.22);
    background: linear-gradient(180deg, #fff7ed, #fffbeb);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 32px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.site-footer p {
    margin: 14px 0 0;
    color: var(--muted);
}

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

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

.footer-links a:hover {
    color: var(--orange-dark);
}

.footer-bottom {
    margin-top: 40px;
    padding: 22px 16px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(251, 146, 60, 0.2);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

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

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

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

    .hero-controls {
        position: static;
        margin-top: 18px;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero-section,
    .page-hero,
    .detail-header,
    .content-section {
        padding: 38px 0;
    }

    .hero-carousel {
        min-height: 0;
    }

    .hero-slide {
        gap: 28px;
        min-height: 0;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 360px;
    }

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

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

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

    .rank-item .small-link {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }

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

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

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

    .brand-text strong {
        font-size: 20px;
    }

    .movie-grid,
    .dense-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        letter-spacing: -0.5px;
    }

    .rank-item {
        grid-template-columns: 40px 76px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-thumb {
        height: 96px;
    }

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