:root {
    --amber-950: #451a03;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --orange-700: #c2410c;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-100: #ffedd5;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 48%, #fff7ed 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-900), var(--amber-800), var(--orange-700));
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.16);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
    transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
    transform: rotate(12deg) scale(1.06);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 650;
}

.nav-links a {
    color: rgb(255 255 255 / 0.92);
    transition: color 0.2s ease;
}

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

.search-form {
    position: relative;
    min-width: 260px;
}

.search-form input {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px 10px 42px;
    color: var(--white);
    background: rgb(255 255 255 / 0.18);
    outline: none;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.search-form input::placeholder {
    color: rgb(255 255 255 / 0.72);
}

.search-form input:focus {
    background: rgb(255 255 255 / 0.24);
    box-shadow: 0 0 0 2px rgb(252 211 77 / 0.88);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.88;
}

.mobile-toggle {
    display: none;
    color: var(--white);
    background: transparent;
    font-size: 26px;
}

.mobile-panel {
    display: none;
    padding: 14px 0 18px;
    border-top: 1px solid rgb(255 255 255 / 0.18);
}

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

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

.hero {
    position: relative;
    min-height: 600px;
    color: var(--white);
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 18%, rgb(251 191 36 / 0.36), transparent 28%),
        radial-gradient(circle at 18% 76%, rgb(249 115 22 / 0.32), transparent 30%),
        linear-gradient(90deg, var(--amber-900), var(--orange-700), var(--amber-900));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle, rgb(255 255 255 / 0.72) 2px, transparent 2px);
    background-size: 60px 60px;
    animation: softPulse 3.5s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(0 0 0 / 0.18), rgb(0 0 0 / 0.30));
}

.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: 52px;
    padding: 48px 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: var(--amber-300);
    font-weight: 800;
}

.hero h1 {
    max-width: 820px;
    margin: 0 0 20px;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgb(229 231 235 / 0.94);
    font-size: clamp(17px, 2.1vw, 22px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.button-primary,
.button-ghost,
.button-warm,
.button-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
    padding: 14px 26px;
    color: var(--amber-900);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.button-primary:hover,
.button-warm:hover {
    transform: scale(1.045);
}

.button-primary:hover {
    background: #fef3c7;
}

.button-ghost {
    padding: 14px 26px;
    color: var(--white);
    background: rgb(255 255 255 / 0.18);
    border: 1px solid rgb(255 255 255 / 0.28);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.button-ghost:hover {
    background: rgb(255 255 255 / 0.28);
}

.button-warm {
    padding: 12px 22px;
    color: var(--white);
    background: var(--orange-500);
    box-shadow: var(--shadow-md);
}

.button-warm:hover {
    background: var(--orange-600);
}

.button-muted {
    padding: 10px 18px;
    color: var(--gray-700);
    background: var(--gray-100);
}

.button-muted:hover {
    background: var(--gray-200);
}

.hero-search {
    max-width: 550px;
    margin-top: 10px;
}

.hero-search input {
    color: var(--gray-900);
    background: rgb(255 255 255 / 0.94);
    box-shadow: var(--shadow-lg);
}

.hero-search input::placeholder {
    color: var(--gray-500);
}

.hero-card {
    overflow: hidden;
    border-radius: 28px;
    background: rgb(255 255 255 / 0.16);
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgb(255 255 255 / 0.24);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgb(120 53 15 / 0.9), rgb(249 115 22 / 0.72));
}

.hero-slide {
    display: none;
}

.hero-slide.is-active {
    display: block;
}

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

.hero-card-body {
    padding: 24px;
}

.hero-card-body h2 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.18;
}

.hero-card-body p {
    margin: 0 0 18px;
    color: rgb(255 255 255 / 0.84);
    font-size: 15px;
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.38);
}

.hero-dot.is-active {
    width: 30px;
    background: var(--amber-300);
}

.section {
    padding: 70px 0;
}

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

.section-soft {
    background: linear-gradient(180deg, #fff7ed, var(--white));
}

.section-warm {
    background: linear-gradient(180deg, #fffbeb, #fff7ed);
}

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

.section-heading.center {
    display: block;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}

.section-heading h2,
.page-title h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-heading p,
.page-title p {
    margin: 0;
    color: var(--gray-600);
}

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

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

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

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.card-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

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

.movie-card:hover .card-poster img,
.mini-card:hover img,
.rank-card:hover img {
    transform: scale(1.10);
}

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    padding: 18px;
    color: var(--white);
    opacity: 0;
    background: linear-gradient(0deg, rgb(0 0 0 / 0.68), transparent 70%);
    transition: opacity 0.22s ease;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--white);
    background: var(--orange-500);
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    position: absolute;
    top: 14px;
    right: 14px;
}

.card-body {
    padding: 20px;
}

