:root {
    --red: #dc2626;
    --rose: #e11d48;
    --amber: #f59e0b;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --dark: #111827;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fff7f7 0%, #f8fafc 42%, #fff 100%);
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
    max-width: 100%;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(135deg, var(--red), var(--rose));
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.28);
}
.brand-text strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
}
.brand-text small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
}
.main-nav a,
.mobile-links a {
    color: #374151;
    transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active,
.mobile-links a:hover,
.mobile-links a.active {
    color: var(--red);
}
.top-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-search input,
.mobile-search input,
.filter-input {
    width: 240px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}
.top-search input:focus,
.mobile-search input:focus,
.filter-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}
.top-search button,
.mobile-search button,
.btn-primary,
.btn-ghost,
.filter-chip,
.play-button {
    border: 0;
    cursor: pointer;
    font-weight: 800;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.top-search button,
.mobile-search button,
.btn-primary {
    color: #fff;
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--red), var(--rose));
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
}
.btn-ghost {
    color: var(--red);
    padding: 11px 18px;
    border: 1px solid rgba(220, 38, 38, 0.25);
    background: #fff;
}
.top-search button:hover,
.mobile-search button:hover,
.btn-primary:hover,
.btn-ghost:hover,
.filter-chip:hover,
.play-button:hover {
    transform: translateY(-2px);
}
.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: #fff;
    color: #374151;
    font-size: 28px;
}
.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 14px 24px 20px;
}
.mobile-panel.open {
    display: block;
}
.mobile-search {
    display: flex;
    gap: 8px;
}
.mobile-search input {
    width: 100%;
}
.mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.mobile-links a {
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff1f2;
}
.section,
.hero,
.detail-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px;
}
.hero {
    padding-top: 32px;
}
.hero-shell {
    position: relative;
    min-height: 580px;
    overflow: hidden;
    border-radius: 34px;
    background: radial-gradient(circle at 78% 20%, rgba(244, 63, 94, 0.32), transparent 30%), linear-gradient(135deg, #111827 0%, #7f1d1d 54%, #fb7185 100%);
    color: #fff;
    box-shadow: var(--shadow);
}
.hero-track {
    position: relative;
    min-height: 580px;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    align-items: center;
    gap: 36px;
    padding: 56px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.hero-copy {
    position: relative;
    z-index: 2;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-weight: 800;
    color: #ffe4e6;
}
.hero h1 {
    max-width: 780px;
    margin: 18px 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}
.hero p {
    max-width: 680px;
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.hero .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.10);
}
.hero-poster {
    position: relative;
    z-index: 2;
    border-radius: 28px;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
    aspect-ratio: 2 / 3;
}
.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 48%);
}
.hero-dots {
    position: absolute;
    left: 56px;
    bottom: 34px;
    z-index: 5;
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 42px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.30);
    cursor: pointer;
}
.hero-dot.active {
    background: #fff;
}
.hero-quick {
    position: absolute;
    right: 44px;
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.hero-quick a {
    color: #fff;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-weight: 700;
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.section-kicker {
    margin: 0 0 8px;
    color: var(--red);
    font-weight: 900;
}
.section h2,
.detail-wrap h2,
.category-title h1,
.search-title h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.03em;
}
.section-lead,
.category-title p,
.search-title p {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.category-tile {
    min-height: 132px;
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.9);
}
.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.category-tile strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}
.category-tile span {
    color: var(--muted);
    line-height: 1.6;
}
.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}
.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.72);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}
.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.movie-card:hover img {
    transform: scale(1.06);
}
.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 52%);
}
.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(220, 38, 38, 0.86);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.duration-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}
.duration-pill {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.58);
}
.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    text-align: center;
    padding: 7px 10px;
    background: linear-gradient(135deg, var(--amber), var(--red));
}
.movie-info {
    padding: 16px;
}
.movie-info h3 {
    margin: 0 0 9px;
    min-height: 44px;
    font-size: 17px;
    line-height: 1.3;
}
.movie-info h3 a:hover {
    color: var(--red);
}
.movie-info p {
    min-height: 46px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
}
.movie-meta span,
.detail-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f3f4f6;
}
.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}
.tag-line span,
.detail-tags span {
    padding: 6px 9px;
    color: #991b1b;
    border-radius: 999px;
    background: #fee2e2;
    font-size: 12px;
    font-weight: 800;
}
.rank-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}
.rank-list {
    display: grid;
    gap: 13px;
}
.rank-row {
    display: grid;
    grid-template-columns: 52px 74px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}
