:root {
    --site-cyan: #06b6d4;
    --site-blue: #3b82f6;
    --site-teal: #14b8a6;
    --site-dark: #0f172a;
    --site-gray: #64748b;
    --site-soft: #f8fafc;
    --site-line: #e2e8f0;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f1f5f9 100%);
    color: #111827;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    color: #0f172a;
}

.site-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.9rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-cyan), var(--site-blue), var(--site-teal));
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.28);
}

.site-logo-text {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0891b2;
    background: #ecfeff;
}

.mobile-toggle {
    display: none;
    border-radius: 0.85rem;
    padding: 0.7rem 0.95rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-cyan), var(--site-blue));
}

.mobile-panel {
    display: none;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    color: #ffffff;
    background: radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.35), transparent 32%), linear-gradient(135deg, #0f172a 0%, #164e63 48%, #0f766e 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: center;
    min-height: 680px;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-carousel {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr);
    gap: 2.5rem;
    align-items: center;
    min-height: 520px;
    animation: fadeIn 0.45s ease both;
}

.hero-slide.active {
    display: grid;
}

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

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-title,
.hero h1 {
    margin-top: 1.2rem;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.045em;
    text-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
    margin-top: 1.2rem;
    max-width: 680px;
    color: #dffbff;
    font-size: 1.18rem;
    line-height: 1.9;
}

.hero-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.hero-tags span,
.movie-tags span {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.35rem 0.72rem;
    color: #0e7490;
    background: #ecfeff;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero .hero-tags span {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.16);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.7rem;
    padding: 0.75rem 1.35rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    transition: all 0.25s ease;
}

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

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

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    gap: 0.6rem;
}

.hero-dot {
    width: 2.2rem;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.25s ease;
}

.hero-dot.active {
    width: 3.8rem;
    background: #ffffff;
}

.hero-rail {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1.6rem;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.hero-rail h2 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.hero-rail-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.85rem;
    align-items: center;
    border-radius: 1rem;
    padding: 0.65rem;
    color: #ffffff;
    transition: all 0.25s ease;
}

.hero-rail-card:hover {
    background: rgba(255, 255, 255, 0.16);
}

.hero-rail-card img {
    width: 64px;
    height: 84px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.hero-rail-card span {
    font-weight: 700;
    line-height: 1.4;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.42), transparent 34%), linear-gradient(135deg, #0f172a 0%, #164e63 52%, #0f766e 100%);
}

.compact-hero .container-custom {
    padding-top: 5rem;
    padding-bottom: 4.5rem;
}

.compact-hero h1 {
    margin-top: 1rem;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.05;
    font-weight: 900;
}

