:root {
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --red: #dc2626;
    --yellow: #f59e0b;
    --dark: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --bg: #f6f7fb;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --soft-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--orange), var(--red));
    color: #fff;
    box-shadow: 0 12px 30px rgba(194, 65, 12, 0.28);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--orange);
    background: rgba(255, 255, 255, 0.95);
    font-size: 17px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 21px;
    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.86);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
}

.main-nav > a,
.nav-dropdown > button {
    color: #fff;
    opacity: 0.95;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    padding: 9px 0;
}

.main-nav > a:hover,
.nav-dropdown > button:hover {
    opacity: 1;
    color: #ffedd5;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: -20px;
    width: 210px;
    padding: 10px;
    display: grid;
    gap: 4px;
    border-radius: 14px;
    background: #fff;
    color: #374151;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 9px 12px;
    border-radius: 10px;
    color: #374151;
}

.dropdown-panel a:hover {
    color: var(--orange);
    background: #fff7ed;
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    width: min(330px, 31vw);
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 9px 12px;
    font-size: 14px;
}

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

.header-search button {
    border: 0;
    border-radius: 999px;
    padding: 8px 15px;
    color: var(--orange-dark);
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    width: 42px;
    height: 42px;
    font-size: 22px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel a,
.mobile-panel form {
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    min-width: 0;
    flex: 1;
    border: 0;
    border-radius: 10px;
    padding: 10px;
}

.mobile-panel button {
    border: 0;
    border-radius: 10px;
    padding: 0 14px;
    color: var(--orange-dark);
    background: #fff;
    font-weight: 800;
}

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

.hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(110deg, #111827 0%, #1f2937 45%, #7f1d1d 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 0.8s ease;
    background-position: center;
    background-size: cover;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 44%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 540px;
    display: flex;
    align-items: center;
    padding: 58px 0;
}

.hero-text {
    width: min(680px, 100%);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 13px;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.hero h1 {
    margin: 18px 0 8px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(26px, 4vw, 48px);
    line-height: 1.12;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.28);
}

.btn-light {
    color: #111827;
    background: #fff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(17, 24, 39, 0.2);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

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

.hero-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #fff;
}

.section {
    padding: 54px 0;
}

.section-soft {
    margin: 42px 0;
    padding: 36px;
    border-radius: 26px;
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

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

.section-head h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.detail-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

.view-more {
    color: var(--orange-dark);
    font-weight: 900;
}

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

.category-tile {
    min-height: 132px;
    border-radius: 20px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: var(--soft-shadow);
    transition: 0.22s ease;
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #059669, #0ea5e9);
}

.category-tile:nth-child(4n) {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.category-tile span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
}

.category-tile:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow);
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    min-height: 280px;
    background-color: #1f2937;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.movie-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent);
}

.movie-year,
.movie-rating {
    position: absolute;
    z-index: 2;
    top: 14px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
}

.movie-year {
    left: 14px;
}

.movie-rating {
    right: 14px;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.movie-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 17px;
}

.movie-info strong {
    font-size: 18px;
    line-height: 1.3;
}

.movie-meta,
.movie-line {
    color: var(--muted);
    font-size: 13px;
}

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

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.movie-card-compact {
    flex-direction: row;
    min-height: 168px;
}

.movie-card-compact .movie-cover {
    flex: 0 0 132px;
    min-height: 100%;
}

.movie-card-compact .movie-info strong {
    font-size: 16px;
}

.movie-card-featured .movie-cover {
    min-height: 350px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    padding: 15px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    transition: 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.rank-num {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: #9ca3af;
    font-weight: 900;
}

.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-title strong {
    display: block;
    line-height: 1.35;
}

.rank-title span,
.rank-score {
    color: var(--muted);
    font-size: 13px;
}

.rank-score {
    font-weight: 900;
    color: var(--orange-dark);
}

.page-hero {
    margin: 38px auto 18px;
    border-radius: 28px;
    padding: 42px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: var(--shadow);
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 22px 0 26px;
}

.filter-bar button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff;
    color: #374151;
    font-weight: 800;
    cursor: pointer;
}

.filter-bar button.is-active {
    color: #fff;
    border-color: var(--orange);
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.search-panel {
    margin: 34px auto;
    border-radius: 28px;
    padding: 32px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.search-panel form {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.search-panel input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 16px;
}

.search-panel button {
    border: 0;
    border-radius: 16px;
    padding: 0 22px;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    font-weight: 900;
    cursor: pointer;
}

.search-summary {
    margin: 18px 0 0;
    color: var(--muted);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
    gap: 28px;
    padding: 38px 0 54px;
}

.detail-main,
.detail-side,
.detail-box {
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    overflow: hidden;
}

.movie-player {
    position: relative;
    min-height: 420px;
    background: #020617;
}

.movie-player video {
    display: block;
    width: 100%;
    min-height: 420px;
    background: #020617;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background-position: center;
    background-size: cover;
    cursor: pointer;
}

.player-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

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

.play-card {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 14px;
    color: #fff;
    text-align: center;
}

.play-button {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-size: 32px;
    box-shadow: 0 24px 60px rgba(220, 38, 38, 0.36);
    cursor: pointer;
}

.play-card strong {
    font-size: 24px;
}

.player-message {
    min-height: 26px;
    color: #fed7aa;
    font-weight: 700;
}

.detail-content {
    padding: 28px;
}

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

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

.detail-title h1 {
    margin-bottom: 10px;
}

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

.fact {
    border-radius: 16px;
    padding: 14px;
    background: #fff7ed;
}

.fact span {
    display: block;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
}

.fact strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
}

.article-section {
    padding-top: 20px;
    border-top: 1px solid var(--line);
    margin-top: 24px;
}

.article-section h2,
.detail-side h2,
.detail-box h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.article-section p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.side-cover {
    min-height: 430px;
    background-position: center;
    background-size: cover;
}

.side-panel {
    padding: 22px;
}

.side-stats {
    display: grid;
    gap: 10px;
}

.side-stats div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 9px;
}

.side-stats span {
    color: var(--muted);
}

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

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
}

.prev-next a {
    flex: 1;
    border-radius: 16px;
    padding: 16px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 900;
}

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

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 38px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.footer-brand span {
    color: var(--orange);
}

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

.footer-inner p {
    margin: 0;
    color: #9ca3af;
}

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

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

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

@media (max-width: 1050px) {
    .header-search {
        display: none;
    }

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

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

    .movie-grid-compact,
    .rank-list,
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner {
        width: min(100% - 24px, 1240px);
        gap: 12px;
    }

    .main-nav {
        display: none;
    }

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

    .brand-text small {
        display: none;
    }

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

    .section {
        padding: 36px 0;
    }

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

    .section-soft,
    .page-hero,
    .search-panel {
        padding: 24px;
        border-radius: 22px;
    }

    .category-grid,
    .movie-grid,
    .movie-grid-featured,
    .movie-grid-compact,
    .related-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .movie-card-compact {
        flex-direction: column;
    }

    .movie-card-compact .movie-cover {
        min-height: 250px;
    }

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

    .movie-player,
    .movie-player video {
        min-height: 280px;
    }

    .side-cover {
        min-height: 330px;
    }

    .search-panel form,
    .prev-next {
        flex-direction: column;
    }
}
