:root {
    --primary: #f0641f;
    --primary-dark: #c84f15;
    --primary-soft: #fde9d7;
    --secondary: #14b895;
    --secondary-dark: #0a7763;
    --accent-soft: #fefce8;
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-900: #1c1917;
    --white: #ffffff;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 20px -2px rgba(0, 0, 0, 0.10), 0 12px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-hard: 0 10px 40px -3px rgba(0, 0, 0, 0.15), 0 20px 30px -10px rgba(0, 0, 0, 0.10);
}

body {
    margin: 0;
    color: var(--neutral-900);
    background: var(--neutral-50);
    font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 20px;
    color: var(--neutral-900);
}

.brand-copy small {
    max-width: 190px;
    overflow: hidden;
    color: var(--neutral-600);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.nav-link,
.mobile-link {
    color: var(--neutral-700);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--neutral-100);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--neutral-900);
}

.mobile-nav {
    display: none;
    padding: 10px 24px 18px;
    border-top: 1px solid var(--neutral-200);
    background: var(--white);
}

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

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #f0fdf9 100%);
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.92) 0%, rgba(28, 25, 23, 0.70) 42%, rgba(28, 25, 23, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.hero-tags,
.hero-mini-tags,
.detail-tags,
.tag-row,
.meta-row,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.hero-mini-tags span,
.detail-tags span,
.tag-row span,
.meta-row span {
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    max-width: 780px;
    margin: 22px 0 16px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.8;
}

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

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

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

.btn.primary {
    color: var(--white);
    background: var(--primary);
    box-shadow: var(--shadow-hard);
}

.btn.ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.btn.soft {
    color: var(--neutral-900);
    background: var(--white);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.35);
    font-size: 32px;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: var(--primary);
}

.search-band {
    margin-top: -46px;
    position: relative;
    z-index: 6;
}

.search-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-hard);
}

.search-panel h2,
.search-panel p {
    margin: 0;
}

.search-panel h2 {
    font-size: 26px;
    font-weight: 900;
}

.search-panel p {
    margin-top: 8px;
    color: var(--neutral-600);
}

.search-box,
.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box input,
.toolbar input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--neutral-200);
    border-radius: 14px;
    background: var(--neutral-50);
    outline: none;
}

.search-box input:focus,
.toolbar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(240, 100, 31, 0.12);
}

.search-box a,
.section-more,
.rank-top-card a,
.category-overview-card span {
    color: var(--primary);
    font-weight: 800;
}

.section {
    padding: 72px 0;
}

.bg-gradient {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #f0fdf9 100%);
}

.bg-white {
    background: var(--white);
}

.bg-soft {
    background: var(--neutral-50);
}

.bg-neutral {
    background: var(--neutral-900);
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: var(--neutral-600);
}

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

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

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

.movie-card {
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.movie-card.hidden {
    display: none;
}

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

.movie-cover {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--neutral-100);
}

.movie-cover.wide {
    aspect-ratio: 16 / 9;
}

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

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

.type-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.type-badge {
    top: 10px;
    left: 10px;
    background: var(--primary);
}

.year-badge {
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.movie-body {
    padding: 22px;
}

.movie-body.compact {
    padding: 16px;
}

.movie-body h3 {
    margin: 0 0 8px;
    color: var(--neutral-900);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.featured .movie-body h3 {
    font-size: 22px;
}

.movie-body p,
.one-line,
.summary-line {
    margin: 0;
    color: var(--neutral-600);
    line-height: 1.7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.movie-body.compact p {
    font-size: 13px;
    -webkit-line-clamp: 2;
}

.one-line {
    -webkit-line-clamp: 2;
}

.summary-line {
    margin-top: 8px;
    color: var(--neutral-500);
    font-size: 14px;
    -webkit-line-clamp: 3;
}

.card-year {
    margin-bottom: 8px;
    color: var(--neutral-500);
    font-size: 12px;
    font-weight: 700;
}

.meta-row {
    margin-bottom: 12px;
}

.meta-row span,
.tag-row span {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.tag-row {
    margin-top: 14px;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.5s ease;
}

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

.category-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(240, 100, 31, 0.88), rgba(20, 184, 149, 0.74));
}

.category-copy {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 22px;
    color: var(--white);
}

.category-copy strong {
    font-size: 24px;
    font-weight: 900;
}

.category-copy small {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

.page-hero,
.detail-hero {
    position: relative;
    padding: 82px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 50%, #f0fdf9 100%);
}

.page-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -140px;
    top: -150px;
    border-radius: 50%;
    background: rgba(240, 100, 31, 0.16);
}

.page-hero .container,
.detail-hero .container {
    position: relative;
    z-index: 1;
}

.small-hero {
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-weight: 800;
}

.page-hero h1,
.detail-copy h1 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.page-hero p,
.detail-one-line {
    max-width: 760px;
    color: var(--neutral-600);
    font-size: 18px;
    line-height: 1.8;
}

.page-hero-grid,
.detail-layout,
.watch-layout,
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    gap: 36px;
    align-items: center;
}

.hero-stat-card,
.rank-top-card {
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-hard);
}

