html {
    min-height: 100%;
    background: #f8fafc;
    color: #0f172a;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at 15% 0%, rgba(8, 145, 178, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 38%, #eef6fb 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(8, 145, 178, 0.28);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #475569;
    font-weight: 700;
}

.nav-link {
    position: relative;
    padding: 10px 0;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 3px;
    border-radius: 999px;
    transform: scaleX(0);
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    transform-origin: center;
    transition: transform 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #e0f2fe;
    color: #0f172a;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 12px;
    flex-direction: column;
}

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

.hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 34px auto 0;
    border-radius: 34px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    align-items: center;
    gap: 34px;
    padding: clamp(28px, 7vw, 82px);
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-image,
.hero-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    filter: saturate(1.08) brightness(0.7);
    transform: scale(1.08);
}

.hero-layer {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.36) 100%),
        radial-gradient(circle at 75% 22%, rgba(34, 211, 238, 0.38), transparent 28%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 620px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.18);
    color: #67e8f9;
    border: 1px solid rgba(103, 232, 249, 0.34);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.hero p {
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e0f2fe;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

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

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

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

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

.primary-button.small {
    min-height: 40px;
    padding: 0 16px;
}

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

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    width: min(360px, 100%);
    justify-self: end;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 34px 70px rgba(2, 6, 23, 0.48);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

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

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    font-size: 36px;
    line-height: 1;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
    background: #22d3ee;
}

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

.page-shell,
.detail-shell {
    padding-top: 34px;
}

.intro-band,
.filter-panel,
.content-section,
.page-hero,
.story-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
}

.intro-band {
    margin: 28px 0;
    padding: 24px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.intro-band h2,
.section-head h2,
.page-hero h1,
.story-card h2,
.footer-group h2 {
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.intro-band h2,
.section-head h2 {
    font-size: clamp(25px, 3vw, 34px);
}

.intro-band p,
.section-head p,
.page-hero p {
    color: #64748b;
    margin: 8px 0 0;
    line-height: 1.75;
}

.filter-panel {
    border-radius: 24px;
    padding: 18px;
    margin: 28px 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 190px 160px;
    gap: 14px;
    align-items: end;
}

.search-field {
    display: grid;
    gap: 8px;
    color: #475569;
    font-weight: 800;
}

.search-field input,
.filter-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 0 15px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field input:focus,
.filter-select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.content-section {
    margin: 32px 0;
    border-radius: 30px;
    padding: clamp(18px, 4vw, 32px);
}

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

.section-more {
    background: #e0f2fe;
    color: #0e7490;
    min-height: 40px;
    white-space: nowrap;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.82) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #0891b2;
    font-size: 20px;
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.category-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.category-pill {
    right: 10px;
    top: 10px;
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 34px;
    background: rgba(15, 23, 42, 0.78);
}

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

.movie-card h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.34;
    min-height: 46px;
    letter-spacing: -0.02em;
}

.movie-card h2 a:hover {
    color: #0891b2;
}

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

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

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.tag-row span {
    background: #ecfeff;
    color: #0e7490;
    font-size: 12px;
    padding: 4px 8px;
}

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

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

.category-tile {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 22px;
    border-radius: 26px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(8, 145, 178, 0.94), rgba(37, 99, 235, 0.92)),
        #0f172a;
    box-shadow: 0 20px 42px rgba(8, 145, 178, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 54px rgba(37, 99, 235, 0.28);
}

.category-tile-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    right: -70px;
    top: -90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.category-name {
    position: relative;
    z-index: 1;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.category-desc {
    position: relative;
    z-index: 1;
    color: #dff7ff;
    line-height: 1.65;
    margin: 12px 0;
}

.thumb-strip {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
}

.thumb-strip img {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.48);
}

.page-hero {
    border-radius: 32px;
    padding: clamp(30px, 7vw, 62px);
    overflow: hidden;
    background:
        radial-gradient(circle at 83% 12%, rgba(6, 182, 212, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 254, 255, 0.9));
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1;
}

.breadcrumb {
    display: block;
    margin-bottom: 16px;
    color: #0891b2;
    font-weight: 800;
}

.detail-shell {
    width: 100%;
    margin: 0;
    padding-top: 0;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    color: #ffffff;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) brightness(0.5);
    transform: scale(1.12);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.76)),
        radial-gradient(circle at 75% 22%, rgba(6, 182, 212, 0.24), transparent 28%);
}

.detail-wrap {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 54px;
}

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

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.detail-one-line {
    margin: 0;
    color: #cbd5e1;
    font-size: 20px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-weight: 800;
}

.player-section,
.detail-content,
.related-section {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.player-section {
    margin-top: 36px;
}

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.26);
    aspect-ratio: 16 / 9;
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.7)),
        rgba(2, 6, 23, 0.12);
}

.video-box.is-playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    padding-left: 5px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.35);
    font-size: 32px;
}

.video-overlay span:last-child {
    font-size: 20px;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.detail-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-top: 30px;
}

.story-card {
    border-radius: 26px;
    padding: clamp(22px, 4vw, 32px);
}

.story-card h2 {
    font-size: 26px;
    margin-bottom: 16px;
}

.story-card p {
    margin: 0;
    color: #334155;
    line-height: 2;
    font-size: 16px;
    white-space: pre-line;
}

.soft-card {
    background: #f0fdfa;
}

.footer-logo .brand-text {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 34px;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr;
    gap: 34px;
}

.footer-brand p {
    max-width: 460px;
    line-height: 1.75;
    color: #94a3b8;
}

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

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 30px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1120px) {
    .all-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

    .menu-button {
        display: flex;
    }

    .hero {
        min-height: 720px;
        border-radius: 26px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
    }

    .hero-poster {
        justify-self: start;
        width: min(230px, 70%);
    }

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

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

    .detail-head-grid,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(240px, 68vw);
    }
}

@media (max-width: 560px) {
    .site-nav,
    main,
    .detail-wrap,
    .player-section,
    .detail-content,
    .related-section,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .brand-text {
        font-size: 20px;
    }

    .hero {
        width: min(100% - 22px, 1180px);
        min-height: 680px;
        margin-top: 18px;
        border-radius: 22px;
    }

    .hero-slide {
        padding: 52px 22px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-arrow {
        display: none;
    }

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

    .movie-grid,
    .all-grid,
    .preview-grid,
    .category-grid,
    .category-grid.wide {
        grid-template-columns: 1fr;
    }

    .movie-card {
        display: grid;
        grid-template-columns: 118px 1fr;
        min-height: 180px;
    }

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

    .poster-wrap img {
        height: 100%;
    }

    .movie-card h2 {
        min-height: auto;
    }

    .movie-card p {
        min-height: auto;
    }

    .detail-copy h1 {
        font-size: 38px;
    }

    .video-box {
        border-radius: 20px;
    }
}
