:root {
    --amber: #f59e0b;
    --orange: #f97316;
    --slate: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: rgba(148, 163, 184, 0.25);
    --shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7ed 0, #f8fafc 24rem, #ffffff 100%);
    color: #0f172a;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber), var(--orange), #d97706);
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(217, 119, 6, 0.35);
}

.nav-wrap {
    max-width: 1280px;
    height: 4.25rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.brand {
    font-size: 1.55rem;
}

.brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.nav-link {
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0.95;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.nav-search,
.page-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 0.25rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.nav-search input,
.page-search input,
.local-filter input {
    outline: none;
    background: transparent;
    color: #0f172a;
    min-width: 11rem;
    padding: 0.65rem 0.9rem;
}

.nav-search button,
.page-search button {
    background: linear-gradient(90deg, var(--amber), var(--orange));
    color: #ffffff;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

.menu-button {
    display: none;
    font-size: 1.65rem;
    font-weight: 900;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 1.25rem 1rem;
    background: rgba(146, 64, 14, 0.92);
}

.mobile-panel.is-open {
    display: grid;
    gap: 0.85rem;
}

.mobile-panel a {
    font-weight: 800;
}

main {
    padding-top: 4.25rem;
}

.hero-shell {
    position: relative;
    min-height: 74vh;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.62fr);
    align-items: center;
    gap: 3rem;
    padding: 6rem max(1.25rem, calc((100vw - 1280px) / 2)) 7rem;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.14), transparent 26rem), linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.78));
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-copy {
    color: #ffffff;
    max-width: 46rem;
}

.eyebrow,
.section-title span,
.page-hero span {
    display: inline-flex;
    color: #fff7ed;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.95), rgba(249, 115, 22, 0.95));
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-weight: 900;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin-top: 1rem;
    font-size: clamp(2.8rem, 7vw, 6.7rem);
    line-height: 0.92;
    font-weight: 950;
    letter-spacing: -0.07em;
    text-shadow: 0 18px 38px rgba(15, 23, 42, 0.45);
}

.hero-copy p {
    margin-top: 1.25rem;
    max-width: 42rem;
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    line-height: 1.82;
    color: rgba(255, 255, 255, 0.88);
}

.hero-meta,
.detail-meta,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.hero-meta {
    margin-top: 1.5rem;
}

.hero-meta span,
.detail-meta span,
.meta-row span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 800;
    backdrop-filter: blur(16px);
}

.hero-actions,
.detail-intro .primary-btn {
    margin-top: 1.7rem;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.95rem 1.35rem;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
    background: linear-gradient(90deg, var(--amber), var(--orange));
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.35);
}

.secondary-btn {
    margin-left: 0.75rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.primary-btn:hover,
.secondary-btn:hover,
.movie-card:hover,
.category-tile:hover {
    transform: translateY(-3px);
}

.hero-poster {
    display: block;
    border-radius: 2rem;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    min-height: 28rem;
    background: linear-gradient(135deg, #334155, #111827);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5);
}

.hero-poster img,
.poster-frame img,
.compact-thumb img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span,
.play-icon {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.9);
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.35);
}

.hero-poster span {
    right: 1.25rem;
    bottom: 1.25rem;
    width: 4.3rem;
    height: 4.3rem;
    border-radius: 999px;
    font-size: 1.65rem;
}

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

.hero-dots button {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 2.4rem;
    background: #ffffff;
}

.hero-category-bar {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    width: min(92vw, 1180px);
    padding: 0.8rem;
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(18px);
}

.hero-category-bar a {
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.58rem 1rem;
    color: #ffffff;
    font-weight: 850;
    background: rgba(255, 255, 255, 0.12);
}

.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4.5rem 1.25rem;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 950;
    letter-spacing: -0.06em;
    color: #111827;
}

.section-title a {
    color: #d97706;
    font-weight: 900;
}

.compact-title h2 {
    font-size: 2.1rem;
}

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

.dark-section,
.ranking-panel {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
}

.dark-title h2,
.ranking-panel h2 {
    color: #ffffff;
}

.featured-grid,
.movie-grid,
.category-grid {
    display: grid;
    gap: 1.35rem;
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.poster-frame img {
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.08);
}

.type-badge,
.score-badge {
    position: absolute;
    top: 0.85rem;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    padding: 0.34rem 0.62rem;
    font-size: 0.78rem;
    font-weight: 900;
}

