:root {
    --color-primary: #0f766e;
    --color-primary-dark: #115e59;
    --color-accent: #06b6d4;
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #171717;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 25px 70px rgba(15, 23, 42, 0.22);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 74px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--color-primary);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
}

.brand-text {
    font-size: 20px;
    letter-spacing: 0.04em;
}

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

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-search,
.mobile-search,
.inline-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.inline-filter input,
.inline-filter select {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
    width: 240px;
    padding: 10px 12px;
}

.inline-filter input,
.inline-filter select {
    padding: 12px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.inline-filter input:focus,
.inline-filter select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.10);
}

.header-search button,
.mobile-search button,
.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-search button,
.mobile-search button,
.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.header-search button,
.mobile-search button {
    padding: 10px 16px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    padding: 12px 18px;
}

.header-search button:hover,
.mobile-search button:hover,
.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ecfeff;
    color: var(--color-primary-dark);
}

.btn-secondary:hover {
    background: #cffafe;
    transform: translateY(-1px);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #111827;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
}

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

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

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 14px 0;
}

.mobile-nav a {
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
}

.mobile-search {
    padding-bottom: 16px;
}

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

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #08111f;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.1);
    transform: scale(1.04);
}

.hero-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.88), rgba(8, 47, 73, 0.62), rgba(15, 118, 110, 0.42));
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 15%, rgba(45, 212, 191, 0.35), transparent 36%), linear-gradient(to top, rgba(3, 7, 18, 0.88), transparent 55%);
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 390px;
    align-items: center;
    gap: 54px;
    min-height: 680px;
    padding: 78px 0 96px;
}

.hero-copy {
    max-width: 780px;
    color: #ffffff;
}

.hero-kicker,
.section-heading span,
.split-heading span,
.page-hero span,
.spotlight-inner span {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #67e8f9;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2.1vw, 22px);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
}

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 34px;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(15, 118, 110, 0.92);
    color: #ffffff;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 54px;
    background: #67e8f9;
}

.section {
    padding: 72px 0;
}

.section-light {
    background: #f4f7f8;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    margin-bottom: 30px;
}

.section-heading h2,
.split-heading h2,
.page-hero h1,
.spotlight-inner h2,
.article-content h2,
.watch-card h2,
.detail-info-card h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.section-heading p,
.spotlight-inner p,
.page-hero p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--color-muted);
}

.section-heading a {
    color: var(--color-primary);
    font-weight: 800;
}

.left-heading {
    display: block;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #0f172a, #0f766e);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.72), transparent 48%);
}

.movie-type,
.movie-year,
.rank-number {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.movie-type {
    left: 10px;
    top: 10px;
    background: rgba(15, 118, 110, 0.90);
}

.movie-year {
    right: 10px;
    top: 10px;
    background: rgba(17, 24, 39, 0.75);
}

.rank-number {
    left: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-info {
    padding: 14px;
}

.movie-title {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-info p {
    display: -webkit-box;
    min-height: 44px;
    margin: 8px 0 12px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.movie-meta span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.86), rgba(15, 118, 110, 0.32));
}

.category-card strong,
.category-card em {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
}

.category-card strong {
    bottom: 62px;
    font-size: 22px;
}

.category-card em {
    bottom: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    font-size: 13px;
}

.spotlight-band {
    padding: 54px 0;
    background: radial-gradient(circle at 20% 0%, rgba(103, 232, 249, 0.30), transparent 34%), linear-gradient(135deg, #0f766e, #083344);
    color: #ffffff;
}

.spotlight-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.spotlight-inner span,
.spotlight-inner h2,
.spotlight-inner p {
    color: #ffffff;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 78px;
    background: radial-gradient(circle at 80% 10%, rgba(103, 232, 249, 0.32), transparent 34%), linear-gradient(135deg, #0f766e, #083344);
    color: #ffffff;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -45% 40%;
    height: 280px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(-8deg);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero span,
.page-hero h1,
.page-hero p {
    color: #ffffff;
}

.page-hero h1 {
    max-width: 860px;
    font-size: clamp(40px, 6vw, 68px);
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
    background: #ecfeff;
}

.category-covers img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    object-fit: cover;
}

.category-overview-body {
    padding: 24px;
}

.category-overview-body span {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
}

.category-overview-body h2 {
    margin: 8px 0 10px;
    font-size: 26px;
    line-height: 1.2;
}

.category-overview-body p {
    margin: 0 0 18px;
    color: var(--color-muted);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: #030712;
    color: #ffffff;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(2px) saturate(1.05);
    transform: scale(1.03);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.68), rgba(15, 118, 110, 0.42));
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    min-height: 620px;
    padding: 70px 0;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.breadcrumb a:hover {
    color: #67e8f9;
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
}

.detail-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
}

.watch-card,
.detail-info-card,
.article-content {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.watch-card,
.detail-info-card {
    padding: 24px;
}

.watch-card h2,
.detail-info-card h2,
.article-content h2 {
    margin-bottom: 18px;
    font-size: 28px;
}

.video-panel {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #030712;
}

.video-panel video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-layer {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.20));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-panel.is-playing .play-layer {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: var(--color-primary);
    box-shadow: 0 16px 40px rgba(15, 118, 110, 0.38);
    font-size: 28px;
    text-indent: 4px;
}

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

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 12px;
}

.info-list span {
    color: var(--color-muted);
}

.info-list strong {
    text-align: right;
}

.article-content {
    padding: 34px;
}

.article-content p {
    margin: 0 0 26px;
    color: #374151;
    font-size: 17px;
}

.related-grid .compact-card .movie-info p {
    min-height: 0;
}

.site-footer {
    background: #0b1220;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding: 54px 0 36px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #67e8f9;
    font-size: 22px;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    color: #94a3b8;
}

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

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

.site-footer a:hover {
    color: #67e8f9;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 18px 0;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.hidden-by-filter {
    display: none !important;
}

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

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

    .header-search {
        display: none;
    }
}

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .hero,
    .hero-layout {
        min-height: 760px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 52px;
    }

    .hero-poster {
        max-width: 320px;
        min-height: 420px;
        transform: none;
    }

    .hero-poster img {
        min-height: 420px;
    }

    .detail-layout,
    .detail-main-grid,
    .footer-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(320px, 100%);
    }

    .split-heading,
    .section-heading,
    .spotlight-inner {
        display: block;
    }

    .inline-filter {
        margin-top: 18px;
        align-items: stretch;
    }
}

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

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

    .mobile-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        min-height: 720px;
    }

    .hero-layout {
        min-height: 720px;
        padding-bottom: 84px;
    }

    .hero-copy h1,
    .hero-copy h2,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .hero-poster {
        display: none;
    }

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

    .movie-info {
        padding: 12px;
    }

    .section {
        padding: 48px 0;
    }

    .page-hero {
        padding: 64px 0;
    }

    .detail-hero,
    .detail-layout {
        min-height: auto;
    }

    .detail-layout {
        padding: 48px 0;
    }

    .detail-poster {
        display: none;
    }

    .watch-card,
    .detail-info-card,
    .article-content {
        padding: 18px;
        border-radius: 18px;
    }

    .inline-filter {
        flex-direction: column;
    }

    .inline-filter input,
    .inline-filter select {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
}
