:root {
    --site-primary: #f3ab3c;
    --site-primary-dark: #ee8c2e;
    --site-secondary: #1f2937;
    --site-muted: #64748b;
    --site-bg: #f8fafc;
    --site-border: #e5e7eb;
    --site-card: #ffffff;
    --site-radius: 1rem;
    --site-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --site-shadow-strong: 0 18px 50px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--site-secondary);
    background: var(--site-bg);
}

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.96);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.site-nav {
    max-width: 1280px;
    height: 4.25rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1f2937;
    white-space: nowrap;
}

.logo-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.8rem;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-primary-dark));
    box-shadow: 0 10px 24px rgba(243, 171, 60, 0.35);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.95rem;
    font-weight: 650;
    color: #475569;
}

.nav-links a {
    padding: 0.55rem 0;
    transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--site-primary-dark);
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.15rem;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem 1rem;
}

.mobile-panel.open {
    display: grid;
    gap: 0.45rem;
}

.mobile-panel a {
    padding: 0.75rem 0.9rem;
    border-radius: 0.85rem;
    background: #f8fafc;
    color: #334155;
    font-weight: 650;
}

.hero {
    position: relative;
    min-height: 630px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.70) 42%, rgba(15, 23, 42, 0.20) 100%), linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.05));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 630px;
    margin: 0 auto;
    padding: 6.5rem 1.25rem 5rem;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #facc15;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
}

.hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 5vw, 4.75rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-summary {
    max-width: 660px;
    margin: 0 0 1.45rem;
    font-size: 1.12rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.meta-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.meta-row {
    margin: 0 0 1.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.84rem;
    font-weight: 750;
}

.hero .pill {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.hero .pill.primary {
    background: var(--site-primary);
    color: #ffffff;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.78rem 1.25rem;
    border: 0;
    border-radius: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--site-primary), var(--site-primary-dark));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(243, 171, 60, 0.35);
}

.btn-light {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.hero-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 2.8rem;
    height: 2.8rem;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.hero-control.prev {
    left: 1rem;
}

.hero-control.next {
    right: 1rem;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 2rem;
    display: flex;
    gap: 0.55rem;
    transform: translateX(-50%);
}

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

.hero-dot.active {
    width: 2rem;
    background: var(--site-primary);
}

.search-panel {
    position: relative;
    z-index: 4;
    max-width: 1280px;
    margin: -3rem auto 0;
    padding: 0 1.25rem;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--site-shadow-strong);
    backdrop-filter: blur(14px);
}

.search-box input,
.filter-input {
    width: 100%;
    border: 1px solid var(--site-border);
    border-radius: 0.95rem;
    padding: 0.85rem 1rem;
    outline: none;
    font-size: 1rem;
    color: #111827;
    background: #ffffff;
}

.search-box input:focus,
.filter-input:focus {
    border-color: var(--site-primary);
    box-shadow: 0 0 0 3px rgba(243, 171, 60, 0.18);
}

.page-main {
    min-height: 70vh;
}

.section {
    padding: 4rem 1.25rem;
}

.section.white {
    background: #ffffff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.7rem;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.16;
    font-weight: 900;
}

.section-heading p,
.lead {
    max-width: 760px;
    color: #64748b;
    line-height: 1.8;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.35rem;
}

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1rem;
    background: var(--site-card);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(243, 171, 60, 0.45);
    box-shadow: var(--site-shadow);
}

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #e2e8f0;
}

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

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

.poster-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.76rem;
    font-weight: 800;
    backdrop-filter: blur(6px);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.9rem;
}

.card-title {
    margin: 0;
    color: #111827;
    font-size: 1rem;
    line-height: 1.38;
    font-weight: 850;
}

.card-title a:hover {
    color: var(--site-primary-dark);
}

.card-desc {
    min-height: 2.9rem;
    margin: 0;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: #94a3b8;
    font-size: 0.78rem;
}

.horizontal-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 260px);
    gap: 1.15rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
    scroll-snap-type: x mandatory;
}

.horizontal-row .movie-card {
    scroll-snap-align: start;
}

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

.category-card {
    min-height: 11rem;
    padding: 1.25rem;
    border-radius: 1.2rem;
    color: #ffffff;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: var(--site-shadow);
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: rgba(243, 171, 60, 0.22);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 0.6rem;
    font-size: 1.25rem;
    font-weight: 850;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.rank-list {
    display: grid;
    gap: 0.85rem;
}

.rank-item {
    display: grid;
    grid-template-columns: auto 5.5rem 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid var(--site-border);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.rank-num {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.8rem;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-primary-dark));
    font-weight: 900;
}

.rank-poster {
    width: 5.5rem;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #e2e8f0;
}

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

.rank-info h2,
.rank-info h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
}

.rank-info p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
}

.breadcrumb a:hover {
    color: var(--site-primary-dark);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
    gap: 1.6rem;
    align-items: start;
}

.player-card,
.detail-card {
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: var(--site-shadow);
    overflow: hidden;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem 1.25rem 0 0;
    background: #000000;
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000000;
    cursor: pointer;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.18));
    color: #ffffff;
    cursor: pointer;
    z-index: 2;
}

.play-cover.hidden {
    display: none;
}

.play-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(243, 171, 60, 0.96);
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 16px 40px rgba(243, 171, 60, 0.38);
}

.player-info {
    padding: 1.3rem;
}

.player-info h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    line-height: 1.18;
}

.player-info p {
    margin: 0;
    color: #64748b;
    line-height: 1.85;
}

.detail-card {
    padding: 1.25rem;
}

.detail-card h2 {
    margin: 0 0 0.9rem;
    font-size: 1.25rem;
}

.info-list {
    display: grid;
    gap: 0.7rem;
    margin: 1rem 0 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.7rem;
    align-items: start;
    color: #475569;
}

.info-list strong {
    color: #1f2937;
}

.article {
    line-height: 1.9;
    color: #334155;
}

.article h2 {
    margin-top: 0;
}

.article p {
    margin: 0 0 1rem;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.2rem;
}

.empty-note {
    padding: 2rem;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: #ffffff;
    color: #64748b;
    text-align: center;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.25rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-inner h3 {
    margin: 0 0 1rem;
    color: #ffffff;
}

.footer-inner p {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 0.55rem;
}

.footer-links a:hover {
    color: var(--site-primary);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.25rem 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 1180px) {
    .movie-grid,
    .search-results {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .mobile-toggle {
        display: inline-flex;
    }

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

    .hero-content {
        padding-top: 5rem;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .site-nav {
        height: 4rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .hero,
    .hero-content {
        min-height: 520px;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding: 3rem 1rem;
    }

    .movie-grid,
    .search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

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

    .rank-item {
        grid-template-columns: auto 4rem 1fr;
    }

    .rank-item .btn {
        grid-column: 1 / -1;
    }

    .rank-poster {
        width: 4rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