.type-badge {
    left: 0.85rem;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.score-badge {
    right: 0.85rem;
    background: rgba(0, 0, 0, 0.68);
}

.play-icon {
    left: 50%;
    top: 50%;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-content {
    padding: 1rem;
}

.card-content h3,
.compact-info h3 {
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.035em;
}

.card-content h3 {
    font-size: 1.08rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content p {
    margin-top: 0.55rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    margin-top: 0.8rem;
    gap: 0.4rem;
}

.meta-row span {
    background: #fff7ed;
    color: #b45309;
    padding: 0.26rem 0.5rem;
    font-size: 0.76rem;
}

.tag-row {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.tag-row span {
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.54rem;
    font-size: 0.75rem;
    font-weight: 750;
}

.stack-list,
.rank-list,
.side-list,
.ranking-board {
    display: grid;
    gap: 0.85rem;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 25rem;
    gap: 2rem;
}

.ranking-panel {
    border-radius: 1.6rem;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.compact-card {
    display: grid;
    grid-template-columns: auto 5rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-panel .compact-card {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.compact-card:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.compact-thumb {
    width: 5rem;
    aspect-ratio: 3 / 4;
    border-radius: 0.75rem;
    overflow: hidden;
    background: linear-gradient(135deg, #334155, #111827);
}

.rank-num {
    color: #f59e0b;
    font-size: 1.35rem;
    font-weight: 950;
}

.compact-info h3 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-info p {
    margin-top: 0.25rem;
    color: #64748b;
    line-height: 1.48;
    font-size: 0.86rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-info div {
    margin-top: 0.35rem;
    color: #b45309;
    font-size: 0.78rem;
    font-weight: 800;
}

.ranking-panel .compact-info h3,
.ranking-panel .compact-info p,
.ranking-panel .compact-info div {
    color: #ffffff;
}

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

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

.category-tile {
    display: grid;
    gap: 0.55rem;
    min-height: 9.5rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.94), rgba(249, 115, 22, 0.92));
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile strong {
    font-size: 1.35rem;
    font-weight: 950;
}

.category-tile span {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.55;
}

.page-main {
    background: #f8fafc;
}

.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 7rem 1.25rem 3rem;
}

.page-hero h1 {
    margin-top: 1rem;
    font-size: clamp(2.6rem, 6vw, 5.5rem);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.page-hero p {
    margin-top: 1rem;
    max-width: 50rem;
    color: #475569;
    line-height: 1.85;
    font-size: 1.1rem;
}

.page-search {
    margin-top: 1.5rem;
    width: min(100%, 38rem);
}

.page-search input {
    flex: 1;
}

.local-filter {
    margin-bottom: 1.4rem;
    width: min(100%, 32rem);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 10px 30px rgba(15, 23, 42, 0.05);
}

.local-filter input {
    width: 100%;
}

.search-status {
    margin-bottom: 1.25rem;
    color: #92400e;
    font-weight: 900;
}

.ranking-board .compact-card {
    grid-template-columns: 3rem 5.5rem minmax(0, 1fr);
}

.detail-main {
    background: linear-gradient(180deg, #111827 0, #111827 25rem, #f8fafc 25rem, #f8fafc 100%);
}

.detail-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6.5rem 1.25rem 3rem;
    display: grid;
    grid-template-columns: 19rem minmax(0, 1fr);
    gap: 2rem;
    align-items: end;
    color: #ffffff;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 1.4rem;
    overflow: hidden;
    background: linear-gradient(135deg, #334155, #111827);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #fbbf24;
}

.detail-intro h1 {
    margin-top: 0.9rem;
    font-size: clamp(2.3rem, 5.6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.detail-intro p {
    margin-top: 1rem;
    max-width: 56rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.85;
}

.detail-meta {
    margin-top: 1rem;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: 2rem;
    padding-top: 1rem;
}

.player-card,
.text-card,
.detail-side {
    background: #ffffff;
    border-radius: 1.35rem;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.video-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.video-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.55));
}

.video-cover.is-hidden {
    display: none;
}

.video-cover span {
    width: 5rem;
    height: 5rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 20px 55px rgba(249, 115, 22, 0.45);
}

.text-card {
    margin-top: 1.25rem;
    padding: 1.5rem;
}

.text-card h2,
.detail-side h2 {
    font-size: 1.45rem;
    font-weight: 950;
    letter-spacing: -0.04em;
    margin-bottom: 0.8rem;
}

.text-card p {
    color: #475569;
    line-height: 1.95;
}

.detail-side {
    align-self: start;
    padding: 1rem;
}

.site-footer {
    background: linear-gradient(180deg, #0f172a, #020617);
    color: #ffffff;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.5rem 1.25rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-grid h3 {
    color: #fbbf24;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.footer-grid p,
.footer-grid a {
    display: block;
    color: #cbd5e1;
    line-height: 1.75;
    margin-bottom: 0.35rem;
}

.footer-brand {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem;
    text-align: center;
    color: #94a3b8;
}

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

    .menu-button {
        display: block;
    }

    .nav-search {
        margin-left: auto;
    }

    .featured-grid,
    .movie-grid,
    .five-col,
    .category-grid,
    .big-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .two-column-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-wrap {
        height: auto;
        min-height: 4.25rem;
        flex-wrap: wrap;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .nav-search {
        order: 4;
        width: 100%;
    }

    .nav-search input {
        flex: 1;
        min-width: 0;
    }

    main {
        padding-top: 6.5rem;
    }

    .hero-shell {
        min-height: 86vh;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 4rem;
        padding-bottom: 8rem;
    }

    .hero-poster {
        min-height: 0;
        width: min(64vw, 20rem);
        margin: 0 auto;
    }

    .hero-dots {
        bottom: 5rem;
    }

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

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

    .detail-poster {
        width: min(64vw, 18rem);
    }
}

@media (max-width: 560px) {
    .brand {
        font-size: 1.25rem;
    }

    .section-title {
        display: block;
    }

    .section-title a {
        display: inline-block;
        margin-top: 0.65rem;
    }

    .featured-grid,
    .movie-grid,
    .five-col,
    .category-grid,
    .big-category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-intro h1 {
        letter-spacing: -0.05em;
    }

    .secondary-btn {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    .compact-card,
    .ranking-board .compact-card {
        grid-template-columns: auto 4.5rem minmax(0, 1fr);
    }
}
