:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --cyan-500: #06b6d4;
    --blue-600: #2563eb;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50), var(--white));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--teal-600), var(--cyan-500), var(--blue-600));
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateZ(0);
}

.brand-title {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    margin-top: 1px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 650;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input {
    width: 240px;
    border: 0;
    outline: none;
    border-radius: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.22);
    padding: 10px 14px;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.top-search button,
.mobile-search button {
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    color: var(--teal-700);
    background: var(--white);
    cursor: pointer;
    font-weight: 700;
}

.menu-button {
    display: none;
    border: 0;
    border-radius: 14px;
    padding: 10px 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 118, 110, 0.98);
    padding: 16px;
}

.mobile-panel.open {
    display: block;
}

.mobile-search input {
    width: 100%;
}

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

.hero-section {
    padding: 28px 16px 56px;
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.09), transparent 65%);
}

.hero-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    position: relative;
    min-height: 520px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--slate-900);
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
}

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.46), rgba(15, 23, 42, 0.12)), linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 54%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(680px, calc(100% - 48px));
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 54px;
    color: var(--white);
}

.hero-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: 7px 14px;
    background: var(--teal-500);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.hero-content .hero-movie-title {
    margin-top: 12px;
    color: #99f6e4;
    font-size: clamp(24px, 3vw, 36px);
}

.hero-content p {
    max-width: 620px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.78;
}

.hero-tags,
.detail-meta,
.meta-row,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.meta-row span,
.card-meta span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 11px;
    font-size: 13px;
}

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.28);
}

.primary-button.full {
    width: 100%;
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

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

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 54px;
    bottom: 28px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.hero-dot.active {
    width: 30px;
    background: var(--white);
}

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

.tinted-section,
.warm-section,
.category-section {
    border-radius: 30px;
    padding: 34px;
}

.tinted-section {
    background: linear-gradient(135deg, #ecfeff, var(--teal-50));
}

.warm-section {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

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

.section-heading h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--slate-500);
    line-height: 1.7;
}

.section-link {
    color: var(--teal-700);
    background: var(--teal-50);
    white-space: nowrap;
}

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

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

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

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

.grid-card,
.horizontal-card,
.category-tile,
.category-overview-card,
.detail-card,
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    overflow: hidden;
}

.grid-card,
.horizontal-card,
.square-card,
.category-tile,
.category-overview-card,
.side-related {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.grid-card:hover,
.horizontal-card:hover,
.square-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.side-related:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.poster-link,
.horizontal-cover,
.square-card a,
.category-poster-stack {
    position: relative;
    display: block;
    overflow: hidden;
}

.poster-link {
    aspect-ratio: 16 / 9;
}

.poster-link img,
.horizontal-cover img,
.square-card img,
.category-poster-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.grid-card:hover img,
.horizontal-card:hover img,
.square-card:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 34px;
    background: rgba(2, 6, 23, 0.28);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.grid-card:hover .play-hover {
    opacity: 1;
}

.duration-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    border-radius: 9px;
    padding: 5px 8px;
    color: var(--white);
    background: rgba(2, 6, 23, 0.76);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

.card-body h2,
.horizontal-body h2,
.category-overview-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.card-body h2 a:hover,
.horizontal-body h2 a:hover,
.category-overview-card h2 a:hover {
    color: var(--teal-700);
}

.card-body p,
.horizontal-body p,
.category-overview-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 10px 0 14px;
    color: var(--slate-500);
    line-height: 1.65;
    font-size: 14px;
}

.card-meta span {
    color: var(--teal-700);
    background: var(--teal-50);
}

.horizontal-list,
.ranking-list {
    display: grid;
    gap: 18px;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    align-items: stretch;
}

.horizontal-cover {
    min-height: 142px;
}

.horizontal-body {
    padding: 20px;
}

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

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    font-size: 20px;
    font-weight: 900;
}

.meta-row span {
    color: var(--slate-500);
    background: var(--slate-100);
}

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

.square-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
}

.square-card a {
    aspect-ratio: 1 / 1;
}

.square-card span {
    position: absolute;
    inset: auto 0 0;
    padding: 34px 12px 12px;
    color: var(--white);
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
    font-weight: 800;
    line-height: 1.35;
}

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

