:root {
    color-scheme: light;
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-200: #fed7aa;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-600: #ea580c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.13);
    --shadow-soft: 0 10px 30px rgba(120, 53, 15, 0.09);
    --radius-lg: 18px;
    --radius-xl: 28px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--amber-50) 0%, #fffaf0 42%, #fff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(217, 119, 6, 0.14);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(100% - 32px, var(--container));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    color: var(--amber-900);
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.28);
    font-size: 15px;
}

.brand-text {
    font-size: 22px;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--amber-900);
    background: var(--amber-100);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--amber-900);
    background: var(--amber-100);
    font-weight: 800;
}

main {
    min-height: 60vh;
}

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

.page-pad {
    padding: 42px 0 72px;
}

.hero-section {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #1f1305, #92400e 52%, #f59e0b);
    color: var(--white);
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
}

.hero-image.is-missing {
    display: none;
}

.hero-slide::before {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.10);
    font-size: clamp(48px, 12vw, 150px);
    font-weight: 1000;
    text-align: center;
    letter-spacing: -0.08em;
    background: radial-gradient(circle at 78% 30%, rgba(245, 158, 11, 0.36), transparent 34%), linear-gradient(135deg, #1f1305, #92400e 62%, #f59e0b);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.34) 52%, rgba(0, 0, 0, 0.08)), linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--container));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 430px;
    gap: 38px;
    align-items: center;
    padding: 58px 0;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(254, 215, 170, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #fed7aa;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.96;
    font-weight: 1000;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--amber-900);
    background: rgba(255, 237, 213, 0.92);
    font-size: 13px;
    font-weight: 800;
}

.pill.dark {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 16px 28px rgba(217, 119, 6, 0.26);
}

.button.secondary {
    color: var(--amber-900);
    background: var(--white);
}

.button.ghost {
    color: var(--amber-900);
    background: var(--amber-100);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(120, 53, 15, 0.18);
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.hero-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.20), rgba(120, 53, 15, 0.55));
}

.hero-poster::before {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.32);
    font-size: 34px;
    font-weight: 1000;
    text-align: center;
}

.hero-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster img.is-missing {
    display: none;
}

.hero-panel-body {
    padding: 20px;
}

.hero-panel-body h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.hero-panel-body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

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

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

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

.quick-search {
    margin-top: -34px;
    position: relative;
    z-index: 8;
}

.search-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.search-card.wide {
    grid-template-columns: 1fr 180px 160px auto;
    margin-bottom: 26px;
}

.action-row {
    margin-top: 18px;
}

.spaced-top {
    margin-top: 28px;
}

.search-card input,
.search-card select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--amber-200);
    border-radius: 16px;
    padding: 0 16px;
    outline: none;
    color: var(--gray-900);
    background: var(--white);
}

.search-card input:focus,
.search-card select:focus {
    border-color: var(--amber-600);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.section {
    padding: 54px 0;
}

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

.section-title {
    margin: 0 0 8px;
    color: var(--amber-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 1000;
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.7;
}

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.cover-shell {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
}

.cover-shell::before {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.36);
    font-size: 22px;
    font-weight: 1000;
    line-height: 1.1;
}

.cover-shell img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.cover-shell img.is-missing {
    display: none;
}

.type-badge,
.score-badge {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.type-badge {
    left: 10px;
    top: 10px;
    color: var(--amber-900);
    background: rgba(255, 237, 213, 0.95);
}

.score-badge {
    right: 10px;
    bottom: 10px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.72);
}

.card-body {
    padding: 14px;
}

.card-title {
    display: block;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-title:hover {
    color: var(--amber-700);
}

.card-meta {
    margin: 7px 0 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--gray-700);
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 8px;
    color: var(--amber-800);
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile {
    display: flex;
    min-height: 96px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 119, 6, 0.36);
}

.category-tile strong {
    color: var(--amber-900);
    font-size: 18px;
}

.category-tile span {
    color: var(--gray-500);
    font-size: 13px;
}

.page-hero {
    padding: 58px 0;
    color: var(--white);
    background: radial-gradient(circle at 80% 20%, rgba(254, 215, 170, 0.30), transparent 28%), linear-gradient(135deg, var(--amber-900), var(--amber-700) 58%, var(--orange-600));
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.06;
    font-weight: 1000;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.8;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-bottom: 24px;
}

.filter-row input {
    min-height: 48px;
    border: 1px solid var(--amber-200);
    border-radius: 16px;
    padding: 0 16px;
    outline: none;
    background: var(--white);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 16px;
    color: var(--amber-900);
    background: var(--amber-100);
    font-weight: 900;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 14px;
    padding: 0 12px;
    background: var(--white);
    color: var(--amber-900);
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.pagination span {
    color: var(--white);
    background: var(--amber-700);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 70px 86px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    font-weight: 1000;
}

.rank-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
}

.rank-cover::before {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    font-weight: 900;
}

.rank-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-cover img.is-missing {
    display: none;
}

.rank-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 1000;
}

