:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #dc2626;
    --pink: #db2777;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --card: #ffffff;
    --dark: #111827;
    --radius: 1rem;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--soft);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--orange-dark), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

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

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--orange-dark);
    transition: width 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.top-search {
    position: relative;
    width: 250px;
}

.top-search input,
.mobile-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: #f3f4f6;
    padding: 11px 48px 11px 18px;
    color: var(--text);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.top-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px 24px 20px;
    background: #ffffff;
}

.mobile-menu.open {
    display: block;
}

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-search input {
    padding-right: 18px;
}

.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.mobile-menu nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-link {
    border-radius: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    color: #374151;
}

.mobile-link.active,
.mobile-link:hover {
    color: var(--orange-dark);
    background: #fff7ed;
}

.page-main {
    padding-top: 72px;
}

.hero-carousel {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(90deg, #ea580c, #dc2626, #db2777);
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 600px;
}

.hero-slide.active {
    display: block;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.72)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: auto, 60px 60px, 60px 60px;
    opacity: 0.42;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 600px;
    margin: 0 auto;
    padding: 64px 24px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    gap: 56px;
    align-items: center;
}

.hero-copy {
    max-width: 780px;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fed7aa;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-desc {
    margin: 24px 0 0;
    max-width: 760px;
    font-size: clamp(18px, 2.3vw, 26px);
    color: rgba(255, 255, 255, 0.9);
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.tag-row span {
    background: #fff7ed;
    color: #c2410c;
    padding: 4px 9px;
    font-size: 12px;
}

.detail-tags span {
    background: #fff7ed;
    color: #c2410c;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.search-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-panel button {
    color: var(--orange-dark);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover,
.search-panel button:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 26px;
    line-height: 1;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 28px;
    background: #ffffff;
}

.search-panel,
.content-section,
.article-section,
.player-section,
.detail-layout,
.page-hero,
.filter-bar,
.breadcrumb {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.search-panel {
    margin-top: -48px;
    position: relative;
    z-index: 5;
    padding: 32px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-panel h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 900;
}

.search-panel p {
    margin: 8px 0 22px;
    color: var(--muted);
}

.search-panel form {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 12px;
}

.search-panel input {
    padding-right: 18px;
}

.search-panel button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 16px 34px rgba(220, 38, 38, 0.24);
    cursor: pointer;
}

.content-section {
    padding: 64px 24px 0;
}

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

.section-heading h2,
.article-section h2,
.player-section h2,
.site-footer h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.section-more {
    min-height: 40px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}

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

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

.category-tile {
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #ef4444, #db2777);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #f97316, #7c2d12);
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 54px rgba(220, 38, 38, 0.25);
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%) scale(0.82);
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.card-rank {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 3;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 14px;
}

.card-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 850;
    color: var(--text);
}

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

.card-meta {
    margin: 5px 0 10px;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    min-height: 44px;
    margin: 10px 0 0;
    font-size: 13px;
    color: #4b5563;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.inner-main,
.detail-main {
    padding-left: 24px;
    padding-right: 24px;
}

.breadcrumb {
    padding-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
}

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

.page-hero {
    margin-top: 26px;
    padding: 46px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #dc2626, #db2777);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.small-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

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

.filter-bar {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
}

.filter-bar input,
.filter-bar select {
    border-radius: 16px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    margin-top: 28px;
    padding: 32px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 20px 46px rgba(17, 24, 39, 0.2);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.detail-one-line {
    margin: 20px 0;
    font-size: 20px;
    color: #374151;
}

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

.detail-meta div {
    padding: 16px;
    border-radius: 16px;
    background: #f9fafb;
}

.detail-meta dt {
    color: var(--muted);
    font-size: 13px;
}

.detail-meta dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.detail-info .primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.player-section,
.article-section {
    margin-top: 28px;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    border-radius: 22px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    z-index: 3;
}

.play-overlay span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
    font-size: 34px;
}

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

.player-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    color: #ffffff;
    font-size: 14px;
}

.article-section p {
    color: #374151;
    font-size: 17px;
}

.article-section h2 + p {
    margin-top: 12px;
}

.article-section p + h2 {
    margin-top: 28px;
}

.site-footer {
    margin-top: 72px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
}

.site-footer p,
.site-footer a,
.footer-copy {
    color: #9ca3af;
}

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

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

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

.site-footer h2 {
    color: #ffffff;
    font-size: 18px;
}

.footer-copy {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 45;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.28);
    cursor: pointer;
}

.back-top.show {
    display: flex;
}

.hidden-card {
    display: none;
}

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

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

@media (max-width: 920px) {
    .main-nav,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 42px;
    }

    .hero-poster {
        display: none;
    }

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

    .detail-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

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

@media (max-width: 700px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

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

    .page-main {
        padding-top: 64px;
    }

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

    .hero-content {
        padding: 46px 18px 78px;
    }

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

    .hero-desc {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-panel {
        margin: -34px 16px 0;
        padding: 22px;
    }

    .search-panel form,
    .filter-bar,
    .detail-meta {
        grid-template-columns: 1fr;
    }

    .content-section,
    .inner-main,
    .detail-main {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-desc {
        display: none;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        padding: 18px;
    }

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

    .page-hero {
        padding: 28px;
    }

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

@media (max-width: 420px) {
    .category-grid,
    .category-grid.large,
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .mobile-menu nav {
        grid-template-columns: 1fr;
    }
}
