:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --orange: #f97316;
    --slate: #0f172a;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --white: #ffffff;
    --shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #f1f5f9 100%);
}

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

img {
    max-width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 76px;
}

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

.brand-mark,
.footer-brand span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 24px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--red), var(--orange));
    -webkit-background-clip: text;
    color: transparent;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    font-weight: 700;
    color: #374151;
}

.main-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: var(--red);
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 18px;
    outline: none;
    background: #f9fafb;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: #fca5a5;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.14);
}

.search-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(420px, 90vw);
    max-height: 420px;
    overflow: auto;
    display: none;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

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

.search-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
}

.search-item:hover {
    background: #fef2f2;
}

.search-thumb {
    display: block;
    width: 48px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

.search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-item b,
.search-item em {
    display: block;
}

.search-item b {
    color: #111827;
    font-size: 14px;
}

.search-item em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 22px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 12px;
    font-weight: 700;
}

.mobile-nav.is-open {
    display: grid;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    padding: 80px 0 76px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #facc15;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.eyebrow.dark {
    color: var(--red);
}

.hero h1 {
    margin: 0 0 18px;
    max-width: 760px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.04;
}

.hero p {
    max-width: 760px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.75;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.detail-meta span {
    background: #f3f4f6;
    color: #4b5563;
}

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

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

.primary-btn {
    color: #fff;
    background: var(--red);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.34);
}

.primary-btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

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

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

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

.home-content,
.page-main {
    padding-top: 54px;
    padding-bottom: 64px;
}

.content-section {
    margin-bottom: 72px;
}

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

.section-head h2 {
    display: flex;
    align-items: center;
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 3vw, 34px);
}

.section-icon {
    margin-right: 12px;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--red);
    font-weight: 800;
}

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

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

.movie-card {
    position: relative;
    display: grid;
    gap: 8px;
    min-width: 0;
}

.poster-box {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, #7f1d1d 55%, #f97316);
    box-shadow: var(--shadow-soft);
    transform: translateZ(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-img,
.wide-img,
.category-img,
.related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    min-width: 42px;
    padding: 5px 8px;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.rank-badge {
    left: 10px;
    right: auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 16px;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    opacity: 0;
    color: var(--red);
    background: rgba(255, 255, 255, 0.94);
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover strong {
    color: var(--red);
}

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

.movie-desc {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-tag {
    justify-self: start;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fee2e2;
    color: var(--red);
    font-weight: 800;
}

.category-band,
.feature-band,
.page-hero,
.card-panel {
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.category-band,
.feature-band {
    padding: 34px;
}

.feature-band {
    background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%);
}

.feature-band.slim {
    margin-bottom: 44px;
}

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

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

.category-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-art {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

.category-art span {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent);
}

.category-card b {
    color: #1f2937;
    font-size: 18px;
}

.category-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    align-items: center;
    overflow: hidden;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.wide-poster {
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

.wide-content {
    display: grid;
    gap: 8px;
}

.wide-content b {
    color: #111827;
    font-size: 18px;
}

.wide-content em {
    color: var(--red);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.wide-content span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    padding: 48px;
    background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
}

.page-hero h1 {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.ranking-hero {
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}

.player-section {
    padding: 26px 0 42px;
    background: #020617;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.video-frame {
    position: relative;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    font-size: 54px;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: background 0.2s ease;
}

.video-play::before {
    content: "";
    position: absolute;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.36);
    z-index: -1;
}

.video-play:hover {
    background: rgba(0, 0, 0, 0.4);
}

.video-play.is-hidden {
    display: none;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
    gap: 28px;
    padding-top: 38px;
}

.card-panel {
    padding: 30px;
}

.detail-main h1 {
    margin: 0 0 18px;
    color: #111827;
    font-size: clamp(30px, 4vw, 46px);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.tag-row span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #374151;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 700;
}

.detail-main section {
    margin-top: 26px;
}

.detail-main h2,
.detail-side h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 22px;
}

.detail-main p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.9;
    text-align: justify;
}

.review-box {
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.detail-side {
    align-self: start;
    position: sticky;
    top: 100px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.related-card:hover {
    background: #fef2f2;
}

.related-thumb {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

.related-card b {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-card em {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #0f172a 0%, #7f1d1d 52%, #111827 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    padding: 52px 0 32px;
}

.footer-brand {
    color: #fff;
    font-size: 24px;
}

.site-footer p {
    max-width: 560px;
    color: #d1d5db;
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 18px;
    color: #fecaca;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #9ca3af;
    font-size: 14px;
}

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

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .movie-grid,
    .compact-grid,
    .ranking-grid,
    .category-grid,
    .category-grid.large {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .header-inner {
        min-height: 68px;
    }

    .brand-text small,
    .search-box {
        display: none;
    }

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

    .hero {
        min-height: 520px;
    }

    .hero-content {
        padding-bottom: 72px;
    }

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

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

    .detail-side {
        position: static;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

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

    .hero {
        min-height: 500px;
    }

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

    .hero p {
        font-size: 15px;
    }

    .hero-meta span {
        min-height: 30px;
        font-size: 12px;
    }

    .home-content,
    .page-main {
        padding-top: 34px;
    }

    .content-section {
        margin-bottom: 48px;
    }

    .category-band,
    .feature-band,
    .page-hero,
    .card-panel {
        border-radius: 22px;
    }

    .category-band,
    .feature-band,
    .page-hero,
    .card-panel {
        padding: 22px;
    }

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

    .wide-card {
        grid-template-columns: 96px 1fr;
        gap: 12px;
    }

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

    .video-frame {
        border-radius: 16px;
    }

    .video-play::before {
        width: 82px;
        height: 82px;
    }

    .video-play {
        font-size: 40px;
    }
}
