*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-strong: #fff3df;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --orange: #f97316;
    --orange-dark: #c2410c;
    --amber: #f59e0b;
    --red: #ef4444;
    --shadow: 0 18px 45px rgba(154, 52, 18, 0.14);
    --radius: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 146, 60, 0.22);
    box-shadow: 0 10px 30px rgba(154, 52, 18, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

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

.brand-text {
    display: grid;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--orange-dark), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: #7c2d12;
    background: #ffedd5;
}

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

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

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

.hero-slider {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(251, 146, 60, 0.44), transparent 28%),
        linear-gradient(90deg, rgba(12, 7, 4, 0.92), rgba(124, 45, 18, 0.74) 48%, rgba(12, 7, 4, 0.48));
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.55fr;
    align-items: center;
    gap: 44px;
    padding: 112px 0 96px;
}

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

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.hero p {
    max-width: 680px;
    margin: 0 0 26px;
    color: #ffedd5;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.34);
    font-weight: 800;
    transition: 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.46);
}

.btn.btn-light {
    color: var(--orange-dark);
    background: #ffffff;
}

.hero-search {
    display: flex;
    max-width: 560px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 0 16px;
}

.hero-search input::placeholder {
    color: rgba(255, 237, 213, 0.82);
}

.hero-search button {
    border: 0;
}

.hero-poster {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

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

.hero-poster-card {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px;
    border-radius: 20px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
}

.hero-poster-card strong {
    display: block;
    font-size: 18px;
}

.hero-poster-card span {
    display: block;
    color: #fed7aa;
    font-size: 13px;
}

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

.hero-control,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-control {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 22px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    transition: 0.25s ease;
}

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

.section {
    padding: 72px 0;
}

.section.compact {
    padding: 48px 0;
}

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

.section-header h1,
.section-header h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-header p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--orange-dark);
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 22px;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: var(--shadow);
    transition: 0.3s ease;
}

.category-tile::before {
    content: "";
    position: absolute;
    right: -32px;
    top: -32px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.category-tile:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 24px 60px rgba(249, 115, 22, 0.24);
}

.category-tile strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
}

.category-tile span {
    position: relative;
    z-index: 1;
    display: block;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.14);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(154, 52, 18, 0.08);
    transition: 0.28s ease;
}

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

.movie-poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #fdba74, #f97316);
}

.movie-poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.movie-badge,
.movie-type,
.rank-flag {
    position: absolute;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.movie-badge {
    right: 10px;
    top: 10px;
}

.movie-type {
    left: 10px;
    bottom: 10px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
}

.rank-flag {
    left: 10px;
    top: 10px;
    min-width: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

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

.movie-card-body.compact {
    padding: 12px;
}

.movie-card-body h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-body h3 a:hover {
    color: var(--orange-dark);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-meta,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
}

.movie-card-meta span,
.rank-meta span,
.detail-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #ffedd5;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag-row span {
    padding: 4px 7px;
    border-radius: 8px;
    color: #7c2d12;
    background: #fff7ed;
    font-size: 12px;
}

.filter-panel {
    display: grid;
    gap: 24px;
}

.filter-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(154, 52, 18, 0.08);
}

.filter-fields label {
    display: grid;
    gap: 8px;
    color: #7c2d12;
    font-weight: 800;
}

.filter-fields input,
.filter-fields select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    outline: 0;
    color: #431407;
    background: #ffffff;
    padding: 0 14px;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 68px 82px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(154, 52, 18, 0.08);
}

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

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    background: #fed7aa;
}

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

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

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

.page-hero {
    padding: 72px 0 48px;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 20%, rgba(251, 146, 60, 0.44), transparent 32%),
        linear-gradient(135deg, #7c2d12, #ea580c 58%, #f59e0b);
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 12px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #ffedd5;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #ffedd5;
    font-size: 14px;
    font-weight: 700;
}

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

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.2));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-core {
    display: grid;
    place-items: center;
    gap: 12px;
    text-align: center;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    color: var(--orange-dark);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
    font-size: 32px;
}

.play-core strong {
    font-size: 22px;
}

.detail-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.detail-content {
    padding: 28px;
    border: 1px solid rgba(251, 146, 60, 0.15);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 42px rgba(154, 52, 18, 0.08);
}

.detail-content h2 {
    margin: 0 0 14px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.detail-content p {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 16px;
}

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

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

.index-list a {
    overflow: hidden;
    padding: 12px 14px;
    border-radius: 14px;
    color: #7c2d12;
    background: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-shadow: 0 8px 20px rgba(154, 52, 18, 0.08);
}

.index-list a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 55%, #0f172a);
    padding: 54px 0 28px;
}

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

.footer-brand {
    display: flex;
    gap: 14px;
}

.footer-brand strong {
    display: block;
    color: #ffffff;
    font-size: 24px;
}

.footer-brand p {
    margin: 8px 0 0;
    color: #9ca3af;
}

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

.footer-links {
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .movie-grid,
    .filter-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .hero-poster {
        max-width: 320px;
        transform: none;
    }
}

@media (max-width: 760px) {
    .site-container {
        width: min(100% - 24px, 1180px);
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

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

    .hero,
    .hero-slider {
        min-height: 760px;
    }

    .hero-inner {
        padding: 78px 0 116px;
    }

    .hero-actions,
    .hero-search {
        width: 100%;
    }

    .hero-search {
        border-radius: 22px;
        flex-direction: column;
        gap: 8px;
    }

    .hero-search input {
        min-height: 44px;
    }

    .section-header {
        display: grid;
    }

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

    .category-grid,
    .footer-grid,
    .filter-fields,
    .index-list {
        grid-template-columns: 1fr;
    }

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

    .rank-row .text-link {
        grid-column: 2 / -1;
    }

    .footer-bottom {
        display: grid;
    }
}