.card-category {
    color: var(--orange-600);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.card-body h3 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover h3,
.mini-card:hover h3,
.rank-card:hover h3 {
    color: var(--orange-600);
}

.card-body p {
    min-height: 48px;
    margin: 0 0 16px;
    color: var(--gray-600);
    font-size: 14px;
}

.meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--gray-500);
    font-size: 13px;
}

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

.category-card {
    min-height: 210px;
    padding: 30px;
    color: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: scale(1.035);
    box-shadow: var(--shadow-2xl);
}

.category-icon {
    margin-bottom: 14px;
    font-size: 48px;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 25px;
}

.category-card p {
    margin: 0 0 18px;
    color: rgb(255 255 255 / 0.84);
}

.gradient-1 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.gradient-2 { background: linear-gradient(135deg, #ef4444, #f97316); }
.gradient-3 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.gradient-4 { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.gradient-5 { background: linear-gradient(135deg, #14b8a6, #059669); }
.gradient-6 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.gradient-7 { background: linear-gradient(135deg, #fb7185, #db2777); }
.gradient-8 { background: linear-gradient(135deg, #22c55e, #10b981); }

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

.mini-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b, #7c2d12);
    transition: transform 0.45s ease;
}

.mini-card h3 {
    margin: 10px 0 4px;
    font-size: 16px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    overflow: hidden;
    min-height: 150px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

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

.rank-body {
    padding: 18px;
}

.rank-body h3 {
    margin: 6px 0 10px;
    line-height: 1.35;
}

.cta-panel {
    padding: 46px;
    text-align: center;
    color: var(--white);
    border-radius: 32px;
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500), var(--orange-500));
    box-shadow: var(--shadow-xl);
}

.cta-panel h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 46px);
}

.cta-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 42px;
    margin: 28px 0;
}

.cta-number {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
}

.page-hero {
    padding: 64px 0;
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-600), var(--amber-600), var(--orange-600));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: rgb(255 255 255 / 0.78);
    font-size: 14px;
}

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

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.toolbar-field {
    min-width: min(100%, 320px);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 11px 18px;
    background: var(--white);
    outline: none;
}

.toolbar-field:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgb(249 115 22 / 0.14);
}

.detail-page {
    background: var(--gray-50);
}

.detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 28px;
    padding: 34px 0 72px;
}

.panel {
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.panel-body {
    padding: 26px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: #000000;
}

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

.player-cover-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(0deg, rgb(0 0 0 / 0.36), rgb(0 0 0 / 0.14));
    transition: opacity 0.2s ease;
}

.player-cover-button.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-orb {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.24);
    box-shadow: 0 0 0 12px rgb(255 255 255 / 0.12);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.player-message {
    display: none;
    position: absolute;
    inset: 0;
    place-items: center;
    padding: 24px;
    text-align: center;
    color: var(--white);
    background: rgb(0 0 0 / 0.78);
}

.player-message.is-visible {
    display: grid;
}

.detail-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.tag {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 13px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 26px;
    color: var(--gray-600);
}

.info-grid strong {
    color: var(--gray-900);
}

.article-section {
    padding-top: 22px;
    border-top: 1px solid var(--gray-200);
}

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

.article-section h2,
.sidebar h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.review-box {
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.sidebar {
    position: sticky;
    top: 86px;
    align-self: start;
}

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

.side-item {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 12px;
    align-items: center;
}

.side-item img {
    width: 104px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

.side-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.3;
}

.search-results {
    min-height: 360px;
}

.empty-state {
    padding: 56px 20px;
    text-align: center;
    color: var(--gray-500);
}

.site-footer {
    color: var(--gray-300);
    background: linear-gradient(180deg, var(--gray-900), #000000);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 46px 0;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.footer-grid p,
.footer-grid li {
    color: var(--gray-400);
    font-size: 14px;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.footer-grid a:hover {
    color: var(--amber-300);
}

.footer-bottom {
    padding: 18px 0 28px;
    color: var(--gray-500);
    border-top: 1px solid rgb(255 255 255 / 0.08);
    font-size: 13px;
}

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

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

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

@keyframes softPulse {
    0%, 100% { opacity: 0.16; }
    50% { opacity: 0.28; }
}

@media (max-width: 1024px) {
    .hero-inner,
    .detail-shell {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 560px;
    }

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

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

    .sidebar {
        position: static;
    }

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

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

    .mobile-toggle {
        display: inline-flex;
    }

    .header-inner {
        min-height: 58px;
    }

    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 48px 0 38px;
    }

    .hero-card {
        border-radius: 22px;
    }

    .section {
        padding: 48px 0;
    }

    .section-heading,
    .toolbar {
        display: block;
    }

    .section-heading a,
    .toolbar .toolbar-field {
        margin-top: 14px;
    }

    .movie-grid,
    .rank-grid,
    .category-grid,
    .mini-grid,
    .movie-grid.compact {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 130px 1fr;
    }

    .detail-shell {
        padding-top: 20px;
    }

    .panel-body {
        padding: 20px;
    }

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

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