* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

::selection {
    background: rgba(6, 182, 212, 0.35);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 999px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.74));
    border-bottom: 1px solid rgba(51, 65, 85, 0.72);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    box-shadow: 0 18px 36px rgba(6, 182, 212, 0.24);
    color: #ffffff;
    font-size: 16px;
}

.brand-text,
.footer-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #cbd5e1;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #22d3ee;
}

.header-search {
    width: 240px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.95);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.header-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    background: transparent;
    border: 0;
    outline: 0;
    color: #ffffff;
}

.header-search button {
    height: 100%;
    padding: 10px 16px;
    background: #0891b2;
    color: #ffffff;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.9);
}

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

main {
    min-height: 60vh;
}

.hero {
    position: relative;
    min-height: 720px;
    padding: 112px 0 56px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.22), transparent 34%), #020617;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(180deg, transparent, #020617);
    pointer-events: none;
}

.hero-track {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) 420px;
    align-items: center;
    gap: 48px;
    padding: 56px;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.94)), var(--hero-cover);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border: 1px solid rgba(34, 211, 238, 0.38);
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.16);
    color: #67e8f9;
    font-weight: 700;
    font-size: 14px;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 720px;
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 26px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid rgba(71, 85, 105, 0.72);
    color: #e2e8f0;
    font-size: 13px;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.24);
}

.ghost-btn {
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(15, 23, 42, 0.56);
    color: #e2e8f0;
}

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

.hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.5);
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
}

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

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
}

.hero-btn,
.hero-dot {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.74);
    color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    background: rgba(148, 163, 184, 0.46);
    color: transparent;
}

.hero-dot.active {
    width: 34px;
    background: #22d3ee;
}

.section,
.page-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.section-heading p,
.page-title p {
    margin: 10px 0 0;
    color: #94a3b8;
    line-height: 1.8;
}

.section-heading a {
    color: #22d3ee;
    font-weight: 800;
}

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

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

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

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

.card-cover {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.32);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.landscape .card-cover {
    aspect-ratio: 16 / 9;
}

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    backdrop-filter: blur(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.year-badge,
.rank-number {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    color: #facc15;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.movie-card:hover .card-cover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.46);
}

.movie-card:hover .card-cover img {
    transform: scale(1.06);
    opacity: 0.92;
}

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

.card-body {
    padding-top: 13px;
}

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

.card-body p {
    min-height: 42px;
    margin: 7px 0 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.55;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(59, 130, 246, 0.08)), #0f172a;
    border: 1px solid rgba(71, 85, 105, 0.72);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.55);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

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

.category-card span {
    position: absolute;
    right: 22px;
    bottom: 20px;
    color: #22d3ee;
    font-weight: 800;
}

.page-hero {
    padding: 126px 0 28px;
    background: radial-gradient(circle at 30% 0%, rgba(6, 182, 212, 0.18), transparent 30%), linear-gradient(180deg, #0f172a, #020617);
}

.page-title {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    padding: 18px;
    margin: 28px 0 0;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(51, 65, 85, 0.85);
}

.search-panel input,
.search-panel select {
    min-height: 48px;
    border: 1px solid rgba(71, 85, 105, 0.9);
    outline: 0;
    border-radius: 14px;
    background: #020617;
    color: #ffffff;
    padding: 0 16px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.filter-chip {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.92);
    color: #cbd5e1;
    border: 1px solid rgba(71, 85, 105, 0.82);
}

.filter-chip.active {
    background: #0891b2;
    border-color: #22d3ee;
    color: #ffffff;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(51, 65, 85, 0.78);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.52);
}

.rank-index {
    color: #22d3ee;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    width: 96px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: #1e293b;
}

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

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

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

.rank-meta {
    color: #cbd5e1;
    font-weight: 700;
}

.detail-hero {
    position: relative;
    padding: 116px 0 48px;
    overflow: hidden;
    background: #020617;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.97), rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.97)), var(--detail-cover);
    background-size: cover;
    background-position: center;
    filter: blur(2px) saturate(1.05);
    transform: scale(1.03);
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) 340px;
    gap: 34px;
    align-items: start;
}

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

.breadcrumb a {
    color: #67e8f9;
}

.detail-copy h1 {
    letter-spacing: -0.03em;
}

.detail-copy .lead {
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.85;
}

.detail-tags {
    margin-top: 22px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 28px 62px rgba(0, 0, 0, 0.45);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.player-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.08));
    color: #ffffff;
}

.player-cover[hidden] {
    display: none;
}

.player-cover span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    font-size: 30px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.player-cover:hover span {
    transform: scale(1.08);
    background: rgba(6, 182, 212, 0.62);
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 16px;
    color: #e2e8f0;
    font-size: 14px;
    pointer-events: none;
}

.content-layout {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    padding: 28px 0 58px;
}

.article-card,
.side-card {
    padding: 26px;
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(51, 65, 85, 0.82);
}

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

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.article-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 2;
}

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

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.68);
    color: #cbd5e1;
}

.info-list strong {
    color: #ffffff;
}

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

.hidden-by-filter {
    display: none !important;
}

.site-footer {
    border-top: 1px solid rgba(51, 65, 85, 0.85);
    background: #0f172a;
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    color: #94a3b8;
}

.footer-inner p {
    max-width: 760px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 18px 0;
}

.footer-links a {
    color: #cbd5e1;
}

.copyright {
    margin-bottom: 0;
    color: #64748b;
}

@media (max-width: 1120px) {
    .header-search {
        display: none;
    }

    .hero-slide,
    .detail-inner,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        gap: 28px;
    }

    .hero-poster,
    .detail-poster {
        max-width: 340px;
    }

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

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

@media (max-width: 820px) {
    .header-inner {
        height: 66px;
    }

    .site-nav {
        position: fixed;
        top: 66px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(51, 65, 85, 0.9);
    }

    .site-nav.open {
        display: flex;
    }

    .nav-link {
        padding: 13px 14px;
        border-radius: 12px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(30, 41, 59, 0.9);
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero {
        min-height: auto;
        padding-top: 88px;
    }

    .hero-track {
        min-height: 720px;
    }

    .hero-slide {
        padding: 28px;
    }

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

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

    .hero-controls {
        bottom: 18px;
    }

    .section,
    .page-section {
        padding: 42px 0;
    }

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

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

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

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

    .rank-meta {
        display: none;
    }
}

@media (max-width: 560px) {
    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text {
        font-size: 19px;
    }

    .hero-track {
        width: calc(100% - 20px);
        border-radius: 22px;
    }

    .hero-slide {
        padding: 22px;
    }

    .hero-poster,
    .detail-poster {
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

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

    .rank-info p,
    .card-body p {
        -webkit-line-clamp: 1;
        min-height: auto;
    }

    .article-card,
    .side-card {
        padding: 20px;
    }
}
