:root {
    --site-blue: #2563eb;
    --site-cyan: #06b6d4;
    --site-slate: #0f172a;
    --site-muted: #64748b;
    --site-bg: #f8fafc;
    --site-card: #ffffff;
    --site-line: #e2e8f0;
    --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --site-radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #111827;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #f1f5f9 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

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

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

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

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-2deg);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 20px;
    color: #111827;
}

.brand-text small {
    margin-top: 4px;
    color: var(--site-muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex: 1;
}

.main-nav a,
.mobile-nav a {
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--site-blue);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #334155;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 24px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--site-blue);
    background: #eff6ff;
}

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

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 58px 0 36px;
    background:
        radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.24), transparent 28%),
        radial-gradient(circle at 84% 10%, rgba(37, 99, 235, 0.20), transparent 30%);
}

.hero-shell {
    position: relative;
    min-height: 520px;
    border-radius: 34px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 52%, #0f172a 100%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.23);
}

.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.48) 52%, rgba(15, 23, 42, 0.18)),
        radial-gradient(circle at 80% 35%, rgba(255, 255, 255, 0.22), transparent 26%);
    pointer-events: none;
}

.hero-title-block {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 24px;
    display: grid;
    gap: 12px;
}

.hero-title-block h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-title-block p {
    max-width: 820px;
    margin: 0;
    color: #475569;
    font-size: 18px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
    gap: 30px;
    align-items: center;
    padding: 54px;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #bfdbfe;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-tags span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions,
.section-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.primary-button,
.secondary-button,
.soft-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--site-blue);
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
}

.secondary-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
}

.soft-button {
    color: var(--site-blue);
    background: #eff6ff;
}

.primary-button:hover,
.secondary-button:hover,
.soft-button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(360px, 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.35);
}

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

.hero-controls {
    position: absolute;
    left: 54px;
    bottom: 38px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-controls button,
.slider-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    min-height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

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

.search-panel {
    position: relative;
    z-index: 5;
    width: min(1180px, calc(100% - 32px));
    margin: -34px auto 0;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--site-shadow);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}

.search-panel input,
.page-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    outline: 0;
    padding: 0 16px;
    color: #0f172a;
    background: #f8fafc;
    font-size: 16px;
}

.search-panel input:focus,
.page-search input:focus {
    border-color: var(--site-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 800;
    font-size: 13px;
}

.section {
    padding: 46px 0;
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--site-blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-head h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.detail-title p {
    max-width: 760px;
    margin: 10px 0 0;
    color: #64748b;
    line-height: 1.75;
}

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

.movie-card {
    min-width: 0;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #e2e8f0;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    transition: background 0.25s ease;
}

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

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

.movie-card:hover .poster-link::after {
    background: rgba(15, 23, 42, 0.18);
}

.movie-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.74);
    font-size: 12px;
    font-weight: 800;
}

.movie-card-body {
    padding: 12px 2px 0;
}

.movie-title {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-title a,
.rank-card h3 a,
.related-card h3 a {
    transition: color 0.2s ease;
}

.movie-title a:hover,
.rank-card h3 a:hover,
.related-card h3 a:hover {
    color: var(--site-blue);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.movie-card-body p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.rank-card {
    display: grid;
    grid-template-columns: auto 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.rank-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 12px;
    background: #e2e8f0;
}

.rank-thumb img {
    width: 74px;
    height: 74px;
    object-fit: cover;
}

.rank-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #0f172a;
}

.rank-card p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

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

.category-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.category-card-main {
    padding: 24px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 24px;
}

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

.category-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
}

.category-preview a {
    overflow: hidden;
    border-radius: 14px;
    background: #e2e8f0;
}

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

.page-hero {
    margin: 34px auto 10px;
    padding: 34px;
    border-radius: 28px;
    color: #0f172a;
    background: linear-gradient(135deg, #ffffff, #eff6ff 58%, #ecfeff);
    box-shadow: var(--site-shadow);
}

.page-search {
    margin: 26px 0;
    display: grid;
    gap: 14px;
}

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

.filter-row button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #1e293b;
    background: #e0f2fe;
    cursor: pointer;
    font-weight: 800;
}

.filter-row button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
    gap: 28px;
    margin: 34px 0 42px;
}

.detail-title {
    margin-bottom: 22px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--site-blue);
}

.player-card,
.content-card,
.side-card {
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

.player-card {
    overflow: hidden;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #020617;
    pointer-events: auto;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.7));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--site-blue);
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.32);
    font-size: 30px;
}

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

.content-card {
    margin-top: 22px;
    padding: 28px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 24px;
}

.content-card p {
    margin: 0 0 18px;
    color: #334155;
    line-height: 1.92;
    font-size: 16px;
}

.side-card {
    padding: 18px;
    align-self: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: 18px;
    background: #e2e8f0;
}

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

.info-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    color: #475569;
    font-size: 14px;
}

.info-list div {
    display: flex;
    gap: 8px;
}

.info-list strong {
    color: #0f172a;
    min-width: 44px;
}

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

.related-card {
    min-width: 0;
}

.related-card a:first-child {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #e2e8f0;
}

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

.related-card h3 {
    margin: 10px 0 4px;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.35;
}

.related-card p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.site-footer {
    margin-top: 46px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b 55%, #020617);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 26px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.footer-inner p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: flex-end;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    color: #94a3b8;
    font-size: 14px;
}

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

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

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .mobile-nav.is-open {
        display: grid;
        gap: 4px;
    }

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

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

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

    .side-card {
        order: -1;
    }
}

@media (max-width: 820px) {
    .hero-slide {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .hero-shell {
        min-height: 680px;
    }

    .hero-poster {
        justify-self: start;
        width: 220px;
    }

    .hero-controls {
        left: 32px;
        bottom: 28px;
    }

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

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

    .rank-list,
    .category-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .brand-text small {
        display: none;
    }

    .hero-title-block,
    .search-panel,
    .main,
    .header-inner,
    .mobile-nav,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .hero-section {
        padding-top: 34px;
    }

    .hero-shell {
        min-height: 640px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 24px;
    }

    .hero-copy p {
        font-size: 16px;
    }

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

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

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

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

    .page-hero,
    .content-card,
    .side-card {
        padding: 20px;
        border-radius: 20px;
    }
}
