html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.23), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #fffaf0 42%, #ffffff 100%);
    color: #422006;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(245, 158, 11, 0.24);
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(180, 83, 9, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 20px;
    line-height: 1;
    color: #78350f;
}

.brand-text small {
    font-size: 12px;
    color: #b45309;
}

.top-search {
    max-width: 420px;
    flex: 1 1 auto;
    display: flex;
    padding: 4px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.top-search input,
.search-page-form input,
.filter-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #451a03;
}

.top-search input {
    padding: 9px 14px;
}

.top-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    padding: 9px 18px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #78350f;
    font-size: 14px;
    font-weight: 700;
}

.main-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
    color: #ea580c;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #92400e;
    background: #ffedd5;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.18) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.05));
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(251, 191, 36, 0.36);
    border-radius: 999px;
    padding: 7px 13px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(120, 53, 15, 0.25);
}

.hero-copy h1 {
    max-width: 760px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    color: #fde68a;
    font-size: clamp(16px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
    border-radius: 999px;
    padding: 5px 10px;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    background: #fef3c7;
}

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

.primary-btn,
.secondary-btn,
.text-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 44px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 34px rgba(234, 88, 12, 0.32);
}

.secondary-btn {
    color: #fff7ed;
    border: 1px solid rgba(255, 237, 213, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

.text-btn {
    color: #d97706;
    padding-inline: 0;
}

.primary-btn:hover,
.secondary-btn:hover,
.text-btn:hover {
    transform: translateY(-2px);
}

.block-btn {
    width: 100%;
    margin-top: 20px;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

.hero-dot {
    width: 28px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-dot.is-active {
    background: #f59e0b;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: -42px;
    position: relative;
    z-index: 4;
}

.category-tile,
.category-card,
.movie-card,
.ranking-panel,
.page-hero,
.detail-hero,
.player-section,
.detail-content,
.related-section,
.prev-next,
.footer-grid {
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 20px 48px rgba(146, 64, 14, 0.08);
}

.category-tile {
    min-height: 128px;
    padding: 22px;
    display: grid;
    align-content: end;
    gap: 8px;
    overflow: hidden;
    position: relative;
}

.category-tile:before {
    content: "";
    position: absolute;
    inset: auto -30px -55px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.34), rgba(249, 115, 22, 0.22));
}

.category-tile span {
    position: relative;
    color: #78350f;
    font-size: 20px;
    font-weight: 900;
}

.category-tile strong {
    position: relative;
    color: #92400e;
    font-size: 13px;
    font-weight: 500;
}

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

.section-head h2,
.ranking-panel h2,
.page-hero h1,
.detail-info h1,
.detail-content h2,
.player-section h2 {
    margin-top: 10px;
    color: #451a03;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head p,
.ranking-panel p,
.page-hero p,
.detail-info p,
.detail-content p {
    margin-top: 10px;
    color: #92400e;
}

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

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

.listing-grid {
    margin-top: 28px;
}

.movie-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 58px rgba(146, 64, 14, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.movie-card-compact .poster-link {
    aspect-ratio: 16 / 10;
}

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

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

.play-mark,
.card-rank {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
}

.play-mark {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%) scale(0.9);
    border-radius: 50%;
    color: #ffffff;
    opacity: 0;
    background: rgba(245, 158, 11, 0.88);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-rank {
    left: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
}

.card-body {
    padding: 16px;
}

.meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    margin-top: 8px;
    color: #451a03;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.card-body p {
    margin: 8px 0 12px;
    color: #92400e;
    font-size: 13px;
    line-height: 1.65;
}

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

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 28px;
    margin-top: 72px;
}

.rank-list {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
}

.rank-row span {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #ffffff;
    background: #f59e0b;
    font-weight: 900;
}

.rank-row strong {
    color: #451a03;
    font-weight: 900;
}

.rank-row em {
    color: #b45309;
    font-size: 12px;
    font-style: normal;
}

.page-shell {
    padding: 28px 0 80px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
    color: #a16207;
    font-size: 13px;
}

.breadcrumb a:after {
    content: "/";
    margin-left: 8px;
    color: #d97706;
}

.page-hero {
    padding: clamp(28px, 6vw, 58px);
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.2), transparent 24rem),
        rgba(255, 255, 255, 0.88);
}

.small-hero {
    min-height: 260px;
    display: grid;
    align-content: center;
}

.category-hero {
    min-height: 300px;
}

.filter-box,
.search-page-form {
    margin-top: 26px;
    display: flex;
    width: min(620px, 100%);
    padding: 7px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    background: #ffffff;
}

.filter-box input,
.search-page-form input {
    padding: 12px 16px;
}

.category-grid-page {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    padding: 18px;
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: #fed7aa;
}

.category-card h2 {
    color: #451a03;
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    margin: 8px 0 12px;
    color: #92400e;
}

.detail-shell {
    padding: 28px 0 80px;
}

.detail-hero {
    padding: clamp(22px, 4vw, 38px);
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
    border-radius: 24px;
    background: #fed7aa;
    box-shadow: 0 22px 44px rgba(146, 64, 14, 0.18);
}

.detail-info h1 {
    font-size: clamp(36px, 5vw, 62px);
}

.detail-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #fef3c7;
}

.detail-tags {
    margin-top: 18px;
}

.player-section,
.detail-content,
.related-section,
.prev-next {
    margin-top: 28px;
    padding: clamp(20px, 4vw, 34px);
}

.video-frame {
    position: relative;
    margin-top: 18px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 28px 66px rgba(15, 23, 42, 0.24);
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #ffffff;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(245, 158, 11, 0.25), transparent 15rem),
        rgba(2, 6, 23, 0.38);
}

.play-overlay span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 32px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 38px rgba(234, 88, 12, 0.35);
}

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

.play-overlay.is-hidden {
    display: none;
}

.detail-content p {
    color: #78350f;
    font-size: 17px;
    line-height: 1.9;
}

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

.info-list div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    background: #fff7ed;
}

.info-list dt {
    color: #b45309;
    font-size: 12px;
    font-weight: 900;
}

.info-list dd {
    color: #451a03;
    font-weight: 800;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.prev-next a {
    color: #d97706;
    font-weight: 800;
}

.search-page-form {
    align-items: center;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 42px;
    border-radius: 22px;
    color: #92400e;
    text-align: center;
    background: #fff7ed;
}

.site-footer {
    margin-top: 90px;
    padding: 0 0 34px;
    color: #fed7aa;
    background: #1c1917;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    transform: translateY(-38px);
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 28px;
    padding: 34px;
    background: linear-gradient(135deg, #292524, #1c1917);
    border-color: rgba(251, 191, 36, 0.22);
}

.footer-grid h2 {
    color: #fbbf24;
    font-size: 20px;
    font-weight: 950;
}

.footer-grid p {
    margin-top: 12px;
    color: #fdba74;
    line-height: 1.8;
}

.footer-links {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: #fed7aa;
    text-align: center;
}

[hidden] {
    display: none !important;
}

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

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

    .split-layout,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .top-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .mobile-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        border-radius: 16px;
        background: #fff7ed;
    }

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

    .hero-slider,
    .hero-copy {
        min-height: 560px;
        height: 560px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-controls {
        bottom: 16px;
    }

    .category-strip,
    .movie-grid,
    .compact-grid,
    .category-grid-page {
        grid-template-columns: 1fr;
    }

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

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

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

.site-map-list {
    columns: 4 220px;
    column-gap: 28px;
}

.site-map-list li {
    break-inside: avoid;
    margin: 0 0 10px;
}

.site-map-list a {
    color: #d97706;
    font-weight: 700;
}
