:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --teal-700: #0f766e;
    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --teal-100: #ccfbf1;
    --cyan-500: #06b6d4;
    --orange-500: #f97316;
    --shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 14px 35px 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(135deg, var(--slate-50), #eef2ff 48%, #ecfeff);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(1280px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand span:last-child {
    background: linear-gradient(90deg, #2dd4bf, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.28);
}

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

.nav-menu a {
    padding: 10px 14px;
    color: #cbd5e1;
    border-radius: 12px;
    transition: 0.22s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    background: rgba(20, 184, 166, 0.88);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 300px;
}

.nav-search input,
.hero-search input,
.inline-search input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.28);
    outline: none;
    color: var(--white);
    background: rgba(15, 23, 42, 0.68);
    border-radius: 999px;
    padding: 11px 16px;
}

.nav-search input:focus,
.hero-search input:focus,
.inline-search input:focus {
    border-color: rgba(20, 184, 166, 0.85);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.nav-search button,
.hero-search button,
.inline-search button {
    border: 0;
    color: var(--white);
    background: var(--teal-600);
    border-radius: 999px;
    padding: 11px 18px;
    cursor: pointer;
    transition: 0.22s ease;
}

.nav-search button:hover,
.hero-search button:hover,
.inline-search button:hover {
    background: var(--teal-700);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: var(--white);
    background: rgba(51, 65, 85, 0.88);
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
    min-height: 650px;
    isolation: isolate;
}

.hero-slide.is-active {
    display: block;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 78% 22%, rgba(20, 184, 166, 0.32), transparent 36%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.68) 52%, rgba(2, 6, 23, 0.3)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.16) 42%, rgba(2, 6, 23, 0.68));
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: min(1280px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    padding: 110px 0 90px;
    color: var(--white);
}

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

.hero-meta span,
.detail-tags span,
.movie-tags span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: rgba(20, 184, 166, 0.92);
}

.hero-meta span + span {
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #e2e8f0;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.65;
}

.hero-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero-tags span,
.tag-cloud span {
    color: #d1fae5;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(45, 212, 191, 0.26);
}

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

.btn-primary,
.btn-ghost,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    transition: 0.22s ease;
}

.btn-primary {
    color: var(--white);
    background: var(--teal-500);
    box-shadow: 0 16px 34px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
    background: var(--teal-600);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.42);
}

.btn-ghost:hover {
    border-color: rgba(45, 212, 191, 0.68);
    background: rgba(15, 23, 42, 0.72);
}

.btn-ghost.dark {
    color: var(--slate-900);
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 0;
    color: var(--white);
    background: rgba(2, 6, 23, 0.56);
    border-radius: 999px;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: 0.22s ease;
}

.hero-arrow:hover {
    background: rgba(20, 184, 166, 0.86);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--teal-500);
}

.page-main {
    min-height: 70vh;
}

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

.first-section {
    margin-top: 64px;
}

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

.section-heading span {
    display: inline-flex;
    color: var(--teal-700);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-heading p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--slate-500);
    line-height: 1.8;
}

.section-link {
    color: var(--teal-700);
    background: var(--teal-100);
}

.section-link:hover {
    color: var(--white);
    background: var(--teal-600);
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    color: var(--slate-900);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.movie-card-large .movie-poster {
    aspect-ratio: 3 / 4;
}

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

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

.movie-poster::after {
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    content: "";
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.75), transparent);
}

.movie-category,
.movie-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.movie-category {
    top: 12px;
    left: 12px;
    color: var(--white);
    background: var(--teal-500);
    padding: 6px 10px;
}

.movie-year {
    top: 12px;
    right: 12px;
    color: var(--white);
    background: rgba(2, 6, 23, 0.72);
    padding: 6px 10px;
    backdrop-filter: blur(8px);
}

.rank-badge {
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), #ef4444);
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

.play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: var(--white);
    background: rgba(20, 184, 166, 0.9);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: 0.28s ease;
}

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

.movie-info {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
}

.movie-info strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card:hover .movie-info strong {
    color: var(--teal-700);
}

.movie-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    color: var(--slate-500);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    color: #64748b;
    font-size: 13px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 168px 1fr;
    min-height: 128px;
}

