:root {
    --brand: #0d9488;
    --brand-2: #0891b2;
    --brand-3: #2563eb;
    --ink: #1f2937;
    --muted: #64748b;
    --soft: #f8fafc;
    --panel: rgba(255, 255, 255, 0.82);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    width: 100%;
    object-fit: cover;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #ffffff;
    background: linear-gradient(90deg, #0f766e, #0891b2, #2563eb);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

.site-header-inner {
    width: min(1200px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.site-logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #0f766e;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.site-nav a,
.mobile-panel a {
    font-weight: 650;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.mobile-panel a:hover {
    color: #ccfbf1;
    transform: translateY(-1px);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.header-search input,
.mobile-search input {
    width: 160px;
    color: #ffffff;
    background: transparent;
    outline: none;
}

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

.header-search button,
.mobile-search button {
    padding: 7px 14px;
    border-radius: 999px;
    color: #0f766e;
    font-weight: 800;
    background: #ffffff;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

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

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(90deg, #14b8a6, #06b6d4, #2563eb);
}

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

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

.hero-background,
.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.hero-background::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 150px;
    background: linear-gradient(0deg, #f8fafc, rgba(248, 250, 252, 0));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 360px;
    gap: 48px;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-heading h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.055em;
    text-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.hero-copy p,
.page-hero p,
.detail-heading p {
    max-width: 760px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.75;
}

.hero-tags,
.hero-actions,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-tags a,
.detail-tags a,
.filter-links a,
.category-banner a {
    padding: 9px 15px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(6px);
    font-weight: 700;
}

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #0f766e;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

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

.hero-poster {
    position: relative;
    height: 470px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

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

.hero-poster img {
    height: 100%;
}

.hero-poster span,
.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    color: #0f766e;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
    font-size: 26px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.26);
    backdrop-filter: blur(8px);
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-arrow-left {
    left: 28px;
}

.hero-arrow-right {
    right: 28px;
}

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

.content-section {
    padding: 64px 0;
}

.soft-panel {
    margin-top: 18px;
    padding: 38px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

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

.section-heading span {
    color: var(--brand);
    font-weight: 850;
}

.section-heading h2 {
    margin-top: 6px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-more {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--brand-3));
}

.section-intro {
    max-width: 760px;
    margin: -10px 0 28px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

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

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

.movie-card {
    display: flex;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.card-cover {
    position: relative;
    display: block;
    height: 310px;
    overflow: hidden;
    background: #0f172a;
}

.movie-card-large .card-cover {
    height: 410px;
}

.card-cover img {
    height: 100%;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .card-cover img {
    transform: scale(1.06);
    filter: saturate(1.12);
}

.card-gradient {
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0));
}

.card-play {
    width: 56px;
    height: 56px;
    opacity: 0;
    font-size: 18px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.card-meta {
    color: var(--brand);
    font-size: 13px;
    font-weight: 850;
}

.card-title {
    color: #111827;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.35;
}

.card-desc {
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
}

.category-banner {
    padding: clamp(34px, 6vw, 64px);
    border-radius: 34px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(90deg, #0d9488, #2563eb);
    box-shadow: var(--shadow);
}

.category-banner h2 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: -0.045em;
}

.category-banner p {
    max-width: 760px;
    margin: 16px auto 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.category-banner div,
.filter-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(90deg, #0d9488, #0891b2, #2563eb);
}

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

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

.breadcrumb a:hover {
    color: #ffffff;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    padding: 20px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.category-cover {
    height: 250px;
    overflow: hidden;
    border-radius: 20px;
}

.category-cover img {
    height: 100%;
}

.category-overview-card span {
    color: var(--brand);
    font-weight: 850;
}

.category-overview-card h2 {
    margin: 8px 0 12px;
    color: #111827;
    font-size: 26px;
    font-weight: 900;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.8;
}

.mini-links {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.mini-links a {
    color: #0f766e;
    font-weight: 700;
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #0f172a;
    font-weight: 800;
}

.filter-panel input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    color: #111827;
    background: #f8fafc;
    outline: none;
}

.filter-panel input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chips button {
    padding: 9px 14px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-weight: 850;
}

.filter-chips button.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, #0d9488, #2563eb);
}

.empty-state {
    padding: 40px;
    border-radius: 24px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    font-weight: 750;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 86px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.rank-row img {
    height: 116px;
    border-radius: 14px;
}

.rank-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
}

.rank-row strong,
.rank-row em,
.rank-row small {
    display: block;
}

.rank-row strong {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.rank-row em {
    margin-top: 6px;
    color: #0f766e;
    font-style: normal;
    font-weight: 750;
}

.rank-row small {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.6;
}

.detail-hero {
    min-height: 620px;
}

.detail-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.08));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 70px;
}

.detail-heading {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-heading img {
    height: 500px;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    padding: 54px 0 72px;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
    align-content: start;
}

.player-section,
.detail-card,
.side-card {
    padding: 24px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.09);
}

.player-section h2,
.detail-card h2,
.side-card h2 {
    margin-bottom: 18px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.detail-card p {
    color: #475569;
    font-size: 17px;
    line-height: 2;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #000000;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    background: rgba(0, 0, 0, 0.38);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0f766e;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    font-size: 34px;
}

.video-player.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.side-card dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px 16px;
}

.side-card dt {
    color: #94a3b8;
    font-weight: 850;
}

.side-card dd {
    color: #0f172a;
    font-weight: 750;
}

.compact .rank-row {
    grid-template-columns: 70px minmax(0, 1fr);
}

.compact .rank-row .rank-number {
    display: none;
}

.compact .rank-row img {
    height: 92px;
}

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

.site-footer {
    color: #ffffff;
    background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 36px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 38px;
}

.footer-logo {
    margin-bottom: 12px;
}

.site-footer p {
    max-width: 460px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.85;
}

.site-footer h2 {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 900;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
}

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .hero-content,
    .detail-heading,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

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

    .site-logo {
        font-size: 21px;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-content {
        align-items: end;
        padding-bottom: 96px;
    }

    .hero-arrow {
        display: none;
    }

    .content-section {
        padding: 42px 0;
    }

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

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

    .card-cover,
    .movie-card-large .card-cover {
        height: 255px;
    }

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

    .category-cover {
        height: 320px;
    }

    .rank-row {
        grid-template-columns: 44px 70px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-row img {
        height: 92px;
    }

    .detail-heading img {
        height: 420px;
    }

    .player-section,
    .detail-card,
    .side-card,
    .soft-panel {
        padding: 18px;
        border-radius: 22px;
    }
}

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

    .card-cover,
    .movie-card-large .card-cover,
    .category-cover,
    .detail-heading img {
        height: 360px;
    }

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