
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(31, 41, 51, 0.95);
    border-bottom: 1px solid #323f4b;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #9333ea, #6b21a8);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    margin-top: 3px;
    color: #9aa5b1;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
}

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

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
}

.header-search {
    display: flex;
    align-items: center;
    width: 300px;
    border: 1px solid #3e4c59;
    border-radius: 14px;
    overflow: hidden;
    background: #323f4b;
}

.header-search input,
.mobile-search input,
.search-panel input,
.search-panel select {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.header-search input {
    flex: 1;
    padding: 10px 12px;
}

.header-search button,
.mobile-search button,
.search-panel button {
    border: 0;
    color: #ffffff;
    background: #9333ea;
    padding: 10px 14px;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-panel button:hover {
    background: #7e22ce;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #323f4b;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    background: rgba(31, 41, 51, 0.98);
    border-bottom: 1px solid #323f4b;
}

.mobile-panel.is-open {
    display: block;
    animation: fadeIn 0.25s ease;
}

.mobile-search {
    display: flex;
    border: 1px solid #3e4c59;
    border-radius: 14px;
    overflow: hidden;
    background: #323f4b;
}

.mobile-search input {
    flex: 1;
    padding: 11px 12px;
}

.mobile-nav {
    display: grid;
    gap: 8px;
    padding-top: 14px;
}

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    color: #cbd2d9;
    background: rgba(15, 20, 25, 0.28);
}

.mobile-link.is-active {
    color: #ffffff;
    background: rgba(147, 51, 234, 0.24);
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #0f1419;
}

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

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

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

.hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f1419 0%, rgba(15, 20, 25, 0.72) 48%, rgba(15, 20, 25, 0.12) 100%);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 0 72px;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tag,
.hero-kicker span,
.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 11px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    background: rgba(147, 51, 234, 0.82);
    backdrop-filter: blur(8px);
}

.hero h1,
.hero h2 {
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    margin: 18px 0 26px;
    color: #cbd2d9;
    font-size: 18px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 28px;
    color: #9aa5b1;
    font-weight: 600;
}

.hero-actions,
.section-head,
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

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

.btn {
    color: #ffffff;
    background: #9333ea;
    box-shadow: 0 0 18px rgba(147, 51, 234, 0.32);
}

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

.btn:hover {
    background: #7e22ce;
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid #3e4c59;
    background: rgba(31, 41, 51, 0.72);
}

.btn-ghost:hover {
    border-color: #9333ea;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(31, 41, 51, 0.8);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
}

.hero-control:hover {
    background: #9333ea;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 28px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: #52606d;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 44px;
    background: #a855f7;
}

.section {
    padding: 64px 0;
}

.section-muted {
    background: rgba(31, 41, 51, 0.5);
}

.section-head {
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title h1,
.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 900;
}

.section-title p,
.page-lead {
    margin: 8px 0 0;
    color: #9aa5b1;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #323f4b;
    border-radius: 20px;
    background: #1f2933;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.12);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(147, 51, 234, 0.7);
    box-shadow: 0 0 22px rgba(147, 51, 234, 0.26);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #323f4b;
}

.movie-card-large .card-cover {
    aspect-ratio: 16 / 10;
}

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

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

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(147, 51, 234, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #9333ea);
}

.card-body {
    padding: 16px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
    margin-bottom: 10px;
}

.card-body h2,
.card-body h3 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
}

.card-body h2 a,
.card-body h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    margin: 8px 0 0;
    color: #9aa5b1;
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    margin: 8px 0 0;
    color: #cbd2d9;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border: 1px solid #323f4b;
    border-radius: 22px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(147, 51, 234, 0.3), transparent 34%),
        #1f2933;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(147, 51, 234, 0.65);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 0 0 18px;
    color: #cbd2d9;
}

.category-card .mini-links {
    display: grid;
    gap: 8px;
}

.category-card .mini-links a {
    color: #d8b4fe;
    font-size: 14px;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: auto 64px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 86px;
    border: 1px solid #323f4b;
    border-radius: 18px;
    padding: 10px 14px;
    background: #1f2933;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    transform: translateX(4px);
    border-color: rgba(147, 51, 234, 0.65);
    background: #323f4b;
}

.compact-card img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    color: #ffffff;
    font-size: 15px;
}

.compact-card em {
    color: #9aa5b1;
    font-size: 12px;
    font-style: normal;
}

.compact-rank {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: rgba(147, 51, 234, 0.85);
}

.page-hero {
    padding: 58px 0 30px;
    background:
        radial-gradient(circle at 20% 10%, rgba(147, 51, 234, 0.28), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(65, 105, 179, 0.22), transparent 34%),
        #0f1419;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    color: #cbd2d9;
    font-size: 17px;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 160px 160px 160px auto;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #323f4b;
    border-radius: 22px;
    background: rgba(31, 41, 51, 0.74);
}

.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid #3e4c59;
    border-radius: 14px;
    padding: 11px 12px;
    background: #323f4b;
}

.search-panel button {
    border-radius: 14px;
}

.no-results {
    display: none;
    padding: 48px 20px;
    color: #9aa5b1;
    text-align: center;
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #9aa5b1;
    font-size: 14px;
}

.breadcrumbs a {
    color: #d8b4fe;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
    padding: 42px 0 64px;
}

.detail-main,
.detail-side,
.info-card {
    border: 1px solid #323f4b;
    border-radius: 24px;
    background: #1f2933;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.detail-main {
    overflow: hidden;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.38);
}

.player-cover.is-hidden {
    display: none;
}

.player-cover span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    font-size: 32px;
    background: rgba(147, 51, 234, 0.9);
    box-shadow: 0 0 28px rgba(147, 51, 234, 0.45);
}

.detail-content {
    padding: 26px;
}

.detail-content h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.1;
    font-weight: 950;
}

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

.detail-content section {
    margin-top: 28px;
}

.detail-content h2,
.detail-side h2,
.info-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 900;
}

.detail-content p {
    margin: 0;
    color: #cbd2d9;
    font-size: 16px;
}

.detail-side {
    padding: 18px;
}

.poster-card {
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #323f4b;
}

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

.meta-list {
    display: grid;
    gap: 12px;
    color: #cbd2d9;
}

.meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #323f4b;
    padding-bottom: 10px;
}

.meta-list dt {
    color: #9aa5b1;
}

.meta-list dd {
    margin: 0;
    text-align: right;
}

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

.site-footer {
    border-top: 1px solid #323f4b;
    background: #0f1419;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.2fr;
    gap: 36px;
    padding: 46px 0;
}

.footer-brand p,
.footer-links a {
    color: #9aa5b1;
}

.footer-brand p {
    max-width: 440px;
}

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

.footer-links h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

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

.footer-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-cats h2 {
    grid-column: 1 / -1;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #1f2933;
    padding: 18px;
    color: #7b8794;
    font-size: 13px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .header-search {
        margin-left: auto;
    }

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

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

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

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

@media (max-width: 820px) {
    .nav-shell {
        min-height: 66px;
    }

    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

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

    .hero {
        height: 540px;
    }

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

    .hero-control {
        display: none;
    }

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

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

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

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

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

    .brand-subtitle {
        display: none;
    }

    .hero {
        height: 500px;
    }

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

    .grid-cards,
    .grid-cards-six,
    .related-grid,
    .category-grid {
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h2,
    .card-body h3 {
        font-size: 15px;
    }

    .card-desc {
        display: none;
    }

    .section {
        padding: 44px 0;
    }

    .detail-content {
        padding: 20px;
    }

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