:root {
    --teal-900: #064e3b;
    --teal-800: #115e59;
    --teal-700: #0f766e;
    --teal-600: #0d9488;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --neutral-50: #fafafa;
    --neutral-100: #f4f4f5;
    --neutral-200: #e4e4e7;
    --neutral-300: #d4d4d8;
    --neutral-500: #71717a;
    --neutral-600: #52525b;
    --neutral-700: #3f3f46;
    --neutral-800: #27272a;
    --neutral-900: #18181b;
    --white: #ffffff;
    --shadow-soft: 0 12px 35px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 18px 45px rgba(15, 118, 110, 0.14);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--neutral-50);
    color: var(--neutral-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.65;
}

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(212, 212, 216, 0.8);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 22px;
}

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

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    font-weight: 800;
    background: linear-gradient(135deg, var(--teal-700), var(--cyan-500));
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.28);
}

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

.brand-text strong {
    color: var(--teal-800);
    font-size: 1.18rem;
}

.brand-text em {
    color: var(--neutral-500);
    font-size: 0.78rem;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--neutral-700);
    font-weight: 600;
    white-space: nowrap;
}

.desktop-nav a {
    position: relative;
    padding: 24px 0;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--teal-700);
    transform: scaleX(0);
    transition: transform 0.22s ease;
}

.desktop-nav a:hover {
    color: var(--teal-700);
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    width: min(340px, 100%);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
}

.nav-search input,
.mobile-search input,
.page-tools input {
    width: 100%;
    min-width: 0;
    padding: 10px 13px;
    color: var(--neutral-800);
    background: transparent;
    border: 0;
    outline: 0;
}

.nav-search button,
.mobile-search button {
    padding: 10px 16px;
    color: var(--white);
    cursor: pointer;
    background: var(--teal-700);
    border: 0;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    cursor: pointer;
    background: var(--neutral-100);
    border: 0;
    border-radius: 12px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--neutral-800);
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--neutral-200);
}

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.mobile-panel nav a {
    padding: 10px 12px;
    background: var(--neutral-100);
    border-radius: 10px;
}

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(8, 145, 178, 0.18), transparent 32%), linear-gradient(135deg, #ecfeff, #f8fafc 42%, #ffffff);
}

.hero-viewport {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: center;
    padding: 74px max(32px, calc((100vw - 1280px) / 2 + 32px)) 120px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0;
    pointer-events: none;
    transform: translateX(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.72), rgba(15, 118, 110, 0.42) 52%, rgba(255, 255, 255, 0.08));
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-copy,
.hero-card {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--teal-700);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
    color: #a7f3d0;
}

.hero-copy h1,
.detail-title-block h1,
.page-hero h1 {
    max-width: 780px;
    margin: 0 0 18px;
    color: var(--white);
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-copy p,
.detail-title-block p,
.page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.02rem, 2vw, 1.28rem);
}

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

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

.hero-tags span,
.hero-tags a,
.tag-row span,
.detail-title-block .hero-tags a {
    padding: 6px 10px;
    color: var(--teal-800);
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(240, 253, 250, 0.92);
    border-radius: 999px;
}

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

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    font-weight: 800;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-700), var(--cyan-600));
    box-shadow: 0 12px 25px rgba(13, 148, 136, 0.24);
}

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

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.full-button {
    width: 100%;
}

