:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-cyan: #06b6d4;
    --color-teal: #14b8a6;
    --color-text: #0f172a;
    --color-muted: #64748b;
    --color-soft: #f8fafc;
    --color-line: #e2e8f0;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-hover: 0 26px 60px rgba(37, 99, 235, 0.20);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
    width: 100%;
    height: auto;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand span:last-child {
    font-size: 21px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 600;
    color: #334155;
}

.nav-links a,
.mobile-menu a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.nav-cats {
    display: flex;
    gap: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--color-line);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 22px;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    border-top: 1px solid var(--color-line);
}

.mobile-menu.open {
    display: grid;
    gap: 8px;
}

.mobile-menu a {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-weight: 650;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, #2563eb 0%, #06b6d4 52%, #14b8a6 100%);
}

.hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.28), transparent 28%), radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.16), transparent 32%), rgba(2, 6, 23, 0.28);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
    background-size: 26px 26px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    align-content: center;
    padding: 56px 0 44px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.74fr);
    align-items: center;
    gap: 58px;
}

.hero-slide.active {
    display: grid;
    animation: fadeIn 0.45s ease both;
}

.hero-copy {
    display: grid;
    gap: 22px;
}

.eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: inherit;
    font-size: 13px;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.hero p {
    max-width: 690px;
    color: #e0f7ff;
    font-size: 20px;
    line-height: 1.8;
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.movie-meta span,
.tag-list a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
    color: inherit;
    font-size: 12px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--color-primary);
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
    background: #ecfeff;
}

.btn-ghost,
.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.btn-secondary {
    color: var(--color-primary);
    border-color: #bfdbfe;
    background: #eff6ff;
}

.hero-poster {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 36px 86px rgba(15, 23, 42, 0.38);
    transform: translateZ(0);
}

.hero-poster img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.82));
}

.hero-poster strong {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 2;
    font-size: 16px;
    line-height: 1.55;
}

.hero-play,
.play-mark {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
}

.hero-play {
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    font-size: 30px;
}

.hero-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
}

.hero-search,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(620px, 100%);
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 42px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 0 17px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.94);
}

.hero-search button {
    min-height: 42px;
    flex: 0 0 auto;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #0f172a;
    font-weight: 800;
}

.hero-dots {
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

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

.section {
    padding: 70px 0;
}

.alt-section {
    background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

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

.section-head > div {
    display: grid;
    gap: 8px;
}

.section-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 15px 34px rgba(249, 115, 22, 0.25);
}

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-head p {
    max-width: 720px;
    color: var(--color-muted);
    line-height: 1.8;
}

.section-link,
.text-link {
    color: var(--color-primary);
    font-weight: 800;
}

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

.compact-grid {
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.72);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: var(--shadow-hover);
}

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

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

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

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

.movie-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.62));
    opacity: 0;
    transition: opacity 0.24s ease;
}

.movie-card:hover .movie-cover::after {
    opacity: 1;
}

.card-badge,
.rank-no {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-size: 11px;
    font-weight: 900;
}

.rank-no {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, #0f172a, #2563eb);
}

.play-mark {
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.movie-info {
    display: grid;
    gap: 9px;
    padding: 15px;
}

.movie-info h3 {
    min-height: 44px;
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 850;
}

.movie-info h3 a:hover {
    color: var(--color-primary);
}

.movie-info p {
    min-height: 42px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.65;
}

.movie-meta {
    gap: 6px;
}

.movie-meta span {
    background: #eff6ff;
    color: var(--color-primary);
}

.category-sections {
    display: grid;
    gap: 60px;
}

.category-strip,
.rank-strip {
    padding-bottom: 8px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, #1d4ed8, #06b6d4 55%, #14b8a6);
}

.page-hero::after,
.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(2, 6, 23, 0.28);
}

.page-hero .container {
    position: relative;
    z-index: 1;
    padding: 86px 0;
    display: grid;
    gap: 18px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    letter-spacing: -0.045em;
}

.page-hero p {
    max-width: 760px;
    color: #e0f7ff;
    font-size: 19px;
    line-height: 1.8;
}

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

.topic-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.topic-cover {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 10;
}

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

.topic-cover span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.76);
    font-size: 12px;
    font-weight: 800;
}

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

.topic-card p {
    margin: 0 0 14px;
    color: var(--color-muted);
    line-height: 1.8;
}

.filter-bar {
    width: 100%;
    margin-bottom: 28px;
    border-color: rgba(37, 99, 235, 0.12);
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.filter-bar.wide {
    border-radius: 22px;
}

.filter-bar select {
    max-width: 180px;
    border: 1px solid var(--color-line);
}

.movie-card.is-hidden {
    display: none;
}

.detail-hero {
    min-height: 560px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px) saturate(1.2);
    transform: scale(1.08);
    opacity: 0.38;
}

.detail-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding: 78px 0;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.42);
}

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

.detail-copy {
    display: grid;
    gap: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #dff8ff;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.detail-copy p {
    max-width: 780px;
    color: #e0f7ff;
    font-size: 19px;
    line-height: 1.85;
}

.tag-list a {
    color: #fff;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 30px 78px rgba(15, 23, 42, 0.26);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.54));
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.95);
    font-size: 34px;
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.36);
    transition: transform 0.2s ease;
}

.play-overlay:hover span {
    transform: scale(1.08);
}

.play-overlay.is-hidden {
    display: none;
}

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

.content-card,
.simple-page {
    padding: 28px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.content-card h2,
.simple-page h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
}

.content-card p,
.simple-page p {
    color: #334155;
    line-height: 1.95;
    font-size: 16px;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
}

.prev-next a {
    flex: 1;
    padding: 16px 18px;
    border-radius: 16px;
    background: #eff6ff;
    color: var(--color-primary);
    font-weight: 800;
}

.prev-next a:last-child {
    text-align: right;
}

.simple-page {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.simple-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.site-footer {
    margin-top: 40px;
    color: #e2e8f0;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 850;
}

.footer-grid p,
.footer-grid a {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 14px;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-grid ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    color: #94a3b8;
    font-size: 14px;
}

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

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

    .topic-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .nav-cats {
        display: none;
    }
}

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

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

    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 52px 0 34px;
    }

    .hero-slide,
    .hero-slide.active,
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-poster {
        min-height: auto;
    }

    .hero-poster img {
        height: 310px;
    }

    .hero-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .detail-cover {
        max-width: 310px;
    }

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

@media (max-width: 620px) {
    .brand span:last-child {
        font-size: 17px;
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-info p {
        display: none;
    }

    .topic-card {
        grid-template-columns: 1fr;
    }

    .filter-bar,
    .filter-bar.wide,
    .hero-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
    }

    .filter-bar select {
        max-width: none;
    }

    .content-card,
    .simple-page {
        padding: 22px;
    }

    .prev-next,
    .footer-bottom {
        flex-direction: column;
    }

    .prev-next a:last-child {
        text-align: left;
    }

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