* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(2, 6, 23, 0.88);
    border-bottom: 1px solid rgba(51, 65, 85, 0.85);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #111827;
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-right: auto;
}

.site-nav a,
.mobile-panel a {
    color: #cbd5e1;
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.mobile-panel a:hover {
    color: #f59e0b;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(71, 85, 105, 0.9);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
    width: 220px;
    padding: 10px 12px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-search button,
.hero-button,
.section-link,
.watch-button,
.filter-panel button {
    border: 0;
    cursor: pointer;
    color: #111827;
    background: #f59e0b;
    font-weight: 800;
    border-radius: 12px;
    padding: 10px 16px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-button:hover,
.section-link:hover,
.watch-button:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 22px;
    border-top: 1px solid rgba(51, 65, 85, 0.8);
}

.mobile-panel.is-open {
    display: grid;
    gap: 14px;
}

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.page-main {
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 30%),
        radial-gradient(circle at 80% 5%, rgba(59, 130, 246, 0.12), transparent 28%),
        linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
    min-height: 70vh;
}

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.28) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.52) 42%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 80px 0 82px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero-text h1,
.hero-text h2 {
    max-width: 780px;
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.hero-text p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.tag-row span,
.info-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.hero-meta span {
    padding: 8px 14px;
}

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

.hero-button.secondary {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.62);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(245, 158, 11, 0.86);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #f59e0b;
}

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

.section {
    padding: 54px 0;
}

.section-tight {
    padding: 34px 0;
}

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

.section-head h1,
.section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 38px);
}

.section-head p {
    max-width: 740px;
    margin: 10px 0 0;
    color: #94a3b8;
    line-height: 1.7;
}

.section-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

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

.category-card {
    min-height: 154px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.9)),
        rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.42);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    color: #ffffff;
}

.category-card p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.6;
}

.category-card span {
    margin-top: 18px;
    color: #f59e0b;
    font-weight: 800;
}

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

.movie-card {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(30, 41, 59, 0.88);
}

.movie-card a {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.26), transparent 36%),
        linear-gradient(135deg, #111827, #0f172a);
}

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

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

.play-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.play-badge {
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    color: #111827;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.year-badge {
    right: 10px;
    top: 10px;
    padding: 6px 9px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 34px;
    height: 34px;
    color: #111827;
    background: #f59e0b;
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-info p {
    min-height: 44px;
    margin: 0 0 12px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span {
    padding: 4px 8px;
    font-size: 12px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 12px;
}

.meta-row span + span::before {
    content: "•";
    margin-right: 7px;
    color: #475569;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 62px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.13);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(245, 158, 11, 0.28);
}

.rank-num {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #111827;
    background: #f59e0b;
    font-weight: 900;
}

.rank-item img {
    width: 62px;
    height: 82px;
    object-fit: cover;
    border-radius: 10px;
    background: #111827;
}

.rank-title {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.45;
}

.rank-meta {
    color: #94a3b8;
    font-size: 13px;
    white-space: nowrap;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 24px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #94a3b8;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 12px 14px;
}

.no-results {
    display: none;
    padding: 34px;
    border-radius: 18px;
    text-align: center;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.no-results.is-visible {
    display: block;
}

.page-hero {
    padding: 82px 0 38px;
}

.page-hero-card {
    padding: clamp(26px, 5vw, 54px);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.92)),
        rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
}

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

.page-hero-card p {
    max-width: 840px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.75;
}

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

.breadcrumb a {
    color: #f59e0b;
}

.detail-hero {
    padding: 34px 0 44px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-button {
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: #f59e0b;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 22px 48px rgba(245, 158, 11, 0.35);
}

.detail-panel {
    padding: 26px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-panel h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px;
}

.detail-meta span,
.info-chip {
    padding: 7px 11px;
    font-size: 13px;
}

.detail-panel p {
    color: #cbd5e1;
    line-height: 1.75;
}

.watch-button {
    display: inline-flex;
    margin-top: 12px;
}

.content-card {
    padding: 28px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.content-card h2 {
    margin: 0 0 18px;
    color: #ffffff;
}

.content-card p {
    margin: 0 0 14px;
    color: #cbd5e1;
    line-height: 1.86;
}

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

.detail-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.prev-next a {
    padding: 16px;
    border-radius: 16px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.prev-next strong {
    display: block;
    color: #ffffff;
    margin-top: 6px;
}

.site-footer {
    padding: 46px 0 26px;
    background: #020617;
    border-top: 1px solid rgba(51, 65, 85, 0.82);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
}

.footer-logo {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 520px;
    color: #94a3b8;
    line-height: 1.7;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

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

.footer-links a {
    color: #94a3b8;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 22px;
    color: #64748b;
    border-top: 1px solid rgba(51, 65, 85, 0.75);
    text-align: center;
}

@media (max-width: 1080px) {
    .site-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

@media (max-width: 760px) {
    .hero-carousel {
        height: 560px;
    }

    .hero-control {
        display: none;
    }

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

    .hero-meta {
        gap: 8px;
    }

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

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

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

    .rank-item {
        grid-template-columns: 36px 52px 1fr;
    }

    .rank-meta {
        grid-column: 3;
    }

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

    .prev-next {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .category-grid,
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        width: min(100% - 22px, 1180px);
    }

    .site-logo span:last-child {
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