.compact-hero p {
    margin-top: 1rem;
    max-width: 780px;
    color: #cffafe;
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-search {
    display: flex;
    max-width: 760px;
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.15rem;
    color: #ffffff;
    outline: none;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.hero-search button {
    padding: 0 1.35rem;
    color: #0f172a;
    background: #ffffff;
    font-weight: 800;
}

.content-section {
    padding-top: 4rem;
    padding-bottom: 1rem;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.68rem 1rem;
    color: #0891b2;
    background: #ecfeff;
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--site-line);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

.movie-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.movie-year {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    font-size: 0.8rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.movie-body {
    padding: 1rem;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #64748b;
    font-size: 0.86rem;
}

.movie-meta span,
.detail-meta span {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    background: #f1f5f9;
}

.movie-card h3 {
    margin-top: 0.65rem;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.3rem;
    margin-top: 0.55rem;
    overflow: hidden;
    color: #64748b;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.category-card {
    display: block;
    min-height: 190px;
    border: 1px solid rgba(6, 182, 212, 0.18);
    border-radius: 1.2rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #ffffff, #f0fdfa);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 1rem;
    background: #ecfeff;
    font-size: 1.35rem;
}

.category-card h3 {
    margin-top: 0.9rem;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 850;
}

.category-card p {
    margin-top: 0.55rem;
    color: #64748b;
    line-height: 1.65;
}

.category-card em {
    display: block;
    margin-top: 0.8rem;
    color: #0891b2;
    font-size: 0.86rem;
    font-style: normal;
    line-height: 1.55;
}

.rank-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
}

.rank-panel,
.rank-feature,
.filter-panel,
.article-body,
.player-card,
.detail-side {
    border: 1px solid var(--site-line);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.rank-panel {
    padding: 0.8rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 48px 64px 1fr;
    gap: 0.8rem;
    align-items: center;
    border-radius: 1rem;
    padding: 0.75rem;
    transition: all 0.25s ease;
}

.rank-row:hover {
    background: #ecfeff;
}

.rank-number {
    color: #06b6d4;
    font-size: 1.15rem;
    font-weight: 900;
}

.rank-row img {
    width: 64px;
    height: 84px;
    border-radius: 0.75rem;
    object-fit: cover;
}

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

.rank-main strong {
    color: #0f172a;
    font-weight: 850;
}

.rank-main em {
    margin-top: 0.3rem;
    color: #64748b;
    font-size: 0.86rem;
    font-style: normal;
}

.rank-feature {
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
    gap: 1.2rem;
    overflow: hidden;
    padding: 1rem;
}

.rank-feature img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border-radius: 1rem;
    object-fit: cover;
}

.rank-feature span {
    color: #0891b2;
    font-weight: 800;
}

.rank-feature h2 {
    margin-top: 0.75rem;
    color: #0f172a;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 900;
}

.rank-feature p {
    margin-top: 0.9rem;
    color: #475569;
    line-height: 1.85;
}

.filter-panel {
    margin-bottom: 1.4rem;
    padding: 1rem;
}

.filter-group {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.filter-group strong {
    padding-top: 0.35rem;
    color: #0f172a;
}

.filter-group div,
.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-button {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
    color: #475569;
    background: #ffffff;
    font-weight: 700;
    transition: all 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
    border-color: #06b6d4;
    color: #0e7490;
    background: #ecfeff;
}

.all-movies.list-mode {
    grid-template-columns: 1fr;
}

.all-movies.list-mode .movie-card {
    display: grid;
    grid-template-columns: 180px 1fr;
}

.all-movies.list-mode .movie-cover img {
    height: 100%;
    min-height: 230px;
}

.empty-state {
    margin-top: 1rem;
    border-radius: 1rem;
    padding: 2rem;
    color: #64748b;
    background: #f8fafc;
    text-align: center;
    font-weight: 800;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 1rem;
    border: 1px solid var(--site-line);
    border-radius: 1.1rem;
    padding: 0.85rem;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.rank-card-cover {
    position: relative;
    overflow: hidden;
    border-radius: 0.9rem;
}

.rank-card-cover img {
    width: 128px;
    height: 172px;
    object-fit: cover;
}

.rank-card-cover span {
    position: absolute;
    left: 0.55rem;
    top: 0.55rem;
    border-radius: 999px;
    padding: 0.28rem 0.5rem;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    font-weight: 900;
}

.rank-card h2 {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 850;
}

.rank-card p {
    margin-top: 0.6rem;
    color: #64748b;
    line-height: 1.68;
}

.detail-hero {
    color: #ffffff;
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    padding-top: 3.2rem;
    padding-bottom: 4rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: #dffbff;
    font-size: 0.92rem;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.detail-poster {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 1.4rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.detail-copy h1 {
    margin-top: 1rem;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1.05;
    font-weight: 900;
}

.detail-copy p {
    margin-top: 1rem;
    color: #dffbff;
    font-size: 1.14rem;
    line-height: 1.9;
}

.detail-meta {
    margin-top: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
}

.player-card {
    overflow: hidden;
    padding: 0.85rem;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #020617;
}

.player-shell video {
    width: 100%;
    min-height: 480px;
    background: #020617;
    cursor: pointer;
}

.player-cover-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(8, 145, 178, 0.45));
    text-align: center;
}

.player-cover-layer.hidden {
    display: none;
}

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

.detail-side {
    padding: 1.2rem;
}

.detail-side h2,
.article-body h2 {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 850;
}

.detail-side dl {
    margin-top: 1rem;
}

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

.detail-side dd {
    margin-bottom: 0.85rem;
    color: #0f172a;
    font-weight: 750;
}

.article-body {
    padding: 1.5rem;
}

.article-body h2 + p {
    margin-top: 0.75rem;
}

.article-body p {
    color: #475569;
    line-height: 2;
}

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

.site-footer {
    margin-top: 5rem;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 2.2rem;
}

.site-footer p {
    margin-top: 0.8rem;
    color: #64748b;
    line-height: 1.75;
}

.site-footer h2 {
    margin-bottom: 0.8rem;
    color: #0f172a;
    font-weight: 850;
}

.footer-links {
    display: grid;
    gap: 0.45rem;
}

.footer-links a {
    color: #64748b;
}

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

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
    color: #64748b;
    text-align: center;
}

@media (max-width: 1100px) {
    .hero-inner,
    .rank-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-rail {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-rail h2 {
        grid-column: 1 / -1;
    }

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

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

    .mobile-toggle {
        display: inline-flex;
    }

    .mobile-panel.open {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: 4.4rem;
        display: grid;
        gap: 0.35rem;
        border: 1px solid #e2e8f0;
        border-radius: 1rem;
        padding: 0.7rem;
        background: #ffffff;
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    }

    .hero,
    .hero-inner,
    .hero-carousel,
    .hero-slide {
        min-height: auto;
    }

    .hero-inner {
        padding-top: 2.4rem;
        padding-bottom: 2.8rem;
    }

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

    .hero-poster {
        max-width: 280px;
        margin: 0 auto 2.5rem;
        transform: none;
    }

    .hero-dots {
        bottom: -1.2rem;
    }

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

    .section-head,
    .rank-feature,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    .all-movies.list-mode .movie-card,
    .rank-card {
        grid-template-columns: 1fr;
    }

    .filter-group {
        grid-template-columns: 1fr;
    }

    .player-shell video {
        min-height: 260px;
    }
}
