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

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8fafc 0%, #f3f4f6 48%, #e2e8f0 100%);
}

.site-main {
    flex: 1;
}

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.26);
    backdrop-filter: blur(12px);
}

.nav-inner {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, #2dd4bf, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #042f2e;
    background: linear-gradient(135deg, #5eead4, #67e8f9);
    box-shadow: 0 10px 28px rgba(20, 184, 166, 0.38);
    font-weight: 900;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    color: #d1d5db;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: #0d9488;
}

.nav-search-form,
.mobile-search-form,
.wide-search-form,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search-form input,
.mobile-search-form input,
.wide-search-form input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
    border: 1px solid rgba(148, 163, 184, 0.32);
    outline: none;
    border-radius: 12px;
    color: #111827;
    background: #ffffff;
    transition: 0.2s ease;
}

.nav-search-form input {
    width: 210px;
    padding: 9px 12px;
    background: rgba(30, 41, 59, 0.92);
    color: #ffffff;
}

.nav-search-form input::placeholder,
.mobile-search-form input::placeholder {
    color: #94a3b8;
}

.nav-search-form button,
.mobile-search-form button,
.wide-search-form button,
.search-page-form button {
    border-radius: 12px;
    padding: 9px 16px;
    color: #ffffff;
    background: #0d9488;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-search-form button:hover,
.mobile-search-form button:hover,
.wide-search-form button:hover,
.search-page-form button:hover,
.primary-button:hover {
    background: #0f766e;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: rgba(51, 65, 85, 0.8);
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel-inner {
    padding: 12px 0 18px;
    display: grid;
    gap: 10px;
}

.mobile-nav-link {
    padding: 11px 14px;
    border-radius: 12px;
    color: #d1d5db;
}

.mobile-nav-link:hover {
    background: rgba(51, 65, 85, 0.9);
    color: #ffffff;
}

.mobile-search-form input {
    flex: 1;
    padding: 11px 12px;
    background: rgba(30, 41, 59, 0.92);
    color: #ffffff;
}

.hero-slider {
    position: relative;
    height: 60vh;
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.5) 48%, rgba(2, 6, 23, 0.15) 100%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 82px;
}

.hero-copy {
    width: min(760px, 100%);
    color: #ffffff;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-meta span,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(20, 184, 166, 0.95);
}

.hero-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 720px;
    margin-bottom: 26px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.65;
}

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

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

.primary-button {
    color: #ffffff;
    background: #14b8a6;
    box-shadow: 0 18px 40px rgba(20, 184, 166, 0.28);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.26);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    font-size: 34px;
    line-height: 1;
    backdrop-filter: blur(8px);
    transition: 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.68);
}

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

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

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

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #14b8a6;
}

.home-search-strip {
    color: #ffffff;
    background: linear-gradient(90deg, #0f766e, #0891b2);
}

.home-search-inner {
    padding: 28px 0;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
}

.home-search-inner h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 6px;
}

.home-search-inner p {
    color: #ccfbf1;
}

.wide-search-form input,
.search-page-form input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
}

.wide-search-form button,
.search-page-form button {
    padding: 14px 22px;
}

.page-sections {
    padding: 48px 0 64px;
}

.content-section {
    margin-bottom: 64px;
}

.content-section:last-child {
    margin-bottom: 0;
}

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

.section-heading h2 {
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.1;
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.section-heading p {
    margin-top: 8px;
    color: #64748b;
    font-size: 16px;
}

.section-link {
    color: #0d9488;
    font-weight: 800;
    white-space: nowrap;
}

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

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

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

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.poster-wrap img,
.large-card img,
.horizontal-card img,
.category-card img,
.related-card img,
.detail-side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img,
.large-card:hover img,
.horizontal-card:hover img,
.category-card:hover img,
.related-card:hover img {
    transform: scale(1.08);
}

.poster-year {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(20, 184, 166, 0.92);
    opacity: 0;
    transition: 0.25s ease;
}

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

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

.movie-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card h2 {
    margin-bottom: 8px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

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

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

.tag-row span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

.large-card-grid,
.category-grid,
.horizontal-grid {
    display: grid;
    gap: 24px;
}

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

.category-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

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

.large-card,
.category-card {
    position: relative;
    min-height: 430px;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.category-card {
    min-height: 280px;
}

.large-card-mask,
.category-card-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.46), rgba(2, 6, 23, 0.08));
}

