* {
    box-sizing: border-box;
}

:root {
    --bg: #fffbeb;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --soft: #fef3c7;
    --line: #f3e8d0;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --green: #16a34a;
    --dark: #111827;
    --shadow: 0 18px 40px rgba(124, 45, 18, 0.12);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(251, 146, 60, 0.16);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), #facc15);
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.35);
}

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

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

.nav-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #9a3412;
}

.mobile-nav {
    display: none;
    padding: 12px 20px 18px;
    border-top: 1px solid #fed7aa;
    background: #ffffff;
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: #fff7ed;
    color: var(--orange);
}

.hero-shell {
    position: relative;
    overflow: hidden;
    min-height: 660px;
    padding: 58px 0 64px;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.42), transparent 36%),
        radial-gradient(circle at 90% 20%, rgba(249, 115, 22, 0.24), transparent 30%),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #ffffff 100%);
}

.hero-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.45;
}

.hero-bg-orb.one {
    right: 6%;
    top: 90px;
    width: 260px;
    height: 260px;
    background: #fdba74;
}

.hero-bg-orb.two {
    left: 4%;
    bottom: 60px;
    width: 180px;
    height: 180px;
    background: #fde68a;
}

.hero-container {
    position: relative;
}

.hero-slider {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.75fr);
    gap: 48px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: rgba(255, 237, 213, 0.94);
    font-size: 14px;
    font-weight: 900;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 700px;
    margin: 0;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.85;
}

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

.hero-tags {
    margin: 24px 0 28px;
}

.hero-tags span,
.tag-row span,
.detail-tags a,
.quick-links a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span,
.detail-tags a,
.quick-links a {
    padding: 8px 12px;
}

.tag-row span {
    padding: 5px 9px;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), #f59e0b);
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.32);
}

.btn.ghost {
    color: #9a3412;
    background: #ffffff;
    border: 1px solid #fed7aa;
}

.hero-poster {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.85);
    border-radius: 34px;
    background: linear-gradient(160deg, #fed7aa, #fef3c7);
    box-shadow: 0 30px 80px rgba(124, 45, 18, 0.22);
}

.hero-poster::after {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    content: "";
    background: linear-gradient(to top, rgba(17, 24, 39, 0.42), transparent);
}

.hero-image,
.poster-image,
.category-image,
.detail-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #fed7aa;
}

.hero-dot.active {
    background: var(--orange);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 150px 150px 160px auto;
    gap: 14px;
    align-items: center;
    margin-top: -34px;
    padding: 16px;
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    background: #fff7ed;
}

.search-box input,
.filter-select {
    width: 100%;
    border: 0;
    outline: 0;
    color: #111827;
    background: transparent;
}

.filter-select {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    background: #fff7ed;
    font-weight: 700;
}

.result-count {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.section-block {
    padding: 64px 0;
}

.warm-section {
    background: #ffffff;
}

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

.section-heading h2 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -0.04em;
}

.section-heading a,
.section-heading span,
.text-link {
    color: var(--orange);
    font-weight: 900;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(124, 45, 18, 0.16);
}

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

.poster-image {
    transition: transform 0.35s ease;
}

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    background: rgba(249, 115, 22, 0.94);
}

.rank-badge {
    left: 12px;
    top: 12px;
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    background: #dc2626;
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card:hover .card-title {
    color: var(--orange-dark);
}

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    margin: 10px 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.meta-row span + span::before {
    margin-right: 8px;
    content: "•";
    color: #fdba74;
}

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

.page-hero,
.detail-hero {
    padding: 62px 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(253, 186, 116, 0.45), transparent 32%),
        linear-gradient(135deg, #fff7ed, #ffffff);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 22px;
    overflow: hidden;
    padding: 18px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #fdba74, #fef3c7);
}

.category-cover span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    font-weight: 900;
}

.category-card h2 {
    margin: 4px 0 10px;
}

.category-card p {
    color: var(--muted);
    line-height: 1.7;
}

.quick-links {
    margin-top: 22px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #7c2d12;
    font-size: 14px;
    font-weight: 800;
}

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

.player-card,
.movie-aside,
.story-card,
.info-card,
.rank-panel {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-card {
    padding: 12px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #050505;
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.36);
    transform: translate(-50%, -50%);
}

.big-play.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 16px;
    margin: 0;
    color: #ffffff;
    font-size: 14px;
}

.movie-aside {
    padding: 22px;
}

.aside-poster {
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 20px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.movie-aside h1 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.detail-one-line {
    color: #4b5563;
    line-height: 1.75;
}

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

.detail-meta span {
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 900;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 56px 0 0;
}

.story-card,
.info-card {
    padding: 28px;
}

.story-card h2,
.info-card h2,
.rank-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.story-card p {
    margin: 0 0 26px;
    color: #374151;
    font-size: 17px;
    line-height: 2;
}

.info-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 16px;
    margin: 0 0 18px;
}

.info-card dt {
    color: #9a3412;
    font-weight: 900;
}

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

.rank-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    padding: 60px 0;
}

.rank-panel {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 22px;
}

.rank-row {
    display: grid;
    grid-template-columns: 34px 1fr 44px;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3e8d0;
}

.rank-row b {
    display: grid;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: var(--orange);
}

.rank-row span {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em {
    color: #dc2626;
    font-style: normal;
    font-weight: 900;
}

.rank-content .search-panel {
    width: 100%;
    margin: 0 0 28px;
}

.text-page {
    padding: 56px 0;
}

.text-page article {
    max-width: 900px;
    padding: 34px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.text-page p {
    color: #374151;
    font-size: 17px;
    line-height: 2;
}

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

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

.site-footer h3,
.site-footer h4 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer p,
.site-footer li {
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: #fb923c;
}

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

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

    .desktop-nav {
        gap: 14px;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-shell {
        min-height: auto;
        padding-bottom: 90px;
    }

    .hero-slider {
        min-height: 860px;
    }

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

    .hero-poster {
        min-height: 420px;
    }

    .search-panel {
        grid-template-columns: 1fr 1fr;
    }

    .search-box {
        grid-column: 1 / -1;
    }

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

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

    .hero-slider {
        min-height: 760px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-poster {
        min-height: 300px;
        border-width: 6px;
    }

    .search-panel,
    .movie-grid,
    .small-grid,
    .featured-grid,
    .category-grid,
    .category-card {
        grid-template-columns: 1fr;
    }

    .result-count {
        grid-column: 1 / -1;
    }

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

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