:root {
    --site-primary: #0284c7;
    --site-primary-dark: #0369a1;
    --site-accent: #059669;
    --site-dark: #0f172a;
    --site-muted: #64748b;
    --site-border: #e2e8f0;
    --site-soft: #f8fafc;
    --site-card-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

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

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

img {
    max-width: 100%;
}

.container-custom {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    white-space: nowrap;
}

.site-logo span:last-child {
    font-size: 1.25rem;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
}

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

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

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

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    overflow: hidden;
    background: #f8fafc;
}

.header-search input,
.mobile-search input {
    width: 220px;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    background: transparent;
}

.header-search button,
.mobile-search button {
    border: 0;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--site-primary);
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-size: 1.7rem;
}

.mobile-menu {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--site-border);
    background: #ffffff;
}

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

.mobile-menu nav {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mobile-menu .nav-link {
    display: block;
    padding: 12px 0;
}

.hero-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: #0f172a;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.58) 48%, rgba(15, 23, 42, 0.18));
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

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

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 6vw, 4.7rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.hero-copy p {
    margin: 0;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: var(--site-primary);
    box-shadow: 0 14px 32px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover,
.hero-arrow:hover {
    background: var(--site-primary-dark);
    transform: translateY(-1px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.45);
    font-size: 1.8rem;
    transition: all 0.2s ease;
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 32px;
    background: #ffffff;
}

.hero-search {
    display: flex;
    max-width: 520px;
    margin-top: 26px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 14px 18px;
    color: #ffffff;
    background: transparent;
}

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

.hero-search button {
    border: 0;
    padding: 0 18px;
    color: #ffffff;
    background: var(--site-primary);
    font-weight: 800;
}

.section {
    padding: 56px 0;
}

.section.soft {
    background: var(--site-soft);
}

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

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

.section-title p {
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.7;
}

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

.grid-cards.compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--site-card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-cover-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #0369a1);
}

.movie-cover-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.2), transparent 30%), linear-gradient(135deg, #0f172a, #0369a1 55%, #059669);
}

.movie-cover {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.image-missing {
    opacity: 0;
}

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

.movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.66);
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

.movie-meta-line {
    color: var(--site-primary);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.movie-card-title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-desc {
    margin: 0;
    min-height: 42px;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.movie-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 0.76rem;
    font-weight: 700;
}

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

.category-card {
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: var(--site-card-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(2, 132, 199, 0.34);
}

.category-card strong {
    display: block;
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.category-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
    font-size: 0.92rem;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.rank-panel {
    padding: 22px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--site-card-shadow);
}

.rank-panel h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 1.35rem;
}

.rank-row {
    display: grid;
    grid-template-columns: auto 72px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-row img {
    width: 72px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #0f172a, #0369a1);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    font-size: 0.85rem;
    font-weight: 900;
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-info strong {
    color: #0f172a;
    font-size: 0.98rem;
}

.rank-info em {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.78rem;
    font-style: normal;
}

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background: radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.28), transparent 32%), linear-gradient(135deg, #0f172a, #075985 56%, #059669);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.08rem;
    line-height: 1.8;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 0.25fr));
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.input-field {
    width: 100%;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    outline: 0;
    padding: 12px 14px;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
    border-color: rgba(2, 132, 199, 0.72);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.filter-empty {
    margin: 20px 0;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    color: #64748b;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--site-primary);
    font-weight: 700;
}

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

.player-shell {
    border-radius: 24px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 22px 55px rgba(2, 6, 23, 0.26);
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.68));
    cursor: pointer;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: var(--site-primary);
    box-shadow: 0 14px 40px rgba(2, 132, 199, 0.45);
    font-size: 2rem;
}

.player-start strong {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.52);
    font-size: 1rem;
}

.player-start.hidden {
    display: none;
}

.player-message {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 4;
    color: #ffffff;
    font-size: 0.9rem;
}

.detail-title {
    margin: 22px 0 12px;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-weight: 800;
    font-size: 0.86rem;
}

.detail-card {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid var(--site-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--site-card-shadow);
}

.detail-card h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 1.4rem;
}

.detail-card p {
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.9;
}

.side-panel {
    position: sticky;
    top: 92px;
}

.side-poster {
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f172a, #0369a1);
    box-shadow: var(--site-card-shadow);
}

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

.related-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.related-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.07);
}

.related-card img {
    width: 88px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #0f172a, #0369a1);
}

.related-card strong,
.related-card span {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-card strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.related-card span {
    margin-top: 6px;
    color: #64748b;
    font-size: 0.78rem;
}

.sitemap-grid {
    column-count: 4;
    column-gap: 24px;
}

.sitemap-grid a {
    display: block;
    break-inside: avoid;
    padding: 8px 0;
    color: #334155;
    border-bottom: 1px solid #eef2f7;
}

.sitemap-grid a:hover {
    color: var(--site-primary);
}

.site-footer {
    margin-top: 70px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 48ch;
    margin: 0;
    color: #94a3b8;
    line-height: 1.8;
}

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

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

.footer-links a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 1100px) {
    .grid-cards,
    .grid-cards.compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .side-panel {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

    .hero-slider {
        height: 620px;
    }

    .hero-copy {
        padding-right: 40px;
    }

    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

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

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

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

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

    .sitemap-grid {
        column-count: 2;
    }
}

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

    .site-logo span:last-child {
        font-size: 1.05rem;
    }

    .hero-slider {
        height: 580px;
    }

    .hero-copy h1 {
        font-size: 2.3rem;
    }

    .hero-search,
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search button {
        min-height: 44px;
    }

    .grid-cards,
    .grid-cards.compact,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-row img {
        width: 62px;
        height: 42px;
    }

    .sitemap-grid {
        column-count: 1;
    }
}
