:root {
    --site-emerald: #059669;
    --site-teal: #0d9488;
    --site-cyan: #0891b2;
    --site-rose: #e11d48;
    --site-amber: #d97706;
    --site-blue: #2563eb;
    --site-slate: #0f172a;
    --site-muted: #64748b;
    --site-border: #e2e8f0;
    --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

body {
    color: #111827;
    background: #f8fafc;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    display: block;
}

.site-nav {
    backdrop-filter: blur(16px);
}

.brand-link,
.nav-link,
.mobile-nav-link,
.footer-link {
    text-decoration: none;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-emerald), var(--site-cyan));
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.28);
    font-size: 0.78rem;
}

.footer-brand {
    color: #ffffff;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 650;
    transition: color 0.2s ease;
}

.menu-toggle {
    color: #334155;
    font-size: 1.45rem;
    line-height: 1;
    background: transparent;
    cursor: pointer;
}

.mobile-menu {
    background: #ffffff;
    border-top: 1px solid var(--site-border);
    padding-bottom: 0.75rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-weight: 650;
}

.nav-search,
.page-search input,
.page-search-input {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search {
    width: 16rem;
    padding: 0.55rem 1rem 0.55rem 2.35rem;
    font-size: 0.9rem;
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 1;
}

.nav-search:focus,
.page-search input:focus,
.page-search-input:focus {
    border-color: var(--site-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.home-hero {
    min-height: 720px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 26rem),
        radial-gradient(circle at 82% 22%, rgba(34, 211, 238, 0.28), transparent 24rem),
        rgba(0, 0, 0, 0.08);
}

.hero-wrap {
    position: relative;
    padding-top: 4rem;
    padding-bottom: 5.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    margin-bottom: 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.hero-track {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: 3rem;
    align-items: center;
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: -4rem;
    background-image: linear-gradient(90deg, rgba(4, 120, 87, 0.88), rgba(8, 145, 178, 0.42)), var(--hero-img);
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.1);
    opacity: 0.32;
    z-index: -1;
}

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

.hero-content h1 {
    max-width: 780px;
    margin: 0 0 1rem;
    font-size: clamp(2.45rem, 5.4vw, 5.7rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.hero-content p {
    max-width: 720px;
    margin: 0;
    color: rgba(236, 253, 245, 0.94);
    font-size: clamp(1rem, 1.8vw, 1.28rem);
    line-height: 1.85;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    color: #ecfdf5;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.9rem;
    font-weight: 750;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-tags {
    margin-top: 1.4rem;
}

.hero-tags span,
.tag-pill,
.detail-tags span {
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 650;
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.hero-primary,
.hero-secondary,
.category-enter,
.ranking-head a,
.back-to-top,
.page-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-primary {
    padding: 0.9rem 1.35rem;
    color: #064e3b;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.hero-secondary {
    padding: 0.9rem 1.35rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-primary:hover,
.hero-secondary:hover,
.category-enter:hover,
.ranking-head a:hover,
.back-to-top:hover,
.page-search button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    min-height: 430px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.38);
    isolation: isolate;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent 58%);
}

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

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-control-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    font-size: 1.8rem;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
}

.hero-dot.is-active,
.hero-arrow:hover,
.hero-dot:hover {
    background: #ffffff;
    color: var(--site-emerald);
    transform: scale(1.08);
}

.featured-card {
    height: min(430px, 54vw);
    background: #0f172a;
}

.featured-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
}

.featured-copy {
    position: absolute;
    left: clamp(1.25rem, 4vw, 3rem);
    right: clamp(1.25rem, 4vw, 3rem);
    bottom: clamp(1.25rem, 4vw, 3rem);
    color: #ffffff;
}

.featured-copy span {
    display: inline-block;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    background: var(--site-emerald);
    font-size: 0.85rem;
    font-weight: 750;
    margin-bottom: 0.75rem;
}

.featured-copy h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 900;
}

.featured-copy p {
    max-width: 680px;
    color: #e2e8f0;
    line-height: 1.75;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-subtitle {
    margin: 0.35rem 0 0;
    color: var(--site-muted);
}

.title-line {
    flex: 1;
    height: 0.25rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--site-emerald), transparent);
}

.title-line-rose {
    background: linear-gradient(90deg, var(--site-rose), transparent);
}

.title-line-amber {
    background: linear-gradient(90deg, var(--site-amber), transparent);
}

.title-line-blue {
    background: linear-gradient(90deg, var(--site-blue), transparent);
}

.movie-grid {
    align-items: stretch;
}

.movie-card {
    height: 100%;
    text-decoration: none;
}

.card-cover {
    background: #0f172a;
}

.card-body {
    display: flex;
    min-height: 11rem;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1rem;
    line-height: 1.45;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 1rem;
    color: #64748b;
    font-size: 0.76rem;
}

.card-meta span {
    padding: 0.26rem 0.52rem;
    border-radius: 999px;
    background: #f1f5f9;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card {
    padding: 1.4rem;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: var(--site-shadow);
}

.category-card h3,
.category-overview-card h2 {
    margin: 0 0 0.55rem;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 850;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.category-card span,
.category-enter {
    margin-top: 1rem;
    color: var(--site-emerald);
    font-weight: 800;
}

.category-overview-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.category-overview-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 1rem 0;
}

.category-overview-links a {
    color: #334155;
    font-size: 0.9rem;
    text-decoration: none;
}

.category-overview-links a:hover {
    color: var(--site-emerald);
}

.category-enter {
    padding: 0.65rem 1rem;
    background: #ecfdf5;
}

