:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.76);
    --panel-solid: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.82);
    --line: rgba(127, 29, 29, 0.34);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --amber: #f59e0b;
    --amber-light: #fde68a;
    --red: #dc2626;
    --red-dark: #7f1d1d;
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 0%, rgba(245, 158, 11, 0.18), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(220, 38, 38, 0.22), transparent 32%),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(127, 29, 29, 0.28));
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(2, 6, 23, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amber-light);
    font-weight: 900;
    letter-spacing: 0.06em;
    font-size: clamp(20px, 3vw, 26px);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    background: linear-gradient(135deg, var(--amber), var(--red));
    box-shadow: 0 0 34px rgba(245, 158, 11, 0.45);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #e5e7eb;
    font-weight: 700;
}

.main-nav > a,
.nav-menu > button {
    position: relative;
    padding: 8px 0;
    color: #e5e7eb;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-menu > button:hover {
    color: var(--amber-light);
}

.main-nav > a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber), var(--red));
}

.nav-menu {
    position: relative;
}

.nav-menu-panel {
    position: absolute;
    top: 38px;
    right: 0;
    min-width: 170px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: 0.2s ease;
}

.nav-menu:hover .nav-menu-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-menu-link {
    display: block;
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--muted-strong);
}

.nav-menu-link:hover {
    color: white;
    background: rgba(245, 158, 11, 0.12);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--amber-light);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 18px;
    border-top: 1px solid rgba(127, 29, 29, 0.28);
}

.mobile-nav a {
    display: block;
    padding: 11px 0;
    color: #e5e7eb;
}

.page-shell,
.home-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 20px 76px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: grid;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: #020617;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.18) 100%),
        radial-gradient(circle at 16% 20%, rgba(245, 158, 11, 0.25), transparent 35%),
        radial-gradient(circle at 80% 75%, rgba(220, 38, 38, 0.24), transparent 40%);
    z-index: 2;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-slide img {
    object-position: center;
    filter: saturate(1.08) contrast(1.05);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 108px 20px 78px;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.7fr);
    gap: 34px;
    align-items: end;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(245, 158, 11, 0.42);
    border-radius: 999px;
    color: var(--amber-light);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 0 38px rgba(245, 158, 11, 0.2);
}

.hero h1 {
    margin: 22px 0 16px;
    max-width: 820px;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.gradient-text {
    background: linear-gradient(90deg, #fef3c7, #fca5a5, #fef3c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy {
    max-width: 710px;
    color: #d1d5db;
    font-size: clamp(16px, 2vw, 20px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    border: 1px solid rgba(245, 158, 11, 0.36);
    transition: 0.2s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--red));
    box-shadow: 0 16px 42px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    color: var(--amber-light);
    background: rgba(15, 23, 42, 0.78);
}

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

.hero-search {
    margin-top: 28px;
    display: flex;
    max-width: 620px;
    padding: 7px;
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28);
}

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

.hero-search button {
    border: 0;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--red));
    border-radius: 999px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 900;
}

.hero-feature {
    padding: 20px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.hero-feature-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-feature h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.hero-feature p {
    margin: 0;
    color: #d1d5db;
}

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

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

.hero-dots button.active {
    width: 34px;
    background: var(--amber);
}

.section {
    margin-top: 58px;
}

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

.section-head > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-head span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--red));
}

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 34px);
}

.section-head a {
    color: var(--amber-light);
    font-weight: 800;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    transition: 0.22s ease;
}

.movie-card:hover,
.wide-card:hover,
.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.86);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.86));
}

.score,
.rank-badge,
.wide-rank {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--red));
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.28);
}

.score {
    right: 12px;
    bottom: 12px;
    min-width: 48px;
    height: 32px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 38px;
    height: 38px;
}

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

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.movie-tags span {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--amber-light);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.16);
    font-size: 12px;
}

.movie-card h3,
.wide-info h3 {
    margin: 0 0 9px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.wide-info h3 a:hover {
    color: var(--amber-light);
}

.movie-card p,
.wide-info p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 14px;
}

.movie-meta,
.wide-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

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

.category-tile {
    min-height: 138px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.22), transparent 38%),
        rgba(15, 23, 42, 0.74);
    transition: 0.22s ease;
}

.category-tile strong {
    font-size: 21px;
}

.category-tile span {
    color: var(--muted-strong);
    font-size: 14px;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 178px 1fr;
    gap: 18px;
    min-height: 238px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    transition: 0.22s ease;
}

.wide-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.92);
}

.wide-rank {
    top: 10px;
    left: 10px;
    min-width: 36px;
    height: 36px;
}

.wide-info {
    padding: 8px 4px;
}

.wide-info h3 {
    font-size: 24px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 52px;
    margin-bottom: 38px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.24), transparent 38%),
        radial-gradient(circle at 90% 25%, rgba(220, 38, 38, 0.2), transparent 36%),
        rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 58px);
    letter-spacing: -0.04em;
}

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

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

.breadcrumb a {
    color: var(--amber-light);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 360px;
    gap: 28px;
    align-items: start;
}

.player-panel,
.detail-panel,
.side-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
}

.player-panel {
    overflow: hidden;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.78)),
        rgba(2, 6, 23, 0.18);
}

.play-circle {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-size: 30px;
    background: linear-gradient(135deg, var(--amber), var(--red));
    box-shadow: 0 18px 54px rgba(220, 38, 38, 0.38);
}

.play-layer strong {
    font-size: 20px;
}

.detail-panel {
    margin-top: 22px;
    padding: 28px;
}

.detail-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.05;
}

.detail-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-panel p {
    color: var(--muted-strong);
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.info-list div {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.72);
    color: var(--muted-strong);
}

.info-list strong {
    color: var(--amber-light);
    margin-right: 6px;
}

.side-panel {
    padding: 18px;
}

.side-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    margin-bottom: 18px;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-item {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 10px;
    align-items: center;
}

.side-item img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
}

.side-item strong {
    display: block;
    margin-bottom: 4px;
    line-height: 1.35;
}

.side-item span {
    color: var(--muted);
    font-size: 13px;
}

.search-panel {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
}

.search-panel input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
    padding: 0 18px;
}

.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    color: white;
    cursor: pointer;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--red));
}

.no-result {
    display: none;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.74);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(2, 6, 23, 0.98));
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 20px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--amber-light);
}

.footer-grid p,
.footer-grid a {
    color: var(--muted-strong);
    font-size: 14px;
}

.footer-grid a {
    display: block;
    margin-bottom: 8px;
}

.footer-grid a:hover {
    color: var(--amber-light);
}

.footer-brand {
    margin-bottom: 14px;
}

@media (max-width: 1024px) {
    .hero-content,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

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

    .mobile-toggle {
        display: block;
    }

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

    .hero {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 88px;
    }

    .hero-search,
    .search-panel {
        border-radius: 22px;
        flex-direction: column;
    }

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

    .page-hero {
        padding: 32px 24px;
        border-radius: 26px;
    }

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

    .category-grid,
    .footer-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-template-columns: 110px 1fr;
        min-height: 168px;
    }

    .wide-info h3 {
        font-size: 18px;
    }

    .wide-info p,
    .movie-card p {
        display: none;
    }
}

@media (max-width: 460px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 42px;
    }
}
