:root {
    color-scheme: light;
    --bg-start: #f8fafc;
    --bg-mid: #fffbeb;
    --bg-end: #fff7ed;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --amber: #d97706;
    --amber-dark: #b45309;
    --orange: #ea580c;
    --white-soft: rgba(255, 255, 255, 0.74);
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg-start), var(--bg-mid), var(--bg-end));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.82);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo,
.desktop-nav a,
.footer-links a,
.sub-nav a {
    text-decoration: none;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: transparent;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 999px;
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

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

.desktop-nav a {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--amber);
}

.site-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-search-form input {
    width: 220px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.site-search-form button,
.primary-btn,
.ghost-btn {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form button,
.primary-btn {
    color: #fff;
    background: var(--amber);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
}

.site-search-form button {
    height: 40px;
    padding: 0 18px;
}

.site-search-form button:hover,
.primary-btn:hover {
    background: var(--amber-dark);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: #374151;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px 24px 22px;
    background: rgba(255, 255, 255, 0.94);
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-panel a {
    color: #374151;
    font-weight: 700;
    text-decoration: none;
}

.hero-shell,
.content-section,
.detail-wrap,
.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.hero-shell {
    padding-top: 32px;
    padding-bottom: 24px;
}

.hero-carousel {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    background: #111827;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    left: 56px;
    right: 170px;
    bottom: 54px;
    max-width: 760px;
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 900;
}

.hero-meta {
    margin: 0 0 12px;
    color: #e5e7eb;
    font-size: 18px;
}

.hero-text {
    max-width: 680px;
    margin: 0 0 20px;
    color: #d1d5db;
    font-size: 17px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #fde68a;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    right: 42px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-prev {
    bottom: 114px;
}

.hero-next {
    bottom: 56px;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.32);
}

.hero-dots {
    position: absolute;
    left: 56px;
    bottom: 24px;
    z-index: 6;
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.hero-dot.active {
    width: 28px;
    background: #f59e0b;
}

.content-section {
    padding-top: 44px;
    padding-bottom: 44px;
}

.alt-section,
.soft-panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(16px);
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 900;
}

.section-more {
    color: var(--amber);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.section-intro {
    max-width: 820px;
    margin: -6px 0 24px;
    color: var(--muted);
    line-height: 1.8;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    color: inherit;
    background: #fff;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 10px 24px 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 20px 36px rgba(15, 23, 42, 0.14);
}

.card-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

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

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

.card-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent);
    transition: opacity 0.25s ease;
}

.card-hover span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    color: #fff;
    background: var(--amber);
    border-radius: 999px;
    font-weight: 800;
}

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

.card-body {
    padding: 16px;
}

.card-body h3,
.list-title-row h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.35;
}

.movie-card:hover h3,
.list-card:hover h3 {
    color: var(--amber);
}

.movie-meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.line-clamp-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #4b5563;
    line-height: 1.65;
}

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

.tag-row span {
    color: #92400e;
    background: #fef3c7;
}

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

.category-tile,
.category-card {
    color: inherit;
    text-decoration: none;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile {
    padding: 22px;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.category-tile h3,
.category-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
}

.category-tile p,
.category-card p,
.page-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.category-card {
    overflow: hidden;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    height: 150px;
    overflow: hidden;
    background: #111827;
}

.category-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-copy {
    padding: 20px;
}

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

.list-card {
    display: flex;
    gap: 16px;
    padding: 12px;
    color: inherit;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.list-cover {
    width: 92px;
    height: 124px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

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

.list-info {
    min-width: 0;
    padding-top: 4px;
}

.list-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rank-index {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--amber);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.page-hero {
    padding-top: 42px;
    padding-bottom: 22px;
}

.small-hero > div {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 42px;
    color: #fff;
    background: radial-gradient(circle at 16% 10%, rgba(251, 191, 36, 0.42), transparent 34%), linear-gradient(135deg, #111827, #78350f 52%, #f97316);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.small-hero p {
    max-width: 760px;
    color: #f3f4f6;
}

.sub-nav {
    margin-bottom: 24px;
}

.sub-nav a {
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 750;
}

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

.detail-wrap {
    padding-top: 30px;
    padding-bottom: 52px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--amber);
    text-decoration: none;
    font-weight: 700;
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.1));
    cursor: pointer;
}

.player-start span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    background: var(--amber);
    border-radius: 999px;
    font-size: 38px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

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

.detail-card,
.poster-card,
.related-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.detail-card {
    padding: 26px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    font-weight: 900;
}

.detail-card h2,
.related-card h2,
.poster-card h2 {
    margin: 22px 0 10px;
    font-size: 20px;
    font-weight: 900;
}

.detail-card p,
.poster-card p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-meta span {
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 7px 13px;
    font-weight: 700;
}

.detail-tags {
    margin-bottom: 4px;
}

.poster-card {
    overflow: hidden;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #111827;
}

.poster-card h2,
.poster-card p {
    padding-left: 20px;
    padding-right: 20px;
}

.poster-card p {
    padding-bottom: 22px;
}

.related-card {
    padding: 20px;
}

.related-card h2 {
    margin-top: 0;
}

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

.search-page-form {
    margin-top: 26px;
}

.search-page-form input {
    width: min(520px, 70vw);
    height: 48px;
}

.search-page-form button {
    height: 48px;
    padding-left: 24px;
    padding-right: 24px;
}

.site-footer {
    margin-top: 38px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 32px;
}

.footer-logo {
    margin-bottom: 12px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 17px;
}

.site-footer p {
    max-width: 480px;
    margin: 0;
    line-height: 1.8;
}

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

.footer-links a {
    color: #d1d5db;
}

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

.footer-bottom {
    padding: 18px 24px;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
    .six-grid,
    .category-page-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .mobile-toggle {
        display: block;
    }

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

    .hero-content {
        left: 28px;
        right: 28px;
        bottom: 72px;
    }

    .hero-arrow {
        right: 24px;
    }

    .hero-dots {
        left: 28px;
    }

    .four-grid,
    .six-grid,
    .category-page-grid,
    .category-grid,
    .category-overview-grid,
    .list-grid,
    .ranking-list,
    .footer-grid,
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .nav-wrap {
        height: 64px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo {
        font-size: 20px;
    }

    .hero-shell,
    .content-section,
    .detail-wrap,
    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-carousel {
        min-height: 480px;
        border-radius: 20px;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 32px;
    }

    .hero-text {
        font-size: 15px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 32px;
    }

    .hero-prev {
        bottom: 108px;
    }

    .hero-next {
        bottom: 58px;
    }

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

    .four-grid,
    .six-grid,
    .category-page-grid,
    .category-grid,
    .category-overview-grid,
    .list-grid,
    .ranking-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .card-body {
        padding: 13px;
    }

    .small-hero > div {
        padding: 28px;
        border-radius: 20px;
    }

    .site-search-form {
        width: 100%;
    }

    .site-search-form input {
        width: 100%;
    }
}
