* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #e5e7eb;
    background: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
    font-size: 13px;
}

.brand-name {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, #ef4444, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-link,
.mobile-link {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link {
    padding: 21px 0 18px;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ef4444;
    border-color: #ef4444;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    padding: 9px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #e2e8f0;
    border-radius: 3px;
}

.mobile-nav {
    display: none;
    padding: 8px 16px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: #1e293b;
}

.mobile-nav.open {
    display: grid;
    gap: 10px;
}

.mobile-link {
    padding: 10px 0;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #7f1d1d, #991b1b 46%, #9a3412);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
    background-size: cover;
    background-position: center;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.82));
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 40%, rgba(239, 68, 68, 0.35), transparent 28%), linear-gradient(0deg, #0f172a 0%, transparent 20%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 40px;
    padding: 72px 0;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    margin: 22px 0 18px;
    color: #ffffff;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1.6px;
}

.hero h1 span {
    display: block;
    margin-top: 12px;
    color: #fecaca;
    font-size: clamp(24px, 4vw, 40px);
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    background: #dc2626;
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
    background: #b91c1c;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(10px);
}

.hero-panel {
    position: relative;
    display: grid;
    gap: 18px;
}

.hero-poster-main {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-poster-main img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-info-card {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(12px);
}

.hero-info-card strong {
    display: block;
    color: #ffffff;
    font-size: 22px;
}

.hero-info-card em {
    display: block;
    margin-top: 4px;
    color: #cbd5e1;
    font-style: normal;
}

.hero-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hero-thumbs a {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #1e293b;
}

.hero-thumbs img {
    width: 100%;
    height: 98px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-thumbs a:hover img {
    transform: scale(1.08);
}

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

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

.hero-dot.active {
    width: 28px;
    background: #ef4444;
}

.main-section {
    padding: 72px 0;
}

.section-dark {
    background: linear-gradient(90deg, #1e293b, #0f172a);
}

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

.section-title {
    margin: 10px 0 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 900;
}

.section-desc {
    max-width: 780px;
    margin: 12px 0 0;
    color: #94a3b8;
}

.text-link {
    color: #f87171;
    font-weight: 800;
}

.text-link:hover {
    color: #fb923c;
}

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

.card-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
    min-width: 0;
}

.card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-link:hover {
    transform: translateY(-8px);
    border-color: rgba(248, 113, 113, 0.4);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.card-poster {
    position: relative;
    overflow: hidden;
    height: 210px;
    background: linear-gradient(135deg, #334155, #0f172a);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 60%);
    opacity: 0.68;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.88);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.card-link:hover .play-mark {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.rank-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    display: flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: #ffffff;
    background: #f97316;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.4);
}

.card-body {
    padding: 18px;
}

.card-meta {
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.card-body h3 {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 850;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.card-link:hover h3 {
    color: #f87171;
}

.card-desc {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #cbd5e1;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-desc.compact {
    min-height: 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span,
.meta-pill,
.detail-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    font-size: 12px;
}

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

.category-tile {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: 22px;
    background: #1e293b;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-6px) scale(1.02);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.82), rgba(249, 115, 22, 0.66));
}

.category-tile:nth-child(2n)::after {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(6, 182, 212, 0.66));
}

.category-tile:nth-child(3n)::after {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.8), rgba(16, 185, 129, 0.64));
}

.category-tile:nth-child(4n)::after {
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.8), rgba(236, 72, 153, 0.64));
}

.category-tile span {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    min-height: 170px;
    align-items: center;
    justify-content: center;
    padding: 22px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    text-align: center;
}

.list-panel {
    padding: 28px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
}

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

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

.feature-item {
    display: flex;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    transition: background 0.2s ease;
}

.feature-item:hover {
    background: rgba(51, 65, 85, 0.8);
}

.feature-item img {
    width: 96px;
    height: 96px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 14px;
}

.feature-item h3 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 18px;
}

.feature-item p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #94a3b8;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin: 0 0 28px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
}

.search-input {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    color: #ffffff;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    outline: none;
}

.search-input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.filter-select {
    min-height: 46px;
    padding: 0 14px;
    color: #ffffff;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
}

.page-hero {
    padding: 70px 0 42px;
    background: radial-gradient(circle at 12% 0%, rgba(239, 68, 68, 0.22), transparent 34%), linear-gradient(180deg, #1e293b, #0f172a);
}

.page-hero h1 {
    margin: 12px 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 900;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 90px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(5px);
    border-color: rgba(248, 113, 113, 0.4);
}

.rank-num {
    color: #fb923c;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 90px;
    height: 66px;
    object-fit: cover;
    border-radius: 12px;
}

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

.rank-info strong {
    color: #ffffff;
    font-size: 18px;
}

.rank-info em {
    color: #94a3b8;
    font-size: 13px;
    font-style: normal;
}

.rank-action {
    color: #f87171;
    font-weight: 800;
}

.detail-hero {
    padding: 40px 0 72px;
    background: radial-gradient(circle at 22% 8%, rgba(220, 38, 38, 0.28), transparent 32%), linear-gradient(180deg, #1e293b, #0f172a 74%);
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a {
    color: #f87171;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 34px;
    align-items: start;
}

.player-box {
    position: relative;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(248, 113, 113, 0.22);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.72));
    border: 0;
    cursor: pointer;
}

.play-overlay span {
    display: flex;
    width: 78px;
    height: 78px;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    border-radius: 999px;
    font-size: 28px;
    box-shadow: 0 16px 40px rgba(220, 38, 38, 0.42);
}

.play-overlay strong {
    font-size: 18px;
}

.is-hidden {
    display: none !important;
}

.detail-panel {
    padding: 28px;
    background: rgba(30, 41, 59, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
}

.detail-panel h1 {
    margin: 12px 0 14px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 900;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.detail-intro {
    color: #cbd5e1;
    font-size: 17px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

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

.article-box {
    padding: 28px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
}

.article-box + .article-box {
    margin-top: 22px;
}

.article-box h2,
.side-box h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
}

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

.side-box {
    position: sticky;
    top: 86px;
    padding: 22px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
}

.side-reco {
    display: grid;
    gap: 14px;
}

.side-reco a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.side-reco a:hover {
    background: rgba(51, 65, 85, 0.86);
}

.side-reco img {
    width: 76px;
    height: 58px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 10px;
}

.side-reco strong {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.side-reco span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

.site-footer {
    padding: 48px 0 20px;
    background: linear-gradient(180deg, #0f172a, #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    max-width: 360px;
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 16px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #94a3b8;
    font-size: 14px;
}

.site-footer a:hover {
    color: #f87171;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 13px;
}

.empty-state {
    display: none;
    padding: 28px;
    color: #94a3b8;
    background: #1e293b;
    border-radius: 20px;
    text-align: center;
}

.empty-state.show {
    display: block;
}

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

    .nav-toggle {
        display: block;
    }

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

    .side-box {
        position: static;
    }

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

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

    .brand-name {
        font-size: 20px;
    }

    .hero,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 54px 0 72px;
    }

    .hero-panel {
        display: none;
    }

    .section-head,
    .filter-bar {
        display: block;
    }

    .filter-select {
        width: 100%;
        margin-top: 12px;
    }

    .card-grid,
    .card-grid.four,
    .category-grid,
    .list-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 40px 72px minmax(0, 1fr);
    }

    .rank-action {
        display: none;
    }

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