:root {
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;
    --white: #ffffff;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    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(--gray-900);
    background: linear-gradient(180deg, var(--gray-50), var(--white));
    -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

p {
    line-height: 1.7;
}

.container-custom {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--gray-900), var(--gray-800), var(--gray-900));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    box-shadow: 0 0 28px rgb(249 115 22 / 0.45);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 700;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--orange-500);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: var(--white);
    background: rgb(255 255 255 / 0.08);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgb(255 255 255 / 0.12);
    padding: 10px 0 18px;
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    color: #d1d5db;
    font-weight: 700;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--orange-500);
}

.hero {
    position: relative;
    min-height: 600px;
    color: var(--white);
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slider {
    position: absolute;
    inset: 0;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(0 0 0 / 0.92), rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.48));
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 780px;
    animation: fadeInUp 0.7s ease both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgb(249 115 22 / 0.2);
    color: #fed7aa;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.hero h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.12;
}

.hero p {
    max-width: 720px;
    margin-bottom: 28px;
    color: #e5e7eb;
    font-size: 18px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #fed7aa;
    background: rgb(249 115 22 / 0.16);
}

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

.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 800;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-500), var(--red-500));
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, var(--orange-600), var(--red-600));
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    color: var(--white);
    background: var(--gray-800);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--gray-700);
    box-shadow: var(--shadow-xl);
}

.btn-light {
    color: var(--gray-900);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-2px);
    color: var(--orange-600);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    right: 26px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.35);
    cursor: pointer;
}

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

.hero-bottom-fade {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(0deg, var(--gray-50), transparent);
}

.section {
    padding: 64px 0;
}

.section-white {
    background: var(--white);
}

.section-dark {
    color: var(--white);
    background: var(--gray-900);
}

.section-gradient {
    color: var(--white);
    background: linear-gradient(90deg, var(--gray-800), var(--gray-900));
}

.section-title {
    margin-bottom: 32px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 900;
    color: var(--gray-900);
}

.section-dark .section-title,
.section-gradient .section-title {
    color: var(--white);
}

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

.section-heading p {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--gray-600);
}

.section-dark .section-heading p,
.section-gradient .section-heading p {
    color: #d1d5db;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 26px;
    border-radius: 18px;
    color: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -45px;
    top: -45px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.17);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    color: rgb(255 255 255 / 0.86);
}

.category-card.red {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.category-card.blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.category-card.green {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.category-card.purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.category-card.orange {
    background: linear-gradient(135deg, #f97316, #c2410c);
}

.category-card.pink {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.category-card.yellow {
    color: var(--gray-900);
    background: linear-gradient(135deg, #facc15, #f97316);
}

.category-card.teal {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--gray-900);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.movie-card:hover .poster-frame img,
.ranking-card:hover img,
.related-card:hover img {
    transform: scale(1.08);
    opacity: 0.9;
}

.poster-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgb(0 0 0 / 0);
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .poster-overlay,
.related-card:hover .poster-overlay {
    opacity: 1;
    background: rgb(0 0 0 / 0.35);
}

.play-circle {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: rgb(249 115 22 / 0.92);
    box-shadow: 0 14px 35px rgb(249 115 22 / 0.35);
}

.year-badge,
.rank-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 9px;
    border-radius: 8px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    background: rgb(0 0 0 / 0.72);
}

.rank-badge {
    left: 10px;
    right: auto;
    background: linear-gradient(90deg, var(--orange-500), var(--red-500));
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px;
}

.movie-card h3 {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--orange-600);
}

.movie-card p {
    margin-bottom: 12px;
    color: var(--gray-600);
    font-size: 13px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: var(--gray-500);
    font-size: 12px;
}

.movie-meta span:first-child {
    color: var(--orange-600);
    background: #ffedd5;
}

.movie-meta span {
    padding: 4px 7px;
    border-radius: 8px;
    background: var(--gray-100);
}

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

.list-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.list-card .poster-frame {
    aspect-ratio: auto;
    height: 130px;
}

.list-card-body {
    padding: 14px 16px;
}

.list-card-body h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.list-card-body p {
    margin-bottom: 12px;
    color: var(--gray-600);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgb(255 255 255 / 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-card:hover {
    transform: translateY(-2px);
    background: rgb(255 255 255 / 0.14);
}

.ranking-card figure {
    position: relative;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
}

.ranking-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ranking-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.ranking-card p {
    margin-bottom: 10px;
    color: #d1d5db;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-hero {
    padding: 72px 0;
    color: var(--white);
    background: radial-gradient(circle at top right, rgb(249 115 22 / 0.35), transparent 34%), linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.page-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
    max-width: 820px;
    margin-bottom: 0;
    color: #e5e7eb;
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 220px 220px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 0 14px;
    outline: none;
    font: inherit;
    background: var(--white);
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgb(249 115 22 / 0.16);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #fed7aa;
    font-size: 14px;
    font-weight: 700;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-900);
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
}

.detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px);
    opacity: 0.38;
    transform: scale(1.08);
}

.detail-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(0 0 0 / 0.94), rgb(0 0 0 / 0.72));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
    min-height: 560px;
    padding-top: 64px;
    padding-bottom: 58px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
}

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

.detail-info h1 {
    margin-bottom: 16px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
}

.detail-info .summary {
    max-width: 850px;
    color: #e5e7eb;
    font-size: 18px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0 24px;
}

.player-wrap {
    overflow: hidden;
    border-radius: 18px;
    background: var(--black);
    box-shadow: var(--shadow-xl);
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--black);
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--black);
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgb(0 0 0 / 0.35);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.player-cover .play-circle {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    font-size: 26px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 32px;
}

.content-card,
.side-card {
    padding: 28px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.content-card h2,
.side-card h2 {
    margin-bottom: 16px;
    font-size: 26px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.info-list dt {
    color: var(--gray-500);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: var(--gray-800);
}

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

.related-card {
    overflow: hidden;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.related-card figure {
    position: relative;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 2 / 3;
}

.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.related-card h3 {
    margin: 0;
    padding: 12px;
    font-size: 15px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(180deg, var(--gray-900), var(--black));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
    padding-top: 52px;
    padding-bottom: 42px;
}

.footer-inner h3 {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 17px;
}

.footer-inner p,
.footer-inner a {
    color: #9ca3af;
    font-size: 14px;
}

.footer-inner a {
    display: block;
    margin-bottom: 9px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 0;
    border-top: 1px solid rgb(255 255 255 / 0.08);
    color: #6b7280;
    font-size: 14px;
}

.hidden-by-filter {
    display: none !important;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

    .mobile-nav.is-open {
        display: block;
    }

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

    .section-heading {
        display: block;
    }

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

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

    .detail-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 40px;
    }

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

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

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .container-custom {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero,
    .hero-content-wrap {
        min-height: 620px;
    }

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

    .hero-controls {
        left: 18px;
        right: auto;
    }

    .category-grid,
    .movie-grid,
    .movie-grid.compact,
    .ranking-list,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .list-card {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .list-card .poster-frame {
        height: 134px;
    }

    .ranking-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .content-card,
    .side-card {
        padding: 20px;
    }

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