.movie-card-horizontal .movie-poster {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card-horizontal .movie-info {
    justify-content: center;
}

.movie-card-horizontal .movie-info strong {
    min-height: 0;
    -webkit-line-clamp: 1;
}

.movie-card-horizontal .movie-desc {
    min-height: 0;
}

.movie-tags span {
    color: var(--teal-700);
    background: var(--teal-100);
    padding: 5px 9px;
    font-size: 12px;
}

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

.category-tile,
.category-card {
    display: block;
    min-height: 160px;
    padding: 24px;
    color: var(--white);
    background:
        radial-gradient(circle at 82% 10%, rgba(34, 211, 238, 0.22), transparent 30%),
        linear-gradient(135deg, var(--slate-900), var(--slate-800));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
    transition: 0.25s ease;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-tile span,
.category-card-main span {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p,
.category-card-main p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.75;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.category-samples a {
    color: #a7f3d0;
    font-size: 14px;
}

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

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

.page-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 82% 15%, rgba(20, 184, 166, 0.28), transparent 34%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.small-hero,
.category-hero {
    min-height: 340px;
}

.page-hero-content {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 82px 0 70px;
}

.page-hero-content > span {
    display: inline-flex;
    color: #99f6e4;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.page-hero h1 {
    max-width: 820px;
    margin: 12px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.75;
}

.hero-search,
.inline-search {
    display: flex;
    gap: 10px;
    max-width: 580px;
    margin-top: 26px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto 20px;
    color: var(--slate-500);
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 36px;
    align-items: stretch;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 52px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    min-height: 480px;
    background: var(--slate-900);
    border-radius: 22px;
}

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

.detail-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-intro h1 {
    margin: 22px 0 16px;
    font-size: clamp(34px, 4.8vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-intro .lead {
    max-width: 760px;
    margin: 0 0 22px;
    color: var(--slate-500);
    font-size: 20px;
    line-height: 1.75;
}

.video-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(20, 184, 166, 0.24), rgba(2, 6, 23, 0.68));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto;
    background: var(--teal-500);
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(20, 184, 166, 0.38);
}

.play-overlay strong {
    font-size: 22px;
}

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

.article-card {
    padding: 34px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    box-shadow: var(--soft-shadow);
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.article-card h2:not(:first-child) {
    margin-top: 30px;
}

.article-card p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.95;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 13px 14px;
    background: var(--slate-50);
    border-radius: 14px;
}

.info-list dt {
    color: var(--slate-500);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: var(--slate-900);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 26px;
}

.filter-bar button {
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--slate-700);
    background: var(--white);
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    transition: 0.22s ease;
}

.filter-bar button:hover,
.filter-bar button.active {
    color: var(--white);
    border-color: var(--teal-600);
    background: var(--teal-600);
}

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 30px;
    color: var(--slate-500);
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
}

.empty-state.is-visible {
    display: block;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
    margin-top: 84px;
    padding: 54px 0 26px;
}

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

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

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

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

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 36px auto 0;
    padding-top: 24px;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 1100px) {
    .nav-shell {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-search {
        order: 3;
        flex: 1 0 100%;
    }

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

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

    .detail-hero {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        display: none;
        order: 4;
        flex: 1 0 100%;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 10px 0;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu a {
        padding: 12px 14px;
    }

    .hero,
    .hero-slide,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding: 84px 0 74px;
    }

    .hero-arrow {
        display: none;
    }

    .movie-grid,
    .compact-grid,
    .feature-grid,
    .category-grid,
    .category-card-grid,
    .rank-grid,
    .long-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .detail-poster {
        min-height: auto;
        aspect-ratio: 16 / 9;
    }

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

@media (max-width: 560px) {
    .nav-shell,
    .content-section,
    .page-hero-content,
    .breadcrumb,
    .detail-hero,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 22px, 1280px);
    }

    .brand {
        font-size: 18px;
    }

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

    .hero p,
    .page-hero p,
    .detail-intro .lead {
        font-size: 16px;
    }

    .movie-grid,
    .compact-grid,
    .feature-grid,
    .category-grid,
    .category-card-grid,
    .rank-grid,
    .long-rank-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 128px 1fr;
    }

    .movie-card-horizontal .movie-desc {
        display: none;
    }

    .detail-hero,
    .article-card {
        padding: 18px;
        border-radius: 20px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

    .hero-search,
    .inline-search {
        flex-direction: column;
    }
}
