:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(180, 83, 9, 0.18);
    --amber: #d97706;
    --amber-dark: #92400e;
    --orange: #ea580c;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 46%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

button,
input {
    font: inherit;
}

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

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--amber-dark);
    letter-spacing: 0.03em;
}

.site-logo::before {
    content: "";
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.32);
}

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

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #78350f;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: var(--amber);
}

.hero {
    position: relative;
    min-height: clamp(620px, 78vh, 820px);
    overflow: hidden;
    background: #111827;
}

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

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

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

.hero-bg {
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.06) contrast(1.03);
}

.hero-shade {
    background: radial-gradient(circle at 78% 38%, rgba(251, 191, 36, 0.12), transparent 34%), linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(35, 23, 8, 0.76) 48%, rgba(17, 24, 39, 0.48) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.05));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: clamp(620px, 78vh, 820px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 56px;
    padding: 96px 0 130px;
}

.hero-text {
    color: #ffffff;
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(251, 191, 36, 0.36);
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(146, 64, 14, 0.2);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.hero p {
    margin: 24px 0 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

.hero-tags {
    margin-top: 26px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #78350f;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

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

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.34);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-control-panel {
    position: absolute;
    left: 50%;
    bottom: 84px;
    z-index: 4;
    width: min(1200px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-control-panel button {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.hero-control-panel > button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

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

.hero-dots button {
    width: 28px;
    height: 8px;
    border-radius: 999px;
    opacity: 0.6;
}

.hero-dots button.is-active {
    width: 52px;
    opacity: 1;
    background: #f59e0b;
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 4;
    width: min(720px, calc(100% - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.hero-search input,
.filter-panel input {
    width: 100%;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 999px;
    outline: none;
    padding: 0 18px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.94);
}

.hero-search button {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
}

.section,
.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 68px 0;
}

.section-soft {
    width: 100%;
    padding-left: max(16px, calc((100% - 1200px) / 2));
    padding-right: max(16px, calc((100% - 1200px) / 2));
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.72), rgba(255, 247, 237, 0.82));
}

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

.section-head h2,
.page-hero h1,
.detail-content h2 {
    margin: 0;
    color: #78350f;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-head > a,
.text-link {
    color: var(--amber-dark);
    font-weight: 900;
}

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

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

.all-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 10px 34px rgba(146, 64, 14, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.36);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #fef3c7;
}

.poster-link img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.play-mark,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.25);
}

.play-mark {
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    opacity: 0.92;
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 34px;
    height: 30px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 13px;
}

.movie-card-body {
    padding: 14px;
}

.movie-card h3 {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.38;
}

.movie-card h3 a:hover {
    color: var(--orange);
}

.movie-card p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line {
    margin-top: 10px;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
}

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

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

.category-tile {
    min-height: 190px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fffbeb);
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.09);
}

.category-tile span {
    display: block;
    margin-bottom: 12px;
    color: var(--amber-dark);
    font-size: 22px;
    font-weight: 950;
}

.category-tile strong {
    display: block;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.mini-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
}

.ranking-section {
    padding-top: 78px;
}

.ranking-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.ranking-list-page {
    padding-bottom: 72px;
}

.ranking-item a {
    display: grid;
    grid-template-columns: 42px 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 26px rgba(146, 64, 14, 0.08);
}

.ranking-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 950;
}

.ranking-item img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.ranking-copy strong {
    color: #78350f;
    font-size: 17px;
}

.ranking-copy em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-copy small {
    color: var(--orange);
    font-weight: 800;
}

.page-shell {
    padding: 38px 0 0;
}

.page-hero {
    margin: 0 0 28px;
    padding: 46px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 32%), linear-gradient(135deg, #fffbeb, #ffffff 62%, #fff7ed);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 58px);
}

.page-hero p {
    max-width: 820px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #92400e;
    font-size: 14px;
    font-weight: 800;
}

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

.filter-panel {
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 251, 235, 0.88);
    backdrop-filter: blur(18px);
}

.sticky-filter {
    position: sticky;
    top: 86px;
    z-index: 8;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    min-height: 36px;
    border: 1px solid rgba(217, 119, 6, 0.26);
    border-radius: 999px;
    padding: 0 14px;
    color: #92400e;
    background: #ffffff;
    font-weight: 850;
}

.filter-buttons button:hover,
.filter-buttons button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.category-overview-list {
    display: grid;
    gap: 28px;
    padding-bottom: 72px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
}

.category-overview-copy h2 {
    margin: 0;
    color: #78350f;
    font-size: 30px;
    font-weight: 950;
}

.category-overview-copy p {
    color: var(--muted);
    line-height: 1.8;
}

.detail-page {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 28px;
}

.player-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.35fr);
    gap: 30px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: radial-gradient(circle at 25% 10%, rgba(251, 191, 36, 0.18), transparent 32%), linear-gradient(135deg, #1f2937, #451a03 48%, #111827);
    box-shadow: 0 28px 78px rgba(17, 24, 39, 0.26);
}

.player-copy {
    color: #ffffff;
}

.player-copy h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.player-copy p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.8;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #fde68a;
}

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

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

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.58));
    z-index: 3;
}

.video-overlay span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 42px rgba(234, 88, 12, 0.35);
    font-size: 34px;
    text-indent: 4px;
}

.video-overlay strong {
    font-size: 18px;
}

.video-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    margin-top: 32px;
}

.detail-poster {
    position: sticky;
    top: 96px;
    align-self: start;
    display: grid;
    gap: 16px;
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.full-button {
    width: 100%;
}

.detail-content {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
}

.detail-content h2 {
    margin-top: 0;
    font-size: 28px;
}

.detail-content h2:not(:first-child) {
    margin-top: 34px;
}

.detail-content p {
    color: #374151;
    font-size: 17px;
    line-height: 1.95;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(180, 83, 9, 0.13);
}

.info-list dt {
    color: #92400e;
    font-weight: 900;
}

.info-list dd {
    margin: 0;
    color: #374151;
}

.related-section {
    width: 100%;
}

.site-footer {
    margin-top: 80px;
    color: #fde68a;
    background: linear-gradient(135deg, #451a03, #111827);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    gap: 18px;
}

.footer-inner strong {
    display: block;
    color: #ffffff;
    font-size: 24px;
}

.footer-inner p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: #fde68a;
    font-weight: 800;
}

.copyright {
    font-size: 13px;
}

[hidden] {
    display: none !important;
}

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

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

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

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: #fffbeb;
        box-shadow: var(--shadow);
    }

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

    .hero-content,
    .player-hero,
    .detail-layout,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
        padding-top: 92px;
    }

    .hero-poster {
        display: none;
    }

    .hero h1 {
        font-size: clamp(36px, 12vw, 58px);
    }

    .ranking-list-home,
    .small-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        position: static;
        max-width: 360px;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .section,
    .page-shell,
    .detail-page,
    .footer-inner {
        width: min(100% - 24px, 1200px);
    }

    .site-logo {
        font-size: 20px;
    }

    .hero {
        min-height: 650px;
    }

    .hero-content {
        min-height: 650px;
        padding-bottom: 156px;
    }

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-control-panel {
        bottom: 118px;
    }

    .section {
        padding: 48px 0;
    }

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

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

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

    .page-hero,
    .player-hero,
    .detail-content {
        padding: 22px;
        border-radius: 24px;
    }

    .ranking-item a {
        grid-template-columns: 36px 62px minmax(0, 1fr);
    }
}