.page-hero {
    position: relative;
    padding: 5rem 0 4.25rem;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #047857, #0d9488 52%, #0891b2);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 22rem),
        radial-gradient(circle at 84% 12%, rgba(125, 211, 252, 0.28), transparent 24rem);
}

.page-hero > div {
    position: relative;
}

.page-hero h1 {
    max-width: 820px;
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.page-hero p {
    max-width: 780px;
    color: #ecfdf5;
    font-size: 1.08rem;
    line-height: 1.8;
}

.page-search {
    display: flex;
    gap: 0.75rem;
    max-width: 720px;
    margin-top: 1.5rem;
}

.page-search input,
.page-search-input {
    width: 100%;
    padding: 0.9rem 1.15rem;
}

.page-search button {
    flex: 0 0 auto;
    padding: 0.9rem 1.35rem;
    color: #064e3b;
    background: #ffffff;
    border: 0;
    cursor: pointer;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--site-emerald);
    text-decoration: none;
}

.breadcrumb.light,
.breadcrumb.light a {
    color: #d1fae5;
}

.ranking-panel {
    overflow: hidden;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

.ranking-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #064e3b);
}

.ranking-head h2 {
    margin: 0 0 0.4rem;
    font-size: 1.75rem;
    font-weight: 900;
}

.ranking-head p {
    margin: 0;
    color: #cbd5e1;
}

.ranking-head a {
    flex: 0 0 auto;
    padding: 0.7rem 1rem;
    color: #064e3b;
    background: #ffffff;
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.compact-card {
    position: relative;
    display: flex;
    gap: 0.85rem;
    align-items: center;
    border-radius: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-2px);
    background: #ecfdf5;
}

.compact-card img {
    width: 7rem;
    height: 4.5rem;
    flex: 0 0 auto;
    border-radius: 0.75rem;
    object-fit: cover;
}

.compact-card h3 {
    margin: 0 0 0.3rem;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 800;
}

.compact-card p {
    margin: 0 0 0.35rem;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.45;
}

.compact-card span:not(.compact-rank) {
    color: #64748b;
    font-size: 0.76rem;
}

.compact-rank {
    position: absolute;
    left: 0.95rem;
    top: 0.95rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    font-size: 0.72rem;
}

.ranking-page-list {
    display: grid;
    gap: 0.85rem;
}

.ranking-row {
    display: grid;
    grid-template-columns: 4rem 9rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--site-border);
    border-radius: 1.1rem;
    padding: 0.85rem;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.ranking-number {
    color: var(--site-emerald);
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
}

.ranking-row img {
    width: 9rem;
    height: 5.5rem;
    border-radius: 0.85rem;
    object-fit: cover;
}

.ranking-row h2 {
    margin: 0 0 0.35rem;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 850;
}

.ranking-row p {
    margin: 0 0 0.35rem;
    color: #64748b;
    line-height: 1.55;
}

.ranking-row span:last-child {
    color: #64748b;
    font-size: 0.84rem;
}

.detail-hero {
    position: relative;
    min-height: 420px;
    color: #ffffff;
    overflow: hidden;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(6, 78, 59, 0.66)), var(--detail-img);
    background-size: cover;
    background-position: center;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 76% 20%, rgba(16, 185, 129, 0.22), transparent 24rem);
}

.detail-hero-inner {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.detail-hero h1 {
    max-width: 900px;
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.detail-hero p {
    max-width: 760px;
    color: #e2e8f0;
    font-size: 1.08rem;
    line-height: 1.8;
}

.detail-grid {
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    background: #000000;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.2);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.16));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover span {
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #064e3b;
    background: #ffffff;
    font-size: 2rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

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

.player-message {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    z-index: 3;
    transform: translateX(-50%);
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    font-size: 0.85rem;
}

.article-box h2,
.detail-info-card h2 {
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 850;
}

.article-box h2:not(:first-child) {
    margin-top: 2rem;
}

.article-box p {
    margin: 0;
    color: #334155;
    font-size: 1rem;
    line-height: 1.9;
}

.detail-aside {
    position: sticky;
    top: 5rem;
    display: grid;
    gap: 1rem;
}

.detail-poster,
.detail-info-card {
    border-radius: 1.2rem;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.detail-poster {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.detail-info-card {
    padding: 1.25rem;
}

.detail-info-card dl {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1.25rem;
}

.detail-info-card dl div {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.detail-info-card dt {
    color: #64748b;
    font-size: 0.9rem;
}

.detail-info-card dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.detail-info-card a {
    color: var(--site-emerald);
    text-decoration: none;
}

.tag-list .tag-pill {
    color: #047857;
    background: #ecfdf5;
}

.footer-link {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #34d399;
}

.back-to-top {
    padding: 0.7rem 1rem;
    border: 0;
    color: #ffffff;
    background: var(--site-emerald);
    cursor: pointer;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .hero-slide {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

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

    .home-hero {
        min-height: 920px;
    }

    .detail-aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .hero-wrap {
        padding-top: 2rem;
        padding-bottom: 3.25rem;
    }

    .hero-track {
        min-height: 690px;
    }

    .home-hero {
        min-height: 820px;
    }

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

    .section-title-row,
    .ranking-head,
    .page-search {
        align-items: stretch;
        flex-direction: column;
    }

    .title-line {
        width: 100%;
        flex: none;
    }

    .ranking-row {
        grid-template-columns: 3rem 6rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .ranking-row img {
        width: 6rem;
        height: 4rem;
    }

    .card-body {
        min-height: 12rem;
    }
}
.max-w-5xl {
    max-width: 64rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.p-8 {
    padding: 2rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-20 {
    margin-top: 5rem;
}

.grid {
    display: grid;
}

.gap-8 {
    gap: 2rem;
}

.min-h-screen {
    min-height: 100vh;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

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

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}
