:root {
    --site-blue: #2563eb;
    --site-cyan: #06b6d4;
    --site-dark: #0f172a;
    --site-text: #111827;
    --site-muted: #64748b;
    --site-border: rgba(148, 163, 184, 0.25);
    --site-card: #ffffff;
}

body {
    background: #f8fafc;
    color: var(--site-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

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

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

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

.logo-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.16);
}

.footer-logo .logo-mark {
    color: #ffffff;
    background: var(--site-blue);
}

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

.nav-link,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    min-width: 280px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
}

.header-search input,
.header-search button {
    border: 0;
    outline: 0;
}

.header-search input {
    width: 100%;
    padding: 10px 14px;
    color: #ffffff;
    background: transparent;
}

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

.header-search button {
    padding: 10px 16px;
    color: #1d4ed8;
    font-weight: 700;
    background: #ffffff;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-nav {
    display: none;
    padding: 0 0 14px;
}

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

.hero-slider {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 40%, rgba(6, 182, 212, 0.34), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.74) 45%, rgba(15, 23, 42, 0.3)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent 40%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: center;
    min-height: 720px;
    gap: 54px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.28);
    backdrop-filter: blur(12px);
}

.hero-copy h1 {
    max-width: 850px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin-top: 20px;
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 800;
    color: #bfdbfe;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 720px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

.hero-tags,
.genre-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.genre-tags span,
.tag-cloud a {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.outline-button {
    color: var(--site-blue);
    border: 1px solid rgba(37, 99, 235, 0.24);
    background: #ffffff;
}

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

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.48);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    width: 78px;
    height: 78px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--site-blue);
    background: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

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

.home-search-block {
    position: relative;
    z-index: 4;
    margin-top: -34px;
}

.big-search {
    display: flex;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

.big-search input {
    flex: 1;
    min-height: 68px;
    padding: 0 24px;
    border: 0;
    outline: 0;
    font-size: 18px;
}

.big-search button {
    min-width: 150px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

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

.gradient-section {
    background: linear-gradient(135deg, #f8fafc, #eff6ff 48%, #ecfeff);
}

.dark-section {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #0f172a 60%, #082f49);
}

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

.section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-title p {
    margin-top: 8px;
    color: var(--site-muted);
}

.dark-section .section-title p {
    color: rgba(255, 255, 255, 0.66);
}

.section-more {
    color: var(--site-blue);
    font-weight: 800;
}

.dark-section .section-more {
    color: #93c5fd;
}

.category-grid,
.movie-grid,
.pill-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    border-radius: 24px;
    color: #ffffff;
    background: #0f172a;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.3s ease;
}

.category-tile span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    font-size: 22px;
    font-weight: 900;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 60%);
}

.category-tile:hover img,
.movie-card:hover img {
    transform: scale(1.06);
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: var(--site-card);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.dark-section .movie-card {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(15, 23, 42, 0.78);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

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

.card-year,
.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(220, 38, 38, 0.92);
}

.rank-badge {
    left: 10px;
    right: auto;
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 44px;
    opacity: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.12));
    transition: opacity 0.22s ease;
}

.movie-card:hover .play-hover {
    opacity: 1;
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dark-section .card-body h3 {
    color: #ffffff;
}

.card-line {
    display: -webkit-box;
    min-height: 40px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.meta-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    background: #eff6ff;
}

.dark-section .meta-row span {
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.28);
}

.ranking-list {
    display: grid;
    gap: 18px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    align-items: stretch;
}

.horizontal-card .poster-link img {
    height: 100%;
    aspect-ratio: 16 / 10;
}

.horizontal-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horizontal-card .card-body h3 {
    min-height: auto;
    font-size: 22px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 75% 20%, rgba(6, 182, 212, 0.38), transparent 32%),
        linear-gradient(135deg, #1e3a8a, #0f172a 58%, #082f49);
}

.small-hero {
    padding: 82px 0;
}

.category-hero {
    padding: 76px 0;
}

.page-hero h1,
.detail-copy h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    outline: 0;
    background: #ffffff;
}

.filter-bar input {
    flex: 1;
    min-width: 240px;
}

.mini-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.mini-page-link,
.category-pill {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mini-page-link {
    padding: 9px 12px;
    color: #334155;
    font-size: 14px;
}

.mini-page-link.active,
.mini-page-link:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.category-pill {
    display: grid;
    gap: 10px;
    padding: 22px;
}

.category-pill span {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
}

.category-pill small {
    color: var(--site-muted);
    line-height: 1.7;
}

.category-pill:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.26);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1);
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.45);
}

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

.player-section {
    padding: 64px 0;
    color: #ffffff;
    background: #020617;
}

.player-section h2 {
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 900;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.24));
}

.play-overlay span {
    display: flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--site-blue);
    font-size: 38px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
}

.play-overlay strong {
    font-size: 22px;
}

.play-overlay.hidden {
    display: none;
}

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

.story-card,
.info-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.story-card {
    padding: 32px;
}

.story-card h2,
.info-card h2 {
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 900;
}

.story-card h2:not(:first-child) {
    margin-top: 32px;
}

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

.info-card {
    align-self: start;
    padding: 26px;
}

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

.info-list div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.info-list dt {
    color: var(--site-muted);
}

.info-list dd {
    font-weight: 800;
    color: #0f172a;
}

.tag-cloud a {
    color: var(--site-blue);
    background: #eff6ff;
}

.site-footer {
    padding: 56px 0;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 34px;
}

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

.site-footer p {
    margin-top: 14px;
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #60a5fa;
}

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

@media (max-width: 1180px) {
    .movie-grid,
    .compact-grid,
    .category-movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-slider,
    .hero-inner {
        min-height: 680px;
    }

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

    .hero-poster {
        display: none;
    }

    .detail-poster {
        max-width: 280px;
    }

    .horizontal-card {
        grid-template-columns: 170px 1fr;
    }
}

@media (max-width: 640px) {
    .site-logo {
        font-size: 18px;
    }

    .hero-slider,
    .hero-inner {
        min-height: 620px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-copy h2 {
        font-size: 28px;
    }

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

    .big-search {
        display: grid;
        border-radius: 18px;
    }

    .big-search button {
        min-height: 54px;
    }

    .section-title {
        display: grid;
    }

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

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

    .horizontal-card .poster-link img {
        aspect-ratio: 16 / 9;
    }

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

    .story-card,
    .info-card {
        padding: 22px;
    }
}
