:root {
    --dawn-50: #fff9f0;
    --dawn-100: #fff0d9;
    --dawn-500: #ffb347;
    --dawn-600: #ff9f24;
    --dawn-700: #f58700;
    --ink-900: #111827;
    --ink-700: #374151;
    --ink-500: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
}

body {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 52%, #fff9f0 100%);
    color: var(--ink-900);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
}

.logo-link {
    min-width: max-content;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--dawn-500), var(--dawn-700));
    box-shadow: 0 12px 24px rgba(245, 135, 0, 0.22);
    font-size: 0.85rem;
}

.main-nav {
    white-space: nowrap;
}

.nav-link {
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--dawn-700);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-form {
    position: relative;
}

.search-form input {
    width: 16rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0.58rem 2.4rem 0.58rem 1rem;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus {
    border-color: var(--dawn-500);
    box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.22);
}

.search-form button {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    width: 2rem;
    height: 2rem;
    transform: translateY(-50%);
    border-radius: 999px;
    color: #ffffff;
    background: var(--dawn-600);
    line-height: 1;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    color: var(--ink-700);
    background: #f3f4f6;
}

.mobile-panel {
    border-top: 1px solid var(--line);
    padding: 1rem 0 1.25rem;
}

.mobile-search input {
    width: 100%;
}

.mobile-nav {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.9rem;
}

.mobile-nav a {
    display: block;
    padding: 0.72rem 0.4rem;
    color: #374151;
    font-weight: 600;
}

.hero-slider {
    isolation: isolate;
    background: #111827;
}

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

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2rem 1rem 4.8rem;
}

.hero-inner {
    max-width: 80rem;
    margin: 0 auto;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.hero-kicker span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.32rem 0.78rem;
    color: #ffffff;
    background: rgba(255, 159, 36, 0.9);
    font-size: 0.875rem;
    font-weight: 700;
}

.hero-title {
    max-width: 58rem;
    color: #ffffff;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 20px 42px rgba(0, 0, 0, 0.5);
}

.hero-desc {
    max-width: 52rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    border-radius: 0.85rem;
    padding: 0.75rem 1.4rem;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: var(--dawn-600);
    box-shadow: 0 14px 28px rgba(255, 159, 36, 0.25);
}

.btn-primary:hover {
    background: var(--dawn-700);
    transform: translateY(-1px);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    transform: translateY(-50%);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
    left: 1rem;
}

.hero-next {
    right: 1rem;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 1.9rem;
    z-index: 5;
    display: flex;
    gap: 0.5rem;
    transform: translateX(-50%);
}

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

.hero-dot.is-active {
    width: 2rem;
    background: var(--dawn-500);
}