.category-tile a {
    display: block;
    min-height: 188px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(6, 182, 212, 0.12));
}

.category-tile span {
    display: block;
    color: var(--slate-900);
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 10px 0 18px;
    color: var(--slate-500);
    line-height: 1.7;
}

.category-tile div,
.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tile div a,
.mini-links a {
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--teal-700);
    background: var(--white);
    font-size: 13px;
    font-weight: 700;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 46px;
    border-radius: 30px;
    padding: 46px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-500), var(--blue-600));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 900;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--teal-100);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    padding: 18px;
}

.category-poster-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    border-radius: 18px;
    height: 190px;
}

.filter-panel {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    background: var(--white);
}

.filter-panel select {
    max-width: 180px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.chip-row button {
    border: 0;
    border-radius: 999px;
    color: var(--teal-700);
    background: var(--teal-50);
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
}

.empty-state {
    display: none;
    margin: 30px 0;
    border-radius: 24px;
    padding: 34px;
    text-align: center;
    color: var(--slate-500);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

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

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
}

.detail-main .breadcrumb {
    color: var(--slate-500);
}

.detail-main .breadcrumb a:hover {
    color: var(--teal-700);
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    padding: 26px;
    text-align: center;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.player-play {
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    font-size: 34px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.player-overlay strong {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(24px, 4vw, 40px);
}

.player-overlay span {
    display: block;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
}

.detail-card {
    margin-top: 22px;
    padding: 28px;
}

.detail-card h1 {
    margin: 18px 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 900;
}

.detail-card h2,
.sidebar-card h2 {
    margin: 26px 0 12px;
    font-size: 22px;
    font-weight: 900;
}

.detail-card p {
    color: var(--slate-700);
    line-height: 1.88;
    font-size: 16px;
}

.lead-text {
    color: var(--slate-900) !important;
    font-weight: 750;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.tag-row a {
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--teal-700);
    background: var(--teal-50);
    font-size: 13px;
    font-weight: 750;
}

.detail-meta {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--slate-200);
}

.detail-meta span {
    color: var(--slate-500);
    background: var(--slate-100);
}

.review-box {
    border-radius: 20px;
    padding: 22px;
    background: linear-gradient(135deg, var(--teal-50), #ecfeff);
}

.detail-sidebar {
    display: grid;
    align-content: start;
    gap: 22px;
}

.sidebar-card {
    padding: 20px;
}

.cover-info img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.cover-info p {
    color: var(--slate-500);
    line-height: 1.7;
}

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

.side-related {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 8px;
    background: var(--slate-50);
}

.side-related img {
    width: 92px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.side-related span {
    font-weight: 800;
    line-height: 1.42;
}

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

.site-footer {
    margin-top: 70px;
    color: #d1d5db;
    background: linear-gradient(135deg, #0f172a, #134e4a, #0f172a);
}

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

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

.footer-shell p {
    max-width: 460px;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-shell h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

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

    .menu-button {
        display: inline-flex;
    }

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

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

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

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

@media (max-width: 760px) {
    .nav-shell {
        width: min(100% - 24px, 1180px);
        min-height: 68px;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-section {
        padding: 16px 12px 40px;
    }

    .hero-shell {
        min-height: 620px;
        border-radius: 24px;
    }

    .hero-content {
        width: 100%;
        min-height: 620px;
        padding: 34px 24px 74px;
    }

    .hero-gradient {
        background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.22));
    }

    .hero-dots {
        left: 24px;
        bottom: 24px;
    }

    .content-section {
        width: min(100% - 24px, 1180px);
        margin-bottom: 44px;
    }

    .tinted-section,
    .warm-section,
    .category-section,
    .page-hero {
        padding: 24px;
        border-radius: 24px;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        margin-top: 14px;
    }

    .featured-grid,
    .four-grid,
    .three-grid,
    .two-column,
    .category-grid,
    .square-grid,
    .category-overview-grid,
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

    .horizontal-card,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

    .filter-panel {
        display: grid;
    }

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

    .detail-layout {
        width: min(100% - 24px, 1180px);
        margin-top: 18px;
    }

    .detail-card {
        padding: 22px;
    }

    .footer-shell {
        grid-template-columns: 1fr;
        width: min(100% - 24px, 1180px);
    }
}