.rank-row img {
    width: 74px;
    height: 98px;
    border-radius: 14px;
    object-fit: cover;
}
.rank-num {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red), var(--rose));
}
.rank-row h3 {
    margin: 0 0 8px;
    font-size: 17px;
}
.rank-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.rank-hot {
    color: var(--red);
    font-weight: 900;
    white-space: nowrap;
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px;
    margin-bottom: 26px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}
.filter-input {
    width: 320px;
}
.filter-chip {
    padding: 10px 14px;
    color: #374151;
    background: #f3f4f6;
}
.filter-chip.active {
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--rose));
}
.breadcrumb {
    color: var(--muted);
    margin-bottom: 18px;
    font-weight: 700;
}
.breadcrumb a:hover {
    color: var(--red);
}
.detail-hero {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
    padding: 28px;
    border-radius: 34px;
    background: radial-gradient(circle at 88% 12%, rgba(244, 63, 94, 0.22), transparent 32%), linear-gradient(135deg, #111827, #7f1d1d 55%, #be123c);
    color: #fff;
    box-shadow: var(--shadow);
}
.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}
.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}
.detail-info h1 {
    margin: 12px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}
.detail-info p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.85;
}
.detail-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}
.detail-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}
.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
}
.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}
.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
    z-index: 3;
}
.player-cover.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.play-button {
    width: 90px;
    height: 90px;
    color: #fff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--red), var(--rose));
    box-shadow: 0 26px 48px rgba(220, 38, 38, 0.34);
}
.content-card {
    margin-top: 24px;
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.content-card p {
    color: #4b5563;
    line-height: 1.9;
    font-size: 16px;
}
.pagination-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}
.pagination-links a {
    flex: 1;
    padding: 16px 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}
.pagination-links a:last-child {
    text-align: right;
}
.site-footer {
    margin-top: 56px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 22px;
}
.footer-inner p {
    max-width: 520px;
    color: #9ca3af;
    line-height: 1.8;
}
.footer-inner h3 {
    color: #fff;
    margin: 0 0 16px;
}
.footer-links {
    display: grid;
    gap: 10px;
}
.footer-links a:hover {
    color: #fca5a5;
}
.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #9ca3af;
}
.empty-state {
    display: none;
    padding: 28px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: #fff;
}
@media (max-width: 1120px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .hero-slide {
        grid-template-columns: 1fr 320px;
        padding: 44px;
    }
}
@media (max-width: 900px) {
    .main-nav,
    .top-search {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero-shell,
    .hero-track {
        min-height: 760px;
    }
    .hero-slide {
        grid-template-columns: 1fr;
        align-content: start;
        padding: 34px;
    }
    .hero-poster {
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-quick {
        left: 34px;
        right: 34px;
        justify-content: flex-start;
    }
    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .rank-layout,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .detail-poster img {
        min-height: auto;
    }
}
@media (max-width: 640px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }
    .brand-text small {
        display: none;
    }
    .section,
    .hero,
    .detail-wrap {
        padding: 28px 16px;
    }
    .hero-shell,
    .hero-track {
        min-height: 700px;
        border-radius: 24px;
    }
    .hero-slide {
        padding: 26px;
    }
    .hero h1 {
        font-size: 38px;
    }
    .hero p {
        font-size: 15px;
    }
    .hero-dots {
        left: 26px;
        bottom: 24px;
    }
    .hero-quick {
        display: none;
    }
    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .movie-info {
        padding: 12px;
    }
    .rank-row {
        grid-template-columns: 42px 64px 1fr;
    }
    .rank-hot {
        grid-column: 3;
    }
    .filter-input {
        width: 100%;
    }
    .pagination-links {
        flex-direction: column;
    }
    .pagination-links a:last-child {
        text-align: left;
    }
}
