:root {
    --red-950: #450a0a;
    --red-900: #7f1d1d;
    --red-800: #991b1b;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --red-100: #fee2e2;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-100: #fef3c7;
    --amber-50: #fffbeb;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-soft: 0 20px 50px rgba(69, 10, 10, 0.14);
    --shadow-card: 0 16px 36px rgba(17, 24, 39, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--amber-50) 0%, #fff7ed 18%, #ffffff 42%, #fff 100%);
    min-height: 100vh;
}

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

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

.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(254, 242, 242, 0.96), rgba(255, 251, 235, 0.96));
    backdrop-filter: blur(16px);
    border-bottom: 4px solid var(--red-900);
    box-shadow: 0 12px 30px rgba(127, 29, 29, 0.12);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red-700), var(--amber-700));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.28);
}

.brand-icon.small {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.brand-text strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--red-900), var(--amber-800));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    color: var(--gray-600);
    margin-top: 4px;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.desktop-nav a,
.mobile-panel a {
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    background: var(--red-100);
    color: var(--red-900);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    border: 0;
    background: var(--red-100);
    color: var(--red-900);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 22px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid rgba(153, 27, 27, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

.mobile-panel.open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: var(--white);
    background: var(--red-950);
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255, 255, 255, 0.035) 50px, rgba(255, 255, 255, 0.035) 51px);
    pointer-events: none;
}

.hero-slide {
    display: none;
    min-height: 620px;
    position: relative;
    isolation: isolate;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: saturate(1.05) contrast(1.05);
    z-index: -2;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.38), transparent 30%),
        linear-gradient(90deg, rgba(69, 10, 10, 0.94) 0%, rgba(127, 29, 29, 0.78) 48%, rgba(17, 24, 39, 0.48) 100%);
    z-index: -1;
}

.hero-content {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 2;
    padding: 72px 0;
}

.hero-copy h1 {
    margin: 16px 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #fee2e2;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.7;
}

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(254, 226, 226, 0.14);
    color: #fde68a;
    font-weight: 800;
    border: 1px solid rgba(253, 230, 138, 0.22);
}

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

.hero-tags span,
.tag-row span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    font-size: 12px;
    font-weight: 700;
}

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

.hero-actions a,
.detail-actions a,
.search-box button {
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    cursor: pointer;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red-600), var(--amber-600));
    color: var(--white);
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.28);
}

.hero-actions a.secondary,
.detail-actions a.secondary {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-poster {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    padding: 14px;
    box-shadow: var(--shadow-soft);
    transform: rotate(2deg);
}

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

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

.hero-dots button {
    width: 38px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #fbbf24;
}

.section {
    padding: 64px 0;
}

.section.alt {
    background: linear-gradient(90deg, rgba(254, 226, 226, 0.55), rgba(254, 243, 199, 0.55));
}

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

.section-head h2,
.page-title h1 {
    margin: 8px 0 0;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
}

.section-head p,
.page-title p {
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 720px;
    margin: 10px 0 0;
}

.section-line {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red-600), transparent);
}

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

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

.movie-card {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 22px 48px rgba(127, 29, 29, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    background: linear-gradient(135deg, var(--red-900), var(--amber-700));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(185, 28, 28, 0.92);
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
}

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

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

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

.movie-meta {
    margin: 0 0 10px;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-desc {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 66px;
}

.tag-row span {
    background: #fff7ed;
    color: var(--red-800);
    border: 1px solid rgba(185, 28, 28, 0.1);
}

.card-actions a {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 900;
    background: var(--red-100);
    color: var(--red-900);
}

.card-actions a:last-child {
    background: linear-gradient(135deg, var(--red-600), var(--amber-600));
    color: var(--white);
}

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

.category-grid a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 92px;
    padding: 20px;
    border-radius: 20px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-900), var(--amber-700));
    box-shadow: var(--shadow-card);
    font-weight: 900;
}

.category-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 86px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-card);
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.3);
}

.rank-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red-700);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.rank-item img {
    width: 86px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

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

.rank-copy strong {
    font-size: 18px;
    margin-bottom: 8px;
}

.rank-copy small {
    color: var(--gray-500);
    line-height: 1.5;
}

.page-hero {
    padding: 62px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 15% 10%, rgba(251, 191, 36, 0.36), transparent 28%),
        linear-gradient(135deg, var(--red-950), var(--red-800) 60%, var(--amber-700));
}

.page-title h1,
.page-title p {
    color: inherit;
}

.page-title p {
    color: #fee2e2;
}

.filter-bar,
.search-box {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 26px;
}

.filter-bar span,
.filter-bar a {
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-weight: 800;
    font-size: 13px;
}

.search-box input {
    flex: 1;
    min-width: 240px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 13px 16px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: var(--red-950);
    color: var(--white);
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px) saturate(1.15);
    transform: scale(1.08);
    opacity: 0.28;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(69, 10, 10, 0.95), rgba(69, 10, 10, 0.78), rgba(17, 24, 39, 0.58));
}

.detail-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 72px 0;
}

.detail-poster {
    border-radius: 28px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
}

.detail-copy h1 {
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
    margin: 14px 0;
}

.detail-copy p {
    color: #fee2e2;
    line-height: 1.8;
    font-size: 17px;
}

.meta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.article-panel,
.side-panel,
.player-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 28px;
}

.article-panel h2,
.side-panel h2,
.player-panel h1,
.player-info h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
}

.article-panel p,
.side-panel p,
.player-info p {
    line-height: 1.9;
    color: var(--gray-700);
}

.side-panel {
    position: sticky;
    top: 106px;
}

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

.side-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #fff7ed;
}

.side-card img {
    width: 64px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.side-card strong,
.side-card small {
    display: block;
}

.side-card small {
    margin-top: 6px;
    color: var(--gray-500);
    line-height: 1.4;
}

.player-hero {
    padding: 48px 0 66px;
    background:
        radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.28), transparent 32%),
        linear-gradient(135deg, var(--gray-950), var(--red-950) 55%, var(--red-900));
}

.player-panel {
    color: var(--white);
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-panel h1 {
    color: var(--white);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.player-info {
    margin-top: 24px;
    color: var(--white);
}

.player-info p {
    color: #e5e7eb;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 18px;
}

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

.hidden-by-search {
    display: none !important;
}

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

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

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-poster,
    .detail-poster {
        max-width: 320px;
    }

    .rank-list {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }
}

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

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

    .brand-icon {
        width: 42px;
        height: 42px;
    }

    .hero-slider,
    .hero-slide,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding: 48px 0 74px;
    }

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

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

    .movie-desc {
        -webkit-line-clamp: 2;
        min-height: 45px;
    }

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

    .section {
        padding: 42px 0;
    }

    .section-head {
        display: block;
    }

    .section-line {
        margin-top: 16px;
    }

    .rank-item {
        grid-template-columns: 36px 72px 1fr;
    }

    .rank-item img {
        width: 72px;
    }
}
