:root {
    --brand-start: #f97316;
    --brand-mid: #ef4444;
    --brand-end: #ec4899;
    --text-main: #1f2937;
    --text-soft: #6b7280;
    --page-bg: #fff7ed;
    --card-bg: #ffffff;
    --line: #fed7aa;
    --shadow: 0 18px 45px rgba(249, 115, 22, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    display: block;
    width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-mid), var(--brand-end));
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.24);
}

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

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

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

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 650;
}

.desktop-nav a,
.mobile-panel a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: #ffedd5;
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    padding: 10px 15px;
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.header-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.play-overlay button,
.filter-bar button {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button {
    color: #ef4444;
    background: #ffffff;
}

.mobile-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    font-size: 20px;
}

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.main-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.62) 44%, rgba(17, 24, 39, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    height: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    background: rgba(17, 24, 39, 0.34);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.2);
    font-weight: 750;
    font-size: 14px;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 640px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-mid));
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.play-overlay button:hover,
.filter-bar button:hover {
    transform: translateY(-2px);
}

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

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

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
}

.quick-panel {
    position: relative;
    z-index: 4;
    width: min(1280px, calc(100% - 32px));
    margin: -52px auto 60px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.quick-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    border: 1px solid #ffedd5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-card:hover,
.movie-card:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(249, 115, 22, 0.22);
}

.quick-card span {
    color: var(--brand-mid);
    font-weight: 800;
}

.quick-card strong {
    display: block;
    margin-top: 8px;
    font-size: 19px;
}

.page-hero {
    margin: 34px 0 28px;
    padding: 42px;
    border-radius: 32px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 28%), linear-gradient(120deg, var(--brand-start), var(--brand-mid), var(--brand-end));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 54px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.content-section {
    margin: 58px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--text-soft);
}

.section-link {
    color: var(--brand-mid);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid #ffedd5;
    border-radius: 24px;
    background: var(--card-bg);
    box-shadow: 0 14px 36px rgba(249, 115, 22, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.68) 100%);
}

.poster-play {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-mid));
    font-size: 13px;
    font-weight: 800;
}

.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.card-body {
    padding: 16px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
}

.card-meta span,
.detail-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.32;
}

.movie-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-list span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #c2410c;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid #ffedd5;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 14px 36px rgba(249, 115, 22, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: var(--text-soft);
}

.category-card span {
    margin-top: 18px;
    color: var(--brand-mid);
    font-weight: 850;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 0 0 24px;
    padding: 18px;
    border: 1px solid #ffedd5;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.09);
}

.filter-bar input,
.filter-bar select {
    min-width: 180px;
    color: var(--text-main);
    border-color: #fed7aa;
    background: #fff7ed;
}

.filter-bar button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-mid));
}

.empty-message {
    display: none;
    padding: 28px;
    border-radius: 24px;
    text-align: center;
    color: var(--text-soft);
    background: #ffffff;
    border: 1px solid #ffedd5;
}

.empty-message.is-visible {
    display: block;
}

.detail-hero {
    margin: 36px 0;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 28px;
    border-radius: 34px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid #ffedd5;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 3 / 4;
    background: #111827;
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.24);
}

.detail-poster img {
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    margin: 12px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.detail-info .lead {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 18px;
}

.breadcrumb {
    margin-bottom: 10px;
    color: var(--brand-mid);
    font-weight: 800;
}

.player-card {
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
}

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

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.42), rgba(17, 24, 39, 0.78));
    cursor: pointer;
}

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

.play-overlay button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-mid));
    box-shadow: 0 16px 32px rgba(239, 68, 68, 0.3);
}

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

.article-box {
    margin: 34px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.article-card {
    padding: 28px;
    border: 1px solid #ffedd5;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(249, 115, 22, 0.1);
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-card p {
    margin: 0;
    color: #4b5563;
}

.site-footer {
    margin-top: 70px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #030712);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.footer-title {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 850;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

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

.site-footer li + li {
    margin-top: 8px;
}

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

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

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    width: 46px;
    height: 46px;
    display: none;
    border: none;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-mid));
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
    cursor: pointer;
}

.back-top.is-visible {
    display: block;
}

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 14px;
        font-size: 14px;
    }

    .header-search input {
        width: 150px;
    }

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

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

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

    .hero-content {
        min-height: 560px;
    }

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

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

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

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

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

@media (max-width: 640px) {
    .brand-text {
        font-size: 20px;
    }

    .hero-carousel {
        min-height: 610px;
    }

    .hero-content {
        height: 610px;
        align-items: flex-end;
        padding-bottom: 70px;
    }

    .hero-copy {
        padding: 24px;
        border-radius: 24px;
    }

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

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

    .page-hero {
        padding: 28px;
        border-radius: 26px;
    }

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

    .card-body {
        padding: 12px;
    }

    .movie-card h3 {
        font-size: 16px;
    }

    .detail-hero {
        padding: 18px;
        border-radius: 26px;
    }

    .article-card {
        padding: 22px;
    }
}