.hero-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.hero-poster {
    display: block;
    min-height: 420px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.hero-card-title {
    padding: 18px 20px 2px;
    font-size: 1.25rem;
    font-weight: 800;
}

.hero-card-meta {
    padding: 0 20px 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.hero-controls {
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hero-controls button {
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    color: var(--white);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dots .hero-dot {
    min-width: 10px;
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
}

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

.hero-category-bar {
    position: absolute;
    right: max(32px, calc((100vw - 1280px) / 2 + 32px));
    bottom: 94px;
    left: max(32px, calc((100vw - 1280px) / 2 + 32px));
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-category-bar span,
.hero-category-bar a {
    padding: 9px 13px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.section {
    padding: 72px 0;
}

.tinted {
    background: linear-gradient(180deg, #ffffff, #ecfeff 58%, #f8fafc);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;
    color: var(--neutral-900);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 12px 0 0;
    color: var(--neutral-600);
}

.with-link {
    display: flex;
    max-width: none;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.with-link > a {
    flex: none;
    color: var(--teal-700);
    font-weight: 800;
}

.compact-heading h2 {
    font-size: 1.45rem;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

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

.small-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.movie-card,
.rank-card,
.content-card,
.ranking-aside,
.category-card {
    background: var(--white);
    border: 1px solid rgba(212, 212, 216, 0.7);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
}

.poster {
    position: relative;
    display: block;
    min-height: 295px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.compact-card .poster {
    min-height: 238px;
}

.poster::after,
.rank-poster::after,
.strip-poster::after,
.poster-large::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(6, 78, 59, 0.58));
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 800;
    background: rgba(15, 118, 110, 0.86);
    border-radius: 999px;
}

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: var(--teal-700);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--neutral-500);
    font-size: 0.83rem;
}

.movie-meta-line span {
    display: inline-flex;
    align-items: center;
}

.movie-meta-line span + span::before {
    width: 4px;
    height: 4px;
    margin-right: 8px;
    content: "";
    background: var(--neutral-300);
    border-radius: 99px;
}

.movie-card h2,
.rank-card h2 {
    margin: 8px 0;
    color: var(--neutral-900);
    font-size: 1.05rem;
    line-height: 1.32;
}

.movie-card h2 a:hover,
.rank-card h2 a:hover {
    color: var(--teal-700);
}

.movie-card p,
.rank-card p,
.content-card p,
.side-card p {
    margin: 0;
    color: var(--neutral-600);
    font-size: 0.92rem;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    color: var(--teal-700);
    background: #ecfeff;
}

.ranking-aside {
    position: sticky;
    top: 96px;
    padding: 22px;
}

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

.strip-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: var(--neutral-50);
    border-radius: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.strip-card:hover {
    background: #ecfeff;
    transform: translateX(4px);
}

.strip-poster {
    position: relative;
    flex: 0 0 74px;
    width: 74px;
    height: 54px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
}

.strip-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.strip-copy strong {
    overflow: hidden;
    color: var(--neutral-900);
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.strip-copy em {
    color: var(--neutral-500);
    font-size: 0.78rem;
    font-style: normal;
}

.home-category-block + .home-category-block {
    margin-top: 52px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.category-card {
    display: flex;
    min-height: 240px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    overflow: hidden;
    color: var(--white);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    box-shadow: 0 28px 58px rgba(13, 148, 136, 0.22);
    transform: translateY(-4px);
}

.category-card span {
    width: max-content;
    padding: 4px 8px;
    font-size: 0.76rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.category-card strong {
    margin-top: 10px;
    font-size: 1.8rem;
    line-height: 1;
}

.category-card em {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    background: linear-gradient(135deg, var(--teal-800), var(--cyan-600));
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.page-hero::before,
.detail-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.72), rgba(15, 118, 110, 0.44));
}

.page-hero .container,
.detail-hero .container {
    position: relative;
    z-index: 1;
}

.compact-hero {
    padding: 74px 0;
}

.compact-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

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

.page-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.page-tools input {
    max-width: 420px;
    color: var(--neutral-900);
    background: var(--white);
    border-radius: 12px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 60px 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--teal-700), var(--cyan-500));
    border-radius: 15px;
}

.rank-poster {
    position: relative;
    display: block;
    height: 74px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 12px;
}

.detail-hero {
    padding: 88px 0 130px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 32px;
    align-items: start;
}

.detail-section {
    padding-top: 0;
}

.detail-main,
.detail-aside {
    display: grid;
    gap: 24px;
}

.player-card {
    position: relative;
    margin-top: -76px;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 26px 68px rgba(2, 6, 23, 0.28);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at 30% 20%, rgba(13, 148, 136, 0.3), transparent 35%), #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    gap: 10px;
    place-items: center;
    align-content: center;
    color: var(--white);
    cursor: pointer;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.42), rgba(2, 6, 23, 0.28));
    border: 0;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay.hidden {
    visibility: hidden;
    opacity: 0;
}

.player-overlay span {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    color: var(--teal-700);
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
    font-size: 1.05rem;
}

.content-card {
    padding: 24px;
}

.content-card h2 {
    margin: 0 0 12px;
    color: var(--neutral-900);
    font-size: 1.38rem;
}

.content-card h2 + p {
    margin-bottom: 20px;
}

.meta-table {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
}

.meta-table div {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--neutral-200);
}

.meta-table dt {
    color: var(--neutral-500);
    font-weight: 800;
}

.meta-table dd {
    margin: 0;
    color: var(--neutral-800);
}

.poster-large {
    position: relative;
    min-height: 490px;
    margin-top: -76px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 26px 68px rgba(2, 6, 23, 0.22);
}

.poster-large span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 2;
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 900;
}

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

.tight-list {
    gap: 9px;
}

.site-footer {
    color: var(--neutral-700);
    background: var(--white);
    border-top: 1px solid var(--neutral-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.site-footer a:not(.brand) {
    display: block;
    margin: 8px 0;
    color: var(--neutral-600);
}

.site-footer a:not(.brand):hover {
    color: var(--teal-700);
}

.footer-bottom {
    padding: 18px 0;
    color: var(--neutral-500);
    text-align: center;
    border-top: 1px solid var(--neutral-100);
}

[data-movie-card].hidden {
    display: none;
}

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

    .menu-button {
        display: block;
    }

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

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

    .ranking-aside,
    .poster-large {
        position: static;
        margin-top: 0;
    }
}

@media (max-width: 820px) {
    .header-inner {
        min-height: 64px;
    }

    .brand-text em,
    .nav-search {
        display: none;
    }

    .hero-viewport {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 52px 20px 150px;
    }

    .hero-slide::before {
        background: linear-gradient(180deg, rgba(2, 6, 23, 0.76), rgba(15, 118, 110, 0.52));
    }

    .hero-poster {
        min-height: 270px;
    }

    .hero-category-bar {
        right: 20px;
        bottom: 86px;
        left: 20px;
    }

    .section {
        padding: 52px 0;
    }

    .with-link,
    .rank-card {
        display: block;
    }

    .with-link > a {
        display: inline-flex;
        margin-top: 12px;
    }

    .rank-card > * + * {
        margin-top: 12px;
    }

    .rank-poster {
        height: 160px;
    }

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

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

    .movie-grid,
    .small-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .detail-hero {
        padding: 58px 0;
    }

    .detail-hero {
        padding-bottom: 96px;
    }

    .page-tools {
        display: grid;
    }

    .page-tools input {
        max-width: none;
    }
}
