:root {
    --mist-50: #f8f9fa;
    --mist-100: #f1f3f5;
    --mist-200: #e9ecef;
    --mist-300: #dee2e6;
    --mist-600: #868e96;
    --mist-700: #495057;
    --mist-800: #343a40;
    --mist-900: #212529;
    --fog-50: #f0f9ff;
    --fog-100: #e0f2fe;
    --fog-400: #38bdf8;
    --fog-600: #0284c7;
    --fog-700: #0369a1;
    --cocoon-50: #f0fdf4;
    --cocoon-100: #dcfce7;
    --cocoon-600: #16a34a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--mist-900);
    background: linear-gradient(180deg, var(--mist-50), var(--white));
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--mist-200);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--mist-900);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: var(--white);
    background: linear-gradient(135deg, var(--fog-600), var(--cocoon-600));
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--mist-700);
    font-weight: 600;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: var(--fog-600);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--mist-700);
    background: transparent;
    font-size: 24px;
}

.menu-button:hover {
    background: var(--mist-100);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 16px 0 20px;
    border-top: 1px solid var(--mist-200);
    color: var(--mist-700);
    font-weight: 600;
}

.mobile-nav.is-open {
    display: flex;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--mist-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 0 0 72px;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.18));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    color: var(--white);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 14px;
    backdrop-filter: blur(8px);
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 26px;
    max-width: 680px;
    color: var(--mist-200);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 750;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: var(--fog-600);
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.35);
}

.button-primary:hover {
    background: var(--fog-700);
}

.button-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.button-light {
    color: var(--mist-900);
    border-color: var(--mist-200);
    background: var(--white);
}

.hero-dots {
    position: absolute;
    right: max(28px, calc((100vw - 1180px) / 2));
    bottom: 36px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.hero-dot.is-active {
    width: 30px;
    background: var(--white);
}

.section {
    padding: 68px 0;
}

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

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

.section-title {
    margin: 0;
    color: var(--mist-900);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 850;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--mist-600);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fog-600);
    font-weight: 760;
}

.section-link:hover {
    color: var(--fog-700);
}

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

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

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

.movie-poster {
    position: relative;
    overflow: hidden;
    margin: 0 0 12px;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-md);
    background: var(--mist-200);
    box-shadow: var(--shadow-sm);
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.25s ease;
}

.movie-card:hover .movie-poster::after {
    background: rgba(0, 0, 0, 0.38);
}

.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(2, 132, 199, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--mist-900);
    font-size: 16px;
    font-weight: 780;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.18s ease;
}

.movie-card:hover .movie-title {
    color: var(--fog-600);
}

.movie-line {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 0;
    color: var(--mist-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: var(--mist-600);
    font-size: 13px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--mist-100);
}

.scroller {
    display: grid;
    grid-auto-columns: minmax(220px, 260px);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding: 0 0 18px;
    scrollbar-width: thin;
}

.wide-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wide-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.wide-cover {
    position: relative;
    min-height: 260px;
    background: var(--mist-200);
}

.wide-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wide-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
}

.wide-body h3 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.25;
}

.wide-body p {
    margin: 0 0 12px;
    color: var(--mist-700);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    padding: 22px;
    border: 1px solid var(--mist-200);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--fog-50), var(--cocoon-50));
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--fog-100);
    box-shadow: var(--shadow-md);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 830;
}

.category-card p {
    margin: 0;
    color: var(--mist-700);
    font-size: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--mist-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: var(--white);
    background: var(--fog-600);
    font-weight: 850;
}

.rank-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: var(--mist-200);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.35;
}

.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--mist-600);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-hero {
    padding: 54px 0 32px;
    background: linear-gradient(135deg, var(--mist-50), var(--fog-50), var(--cocoon-50));
    border-bottom: 1px solid var(--mist-200);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.12;
    font-weight: 860;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--mist-700);
    font-size: 17px;
}

.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.search-box {
    width: min(460px, 100%);
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--mist-300);
    border-radius: 13px;
    color: var(--mist-900);
    background: var(--white);
    outline: none;
}

.search-box:focus {
    border-color: var(--fog-600);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 28px 0;
    color: var(--mist-600);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--fog-600);
}

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

.detail-main,
.detail-side-card {
    min-width: 0;
}

.player {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow-md);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.36));
    font-size: 18px;
    font-weight: 780;
}

.player.is-ready .player-cover {
    display: none;
}

.play-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: var(--fog-600);
    box-shadow: 0 18px 36px rgba(2, 132, 199, 0.38);
}

.detail-title {
    margin: 28px 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 860;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--mist-600);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--mist-700);
    background: var(--mist-100);
    font-size: 14px;
}

.highlight {
    margin: 0 0 26px;
    padding: 18px 20px;
    border-left: 4px solid var(--fog-600);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--mist-800);
    background: var(--fog-50);
    font-weight: 660;
}

.article-block {
    margin: 0 0 30px;
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 820;
}

.article-block p {
    margin: 0;
    color: var(--mist-700);
    font-size: 17px;
    line-height: 1.85;
}

.detail-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 22px;
}

.detail-side-card {
    padding: 20px;
    border: 1px solid var(--mist-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.detail-side-card h2,
.detail-side-card h3 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 830;
}

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

.related-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-card figure {
    overflow: hidden;
    margin: 0;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: var(--mist-200);
}

.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.related-card:hover img {
    transform: scale(1.07);
}

.related-card strong {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 4px;
    color: var(--mist-900);
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-card:hover strong {
    color: var(--fog-600);
}

.related-card span {
    color: var(--mist-600);
    font-size: 13px;
}

.site-footer {
    padding: 42px 0;
    color: var(--mist-300);
    background: var(--mist-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(2, 1fr);
    gap: 32px;
}

.footer-title {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 18px;
    font-weight: 820;
}

.footer-text {
    margin: 0;
    color: var(--mist-300);
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 8px;
    color: var(--mist-300);
    font-size: 14px;
}

.copyright {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--mist-800);
    color: var(--mist-300);
    text-align: center;
    font-size: 14px;
}

.empty-state {
    display: none;
    padding: 40px;
    border: 1px solid var(--mist-200);
    border-radius: var(--radius-lg);
    color: var(--mist-600);
    background: var(--white);
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

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

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

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

    .detail-side {
        position: static;
    }
}

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        height: auto;
        min-height: 620px;
    }

    .hero-slide {
        padding: 0 0 96px;
    }

    .hero-dots {
        left: 24px;
        right: auto;
    }

    .section {
        padding: 48px 0;
    }

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

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

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

    .rank-item {
        grid-template-columns: 42px 88px minmax(0, 1fr);
        gap: 12px;
    }

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

@media (max-width: 460px) {
    .movie-grid,
    .movie-grid.compact,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .related-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }
}