.section-shell {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.section-stack {
    display: grid;
    gap: 4rem;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.6rem;
}

.section-head h2,
.page-heading h1,
.content-block h2 {
    color: #111827;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.section-head h2 {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.section-head p,
.page-heading p {
    color: #6b7280;
    line-height: 1.75;
}

.section-link {
    color: var(--dawn-700);
    font-weight: 700;
    white-space: nowrap;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

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

.movie-card:hover h3 {
    color: var(--dawn-700);
}

.movie-poster {
    background: #f3f4f6;
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 60%);
    transition: opacity 0.25s ease;
}

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

.year-badge,
.rank-badge,
.watch-badge {
    position: absolute;
    z-index: 2;
    border-radius: 0.5rem;
    font-weight: 700;
}

.year-badge {
    right: 0.7rem;
    top: 0.7rem;
    padding: 0.24rem 0.5rem;
    color: #ffffff;
    background: var(--dawn-600);
    font-size: 0.8rem;
}

.rank-badge {
    left: 0.7rem;
    top: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.82);
    font-size: 0.86rem;
}

.watch-badge {
    left: 0.85rem;
    bottom: 0.85rem;
    color: #ffffff;
    opacity: 0;
    transform: translateY(0.8rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .watch-badge {
    opacity: 1;
    transform: translateY(0);
}

.card-meta,
.list-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.card-meta span,
.detail-meta span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.26rem 0.58rem;
    color: #9a5400;
    background: #fff3df;
    font-size: 0.78rem;
    font-weight: 700;
}

.feature-band {
    border-radius: 1.4rem;
    padding: 2rem;
    background: linear-gradient(90deg, #fff9f0, #eff6ff);
}

.rail {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.rail > * {
    flex: 0 0 16rem;
    scroll-snap-align: start;
}

.list-stack {
    display: grid;
    gap: 1rem;
}

.list-card {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #f0f0f0;
    border-radius: 1rem;
    background: #ffffff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.list-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.list-cover {
    width: 8rem;
    height: 5rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    object-fit: cover;
    background: #f3f4f6;
}

.list-info {
    min-width: 0;
}

.list-info h3 {
    margin-bottom: 0.25rem;
    color: #111827;
    font-weight: 800;
}

.list-info p {
    display: -webkit-box;
    overflow: hidden;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.list-meta {
    margin-top: 0.55rem;
    color: #6b7280;
    font-size: 0.86rem;
}

.list-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 0.7rem;
    color: #ffffff;
    background: var(--dawn-600);
    font-weight: 800;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(120deg, #111827 0%, #3f2506 46%, #ff9f24 100%);
}

.page-hero .section-shell {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.page-heading h1 {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.page-heading p {
    max-width: 48rem;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 0.9rem;
}

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

.category-card {
    display: block;
    border: 1px solid #f0e5d6;
    border-radius: 1.25rem;
    padding: 1.35rem;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 159, 36, 0.16);
}

.category-card h2,
.category-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
}

.category-card p {
    color: #6b7280;
    line-height: 1.7;
}

.filter-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.6rem;
    padding: 0.85rem;
    border: 1px solid #f1e8dd;
    border-radius: 1rem;
    background: #ffffff;
}

.filter-bar input {
    width: 100%;
    border: 0;
    outline: none;
    color: #111827;
    background: transparent;
}

.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(255, 179, 71, 0.42), transparent 34%), linear-gradient(125deg, #111827, #241305 60%, #111827);
}

.detail-layout {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #000000;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.08));
    z-index: 3;
}

.player-start span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: var(--dawn-600);
    box-shadow: 0 16px 36px rgba(255, 159, 36, 0.35);
    font-size: 1.8rem;
    padding-left: 0.2rem;
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

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

.detail-title {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.detail-lead {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.85;
}

.detail-meta {
    margin-top: 1.25rem;
}

.content-grid {
    display: grid;
    gap: 1.5rem;
}

.content-block {
    border: 1px solid #f0e5d6;
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-block h2 {
    margin-bottom: 0.85rem;
    font-size: 1.45rem;
}

.content-block p {
    color: #374151;
    line-height: 1.9;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.site-footer {
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: inline-block;
    color: #ffc56b;
    margin-bottom: 0.8rem;
    font-weight: 800;
    font-size: 1.15rem;
}

.site-footer h3 {
    color: #ffffff;
    margin-bottom: 0.85rem;
    font-weight: 800;
}

.site-footer p,
.site-footer li {
    color: #9ca3af;
    line-height: 1.75;
    font-size: 0.94rem;
}

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

.site-footer ul {
    display: grid;
    gap: 0.45rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: space-between;
    padding-top: 1.4rem;
    border-top: 1px solid #1f2937;
    color: #9ca3af;
    font-size: 0.92rem;
}

.empty-state {
    border: 1px dashed #f1d5ad;
    border-radius: 1.25rem;
    padding: 2rem;
    color: #6b7280;
    background: #ffffff;
    text-align: center;
}

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

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

@media (min-width: 768px) {
    .hero-content {
        padding: 4rem 1rem 5.4rem;
    }

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

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

    .footer-bottom {
        flex-direction: row;
        align-items: center;
    }
}

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

    .detail-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr) 20rem;
        align-items: start;
    }

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

@media (max-width: 767px) {
    .header-row {
        gap: 0.75rem;
    }

    .hero-control {
        width: 2.35rem;
        height: 2.35rem;
    }

    .hero-title {
        padding-right: 2rem;
    }

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

    .feature-band {
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .list-cover {
        width: 6.5rem;
        height: 4.4rem;
    }
}
