:root {
    --site-bg: #f8fafc;
    --text-main: #111827;
    --text-soft: #4b5563;
    --text-muted: #6b7280;
    --line: #e5e7eb;
    --teal: #0d9488;
    --teal-deep: #0f766e;
    --cyan: #0891b2;
    --card: #ffffff;
    --dark: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text-main);
    background: var(--site-bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

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.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
}

.logo-text {
    font-size: 22px;
    background: linear-gradient(135deg, var(--teal-deep), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #374151;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--teal);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: #111827;
    font-size: 23px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    border-top: 1px solid var(--line);
}

.mobile-nav a {
    display: block;
    padding: 12px 4px;
    font-weight: 700;
    color: #374151;
}

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

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    color: #ffffff;
    background: linear-gradient(135deg, #134e4a, #164e63);
}

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

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

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

.hero-slide::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 70% 35%, rgba(20, 184, 166, 0.25), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58) 48%, rgba(15, 23, 42, 0.25));
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 560px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.hero-content {
    width: min(680px, 100%);
}

.hero-eyebrow,
.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 8px 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.86);
}

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

.hero-content p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.75;
}

.hero-facts,
.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.hero-facts span,
.detail-facts span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.btn-primary {
    color: #ffffff;
    background: var(--teal);
    box-shadow: 0 16px 35px rgba(13, 148, 136, 0.28);
}

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

.btn-secondary {
    color: #0f766e;
    background: #ccfbf1;
}

.btn-light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-controls {
    position: absolute;
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: 36px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-controls button {
    width: 44px;
    height: 44px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
}

.section {
    padding: 70px 0;
}

.section.alt {
    background: #ffffff;
}

.section.soft {
    background: linear-gradient(135deg, #f0fdfa, #ecfeff);
}

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

.section-title {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.18;
    font-weight: 900;
    color: var(--text-main);
}

.section-desc {
    max-width: 720px;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.more-link {
    flex: 0 0 auto;
    color: var(--teal-deep);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 184, 166, 0.42);
    box-shadow: var(--shadow);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #e5e7eb, #f8fafc);
}

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

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

.movie-play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #ffffff;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    font-size: 13px;
    font-weight: 900;
}

.movie-card-body {
    padding: 16px;
}

.movie-card h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card h3 a:hover {
    color: var(--teal);
}

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.movie-tags span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    color: #0f766e;
    border-radius: 999px;
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 164px;
    padding: 24px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.category-card::after {
    position: absolute;
    right: -38px;
    bottom: -42px;
    width: 130px;
    height: 130px;
    content: "";
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(8, 145, 178, 0.16));
}

.category-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    color: var(--text-soft);
    line-height: 1.7;
}

.category-card span {
    position: relative;
    z-index: 1;
    color: var(--teal-deep);
    font-weight: 800;
}

.page-hero {
    padding: 62px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 72% 20%, rgba(20, 184, 166, 0.32), transparent 30%),
        linear-gradient(135deg, #0f172a, #134e4a 60%, #164e63);
}

.page-hero h1 {
    max-width: 920px;
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: var(--text-main);
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
    outline: 3px solid rgba(20, 184, 166, 0.18);
    border-color: var(--teal);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 88px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.rank-num {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    font-weight: 950;
}

.rank-thumb {
    width: 88px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: #e5e7eb;
}

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

.rank-main h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
}

.rank-main p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.rank-meta {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--teal-deep);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.9fr);
    gap: 32px;
}

.detail-main,
.detail-side {
    min-width: 0;
}

.player-card,
.content-card,
.side-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-box video {
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.35), rgba(15, 23, 42, 0.72));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-layer.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding-left: 6px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.94);
    box-shadow: 0 20px 44px rgba(13, 148, 136, 0.38);
    font-size: 34px;
}

.detail-title-card {
    padding: 26px;
}

.detail-title-card h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 950;
}

.detail-title-card p {
    margin: 0 0 16px;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.8;
}

.detail-title-card .detail-facts span {
    color: #0f766e;
    background: #ccfbf1;
}

.content-card {
    margin-top: 22px;
    padding: 26px;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 950;
}

.content-card p {
    margin: 0 0 18px;
    color: #374151;
    line-height: 1.95;
    font-size: 17px;
}

.detail-side {
    position: relative;
}

.side-card {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 21px;
    font-weight: 950;
}

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

.side-movie {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: #e5e7eb;
}

.side-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.side-movie:hover .side-thumb-img {
    transform: scale(1.08);
}

.side-info strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-info em {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}

.related-section {
    margin-top: 36px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

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

.footer-logo {
    color: #ffffff;
    font-size: 20px;
}

.footer-brand p {
    max-width: 520px;
    margin: 18px 0 0;
    color: #9ca3af;
    line-height: 1.8;
}

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

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

.site-footer a:hover {
    color: #5eead4;
}

.footer-bottom {
    padding: 20px 16px;
    color: #6b7280;
    text-align: center;
    border-top: 1px solid #1f2937;
}

.empty-filter {
    display: none;
    padding: 34px;
    color: var(--text-muted);
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #ffffff;
}

.empty-filter.show {
    display: block;
}

@media (max-width: 1100px) {
    .movie-grid,
    .movie-grid.dense,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .side-card {
        position: static;
    }
}

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

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

    .hero-slider,
    .hero-inner {
        min-height: 620px;
    }

    .hero-inner {
        align-items: flex-end;
        padding: 80px 0 92px;
    }

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

    .hero-controls {
        left: 16px;
        right: auto;
    }

    .section-head {
        display: block;
    }

    .section-head .more-link {
        display: inline-flex;
        margin-top: 14px;
    }

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

    .rank-row {
        grid-template-columns: 48px 76px 1fr;
    }

    .rank-meta {
        grid-column: 2 / -1;
        white-space: normal;
    }

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

@media (max-width: 620px) {
    .header-inner,
    .main-shell,
    .section-wrap,
    .hero-inner,
    .footer-inner,
    .mobile-nav {
        width: min(100% - 24px, 1180px);
    }

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

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

    .section {
        padding: 48px 0;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-card p {
        font-size: 13px;
    }

    .category-card {
        min-height: 150px;
        padding: 18px;
    }

    .side-movie {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .detail-title-card,
    .content-card {
        padding: 20px;
    }
}