.large-card-content,
.category-card-content {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    color: #ffffff;
}

.large-card-content strong,
.category-card-content strong {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
}

.large-card-content em,
.horizontal-card em,
.related-card small {
    color: #cbd5e1;
    font-style: normal;
}

.large-card-content small,
.category-card-content small,
.horizontal-card small {
    color: #e2e8f0;
    line-height: 1.6;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-chips span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #ccfbf1;
    background: rgba(15, 118, 110, 0.45);
    font-size: 12px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 172px 1fr;
    gap: 18px;
    align-items: stretch;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

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

.horizontal-card img {
    min-height: 132px;
}

.horizontal-card span {
    padding: 18px 18px 18px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.horizontal-card b {
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.horizontal-card small {
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero {
    color: #ffffff;
    padding: 78px 0;
}

.teal-hero {
    background: linear-gradient(90deg, #0d9488, #0891b2);
}

.dark-hero {
    background: linear-gradient(90deg, #1e293b, #020617);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-hero h1 {
    max-width: 860px;
    margin-bottom: 16px;
    font-size: clamp(38px, 6vw, 60px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    color: #e0f2fe;
    font-size: 19px;
    line-height: 1.75;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    padding: 0 14px;
}

.result-line {
    margin-bottom: 18px;
    color: #475569;
    font-weight: 800;
}

.empty-state {
    display: none;
    margin: 34px 0;
    padding: 34px;
    border-radius: 18px;
    color: #64748b;
    text-align: center;
    background: #ffffff;
}

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

.ranking-card::before {
    content: attr(data-rank);
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #14b8a6);
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
}

.search-page-form {
    width: min(100%, 760px);
    margin-top: 28px;
}

.detail-hero {
    padding: 34px 0 54px;
    color: #ffffff;
    background: linear-gradient(180deg, #020617, #1f2937);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #5eead4;
}

.movie-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(20, 184, 166, 0.94);
    font-size: 34px;
    box-shadow: 0 18px 46px rgba(20, 184, 166, 0.35);
}

.movie-player.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-side-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

.detail-side-card img {
    height: 220px;
}

.detail-side-card > div {
    padding: 22px;
}

.detail-side-card h1 {
    margin: 14px 0 12px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 900;
}

.detail-side-card p {
    color: #e5e7eb;
    line-height: 1.7;
}

.detail-side-card dl {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.detail-side-card dl div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
}

.detail-side-card dt {
    color: #94a3b8;
}

.detail-side-card dd {
    color: #ffffff;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
    gap: 28px;
    padding: 44px 0 70px;
}

.detail-article,
.related-panel {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.detail-article {
    padding: 30px;
}

.detail-article section + section {
    margin-top: 30px;
}

.detail-article h2,
.related-panel h2 {
    margin-bottom: 16px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

.detail-article p {
    color: #475569;
    font-size: 17px;
    line-height: 1.9;
}

.wide-tags span {
    font-size: 13px;
}

.related-panel {
    position: sticky;
    top: 90px;
    align-self: start;
    padding: 22px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 13px;
    align-items: center;
    padding: 8px;
    margin: -8px;
    border-radius: 14px;
    transition: 0.2s ease;
}

.related-card:hover {
    background: #f8fafc;
}

.related-card img {
    height: 74px;
    border-radius: 12px;
    background: #0f172a;
}

.related-card strong {
    color: #111827;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card small {
    display: block;
    margin-top: 6px;
    color: #64748b;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(90deg, #020617, #1e293b, #020617);
}

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

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 14px;
}

.site-footer p {
    color: #cbd5e1;
    line-height: 1.75;
}

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

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

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

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

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

    .mobile-toggle {
        display: flex;
        margin-left: auto;
    }

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

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

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

    .related-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .site-container {
        width: min(100% - 24px, 1280px);
    }

    .hero-slider {
        min-height: 560px;
        height: 76vh;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content {
        padding-bottom: 78px;
    }

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

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

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

    .horizontal-card img {
        min-height: 118px;
    }

    .page-hero {
        padding: 54px 0;
    }

    .detail-side-card img {
        height: 180px;
    }
}