.hero-stat-card strong,
.rank-top-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 900;
}

.hero-stat-card span,
.rank-top-card span {
    color: var(--neutral-600);
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.category-overview-card a {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 190px;
}

.overview-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    overflow: hidden;
}

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

.overview-copy {
    padding: 26px;
}

.overview-copy h2 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 900;
}

.overview-copy p {
    margin: 0 0 18px;
    color: var(--neutral-600);
    line-height: 1.7;
}

.toolbar {
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.toolbar input {
    max-width: 360px;
}

.filter-chip {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--neutral-700);
    background: var(--neutral-100);
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
    color: var(--white);
    background: var(--primary);
}

.no-results {
    grid-column: 1 / -1;
    padding: 32px;
    border-radius: 18px;
    color: var(--neutral-600);
    background: var(--white);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.detail-hero {
    padding: 56px 0;
}

.detail-layout {
    grid-template-columns: 330px minmax(0, 1fr);
}

.poster-panel {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-hard);
    aspect-ratio: 4 / 5;
    background: var(--neutral-100);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--neutral-600);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb em {
    font-style: normal;
}

.detail-tags span {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.detail-meta li {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.detail-meta span {
    display: block;
    color: var(--neutral-500);
    font-size: 12px;
    font-weight: 700;
}

.detail-meta strong {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: var(--neutral-900);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watch-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
}

.player-card {
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow-hard);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    color: var(--white);
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.65), rgba(0, 0, 0, 0.72));
    cursor: pointer;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: var(--shadow-hard);
    font-size: 30px;
    text-indent: 4px;
}

.player-cover strong {
    font-size: 24px;
}

.watch-side {
    align-self: stretch;
    padding: 28px;
    border-radius: 26px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.watch-side h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 900;
}

.watch-side p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
}

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

.text-card {
    min-height: 260px;
    padding: 30px;
    border-radius: 26px;
    background: var(--neutral-50);
    box-shadow: var(--shadow-soft);
}

.text-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 900;
}

.text-card p {
    margin: 0;
    color: var(--neutral-700);
    font-size: 16px;
    line-height: 1.9;
}

.accent-card {
    background: linear-gradient(135deg, #fff7ed, #f0fdf9);
}

.site-footer {
    color: var(--neutral-300);
    background: var(--neutral-900);
}

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

.site-footer h2,
.site-footer h3 {
    margin: 0 0 16px;
    color: var(--white);
    font-weight: 900;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

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

.footer-links.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
}

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

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

    .menu-toggle {
        display: block;
    }

    .hero-carousel,
    .hero-content {
        min-height: 560px;
    }

    .search-panel,
    .page-hero-grid,
    .detail-layout,
    .watch-layout,
    .content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .detail-layout {
        align-items: start;
    }

    .poster-panel {
        max-width: 320px;
    }

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand-copy small {
        max-width: 140px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 520px;
    }

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

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

    .hero-control {
        display: none;
    }

    .search-band {
        margin-top: 0;
    }

    .search-panel,
    .toolbar {
        border-radius: 0;
        width: 100%;
    }

    .search-box,
    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar input {
        max-width: none;
    }

    .section {
        padding: 50px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-grid,
    .category-grid,
    .movie-grid,
    .full-grid,
    .ranking-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card a {
        grid-template-columns: 1fr;
    }

    .overview-thumbs {
        min-height: 150px;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}