.rank-title:hover {
    color: var(--amber-700);
}

.rank-desc {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.65;
}

.rank-score {
    color: var(--amber-700);
    font-size: 22px;
    font-weight: 1000;
}

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

.player-card,
.detail-card,
.side-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--black);
}

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--black);
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.80));
    cursor: pointer;
}

.player-frame.is-playing .player-overlay {
    display: none;
}

.play-bubble {
    display: inline-grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.36);
    font-size: 34px;
    transform: translateX(3px);
}

.player-meta {
    padding: 22px;
}

.player-meta h1 {
    margin: 0 0 10px;
    color: var(--amber-900);
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.1;
    font-weight: 1000;
    letter-spacing: -0.04em;
}

.player-meta p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.8;
}

.detail-card {
    padding: 26px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 16px;
    color: var(--amber-900);
    font-size: 24px;
    font-weight: 1000;
}

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

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.meta-item {
    padding: 14px;
    border-radius: 16px;
    background: var(--amber-50);
}

.meta-item span {
    display: block;
    margin-bottom: 4px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
}

.meta-item strong {
    color: var(--amber-900);
}

.side-card {
    padding: 20px;
}

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

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

.related-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
}

.related-cover::before {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 6px;
    text-align: center;
    color: rgba(255, 255, 255, 0.34);
    font-size: 11px;
    font-weight: 900;
}

.related-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-cover img.is-missing {
    display: none;
}

.related-title {
    display: block;
    margin-bottom: 5px;
    font-weight: 900;
    line-height: 1.35;
}

.related-title:hover {
    color: var(--amber-700);
}

.related-meta {
    color: var(--gray-500);
    font-size: 13px;
}

.search-results-empty {
    grid-column: 1 / -1;
    padding: 42px;
    border-radius: 24px;
    background: var(--white);
    color: var(--gray-500);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.site-footer {
    padding: 48px 0;
    background: #241407;
    color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
}

.footer-title {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 22px;
    font-weight: 1000;
}

.footer-text {
    margin: 0;
    line-height: 1.8;
}

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

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

.hidden-card {
    display: none !important;
}

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

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

@media (max-width: 980px) {
    .hero-content,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

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

    .rank-item {
        grid-template-columns: 54px 76px 1fr;
    }

    .rank-score {
        grid-column: 3;
        justify-self: start;
        font-size: 18px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: auto;
        min-height: 64px;
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .brand-text {
        font-size: 18px;
    }

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

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 4px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        border-radius: 14px;
    }

    .hero-section,
    .hero-content {
        min-height: 660px;
    }

    .hero-content {
        padding: 38px 0 76px;
    }

    .hero-panel {
        display: none;
    }

    .search-card,
    .search-card.wide,
    .filter-row {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

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

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

    .rank-item {
        grid-template-columns: 44px 70px 1fr;
        gap: 12px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

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

@media (max-width: 420px) {
    .container,
    .header-inner,
    .hero-content {
        width: min(100% - 24px, var(--container));
    }

    .movie-grid,
    .category-grid {
        gap: 12px;
    }

    .card-body {
        padding: 12px;
    }

    .hero-title {
        font-size: 38px;
    }
}
