:root {
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --red-500: #ef4444;
    --orange-500: #f97316;
    --gray-950: #080b12;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-800);
    background: linear-gradient(180deg, #fff7f7 0%, #ffffff 36%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

img,
video {
    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: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid rgba(220, 38, 38, 0.08);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(16px);
}

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

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

.brand-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    color: var(--white);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

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

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

.desktop-nav {
    display: flex;
    gap: 28px;
    align-items: center;
    color: var(--gray-700);
    font-weight: 650;
}

.desktop-nav a {
    position: relative;
    padding: 8px 0;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red-600), var(--orange-500));
    content: "";
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--red-600);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    opacity: 1;
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 24px;
}

.mobile-nav {
    display: none;
    padding: 0 18px 18px;
    border-top: 1px solid rgba(220, 38, 38, 0.08);
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: var(--gray-700);
    font-weight: 650;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 76px;
    background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.32), transparent 24%), linear-gradient(120deg, var(--red-700), var(--red-500) 58%, var(--orange-500));
    color: var(--white);
}

.hero::before,
.hero::after {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    content: "";
    animation: pulse 4.8s ease-in-out infinite;
}

.hero::before {
    top: 42px;
    left: 9%;
    width: 136px;
    height: 136px;
}

.hero::after {
    right: 7%;
    bottom: 50px;
    width: 220px;
    height: 220px;
    animation-delay: 1.3s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.16;
        transform: scale(1);
    }
    50% {
        opacity: 0.34;
        transform: scale(1.08);
    }
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 44px;
    align-items: center;
}

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

.hero h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.hero p {
    max-width: 640px;
    margin: 22px 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
}

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

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

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

.btn-primary {
    color: var(--red-600);
    background: var(--white);
    box-shadow: 0 16px 32px rgba(127, 29, 29, 0.22);
}

.btn-dark {
    color: var(--white);
    background: rgba(127, 29, 29, 0.7);
    box-shadow: 0 16px 30px rgba(127, 29, 29, 0.18);
}

.hero-search {
    display: flex;
    width: min(540px, 100%);
    margin-top: 28px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: var(--white);
    background: transparent;
    font-size: 15px;
}

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

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    background: var(--white);
    color: var(--red-600);
    font-weight: 800;
}

.hero-panel {
    position: relative;
    min-height: 468px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.58fr 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 80px rgba(127, 29, 29, 0.22);
    opacity: 0;
    transform: translateX(28px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
    backdrop-filter: blur(14px);
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-poster {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.2);
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-content h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.18;
}

.hero-content p {
    margin: 0 0 20px;
    font-size: 16px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-tags span,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(220, 38, 38, 0.09);
    color: var(--red-700);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.hero-dots {
    position: absolute;
    right: 28px;
    bottom: 22px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.hero-dot.active {
    width: 24px;
    background: var(--white);
}

.section {
    padding: 68px 0;
}

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

.section-title {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}

.section-desc {
    margin: 8px 0 0;
    max-width: 690px;
    color: var(--gray-600);
}

.link-more {
    color: var(--red-600);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 172px;
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff1f2, #fff7ed);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 60px rgba(220, 38, 38, 0.18);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--gray-900);
    font-size: 21px;
}

.category-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.category-card span {
    position: absolute;
    right: 18px;
    bottom: 14px;
    color: rgba(220, 38, 38, 0.16);
    font-size: 58px;
    font-weight: 900;
    line-height: 1;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 65px rgba(15, 23, 42, 0.16);
}

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

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

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

.play-mark {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--red-600);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
}

.card-body {
    padding: 17px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--gray-600);
    font-size: 14px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.5fr);
    gap: 28px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 68px minmax(0, 1fr) 62px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-index {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-600), var(--orange-500));
    font-weight: 900;
}

.rank-row img {
    width: 68px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-main strong,
.rank-main em {
    display: block;
}

.rank-main strong {
    color: var(--gray-900);
    font-size: 17px;
}

.rank-main em {
    margin-top: 5px;
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
}

.rank-score {
    color: var(--red-600);
    font-weight: 900;
    text-align: right;
}

.page-hero {
    padding: 58px 0;
    background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

.page-hero h1 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.15;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--gray-600);
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px 160px;
    gap: 12px;
    padding: 16px;
    margin-bottom: 26px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
    min-height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 14px;
    outline: 0;
    background: var(--gray-50);
    color: var(--gray-800);
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 20px;
    background: var(--white);
    color: var(--gray-600);
    text-align: center;
    box-shadow: var(--shadow);
}

.detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
    padding: 48px 0 70px;
}

.player-box {
    overflow: hidden;
    border-radius: 28px;
    background: var(--gray-950);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.player-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--gray-950);
}

.player-screen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--gray-950);
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(8, 11, 18, 0.12), rgba(8, 11, 18, 0.78));
    cursor: pointer;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
    filter: blur(1px);
}

.player-cover span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--red-600);
    font-size: 34px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.player-message {
    min-height: 24px;
    padding: 12px 18px;
    color: #fecaca;
    font-size: 14px;
}

.detail-main,
.detail-side {
    min-width: 0;
}

.detail-title-card,
.side-card,
.article-card {
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.detail-title-card {
    padding: 28px;
    margin-top: 24px;
}

.breadcrumb {
    margin-bottom: 14px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--red-600);
}

.detail-title-card h1 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    background: #fff1f2;
    color: var(--red-700);
    font-size: 13px;
    font-weight: 800;
}

.article-card {
    padding: 28px;
    margin-top: 22px;
}

.article-card h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 25px;
}

.article-card p {
    margin: 0;
    color: var(--gray-700);
    white-space: pre-line;
}

.side-card {
    padding: 18px;
    margin-bottom: 20px;
}

.side-card h2 {
    margin: 0 0 15px;
    color: var(--gray-900);
    font-size: 21px;
}

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

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

.related-list a {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: var(--gray-50);
}

.related-list img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

.related-list strong {
    display: block;
    overflow: hidden;
    color: var(--gray-900);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.related-list span {
    display: block;
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 12px;
}

.pagination-note {
    margin-top: 24px;
    color: var(--gray-500);
    text-align: center;
}

.site-footer {
    padding-top: 42px;
    background: var(--gray-900);
    color: var(--gray-300);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 28px;
}

.footer-brand {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    color: var(--gray-300);
}

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

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

.footer-bottom {
    margin-top: 36px;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-500);
    text-align: center;
}

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

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

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

    .hero-layout,
    .rank-layout,
    .detail-wrap,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 430px;
    }

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

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .hero {
        padding: 52px 0 56px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 520px;
    }

    .hero-poster {
        height: 260px;
    }

    .hero-search {
        border-radius: 20px;
        flex-direction: column;
    }

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

    .section-head {
        display: block;
    }

    .category-grid,
    .movie-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

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

    .rank-score {
        display: none;
    }

    .detail-title-card,
    .article-card {
        padding: 20px;
    }
}
