:root {
    color-scheme: light;
    --site-orange: #f97316;
    --site-red: #ef4444;
    --site-pink: #ec4899;
    --site-text: #111827;
    --site-muted: #6b7280;
    --site-line: #e5e7eb;
    --site-soft: #fff7ed;
}

body {
    background: #f9fafb;
    color: var(--site-text);
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.site-header {
    background: linear-gradient(90deg, var(--site-orange), var(--site-red), var(--site-pink));
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.25);
}

.nav-row {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.3s ease;
}

.brand:hover {
    transform: scale(1.04);
}

.brand-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.16);
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 1.35rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.desktop-nav a,
.mobile-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover {
    color: #fef08a;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    color: #ffffff;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
    display: block;
    width: 1.35rem;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    position: relative;
}

.mobile-toggle span::before,
.mobile-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.mobile-toggle span::before {
    top: -0.45rem;
}

.mobile-toggle span::after {
    top: 0.45rem;
}

.mobile-nav {
    display: none;
    padding: 0.25rem 0 1rem;
}

.mobile-nav.is-open {
    display: grid;
    gap: 0.45rem;
}

.mobile-nav a {
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 52%, #db2777 100%);
    color: #ffffff;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: 36rem;
    height: 36rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
    pointer-events: none;
}

.hero-slider {
    position: relative;
    min-height: 34rem;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 4.5rem 0;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeIn 0.6s ease both;
}

.hero-copy {
    max-width: 44rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: clamp(2.45rem, 6vw, 4.9rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 1.2rem;
}

.hero-text {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    margin-bottom: 1.6rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 2rem;
}

.hero-tags span,
.movie-tag,
.meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-tags span {
    padding: 0.42rem 0.72rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.primary-btn,
.secondary-btn,
.small-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    padding: 0.86rem 1.4rem;
    background: #ffffff;
    color: #ea580c;
    box-shadow: 0 18px 36px rgba(127, 29, 29, 0.2);
}

.primary-btn:hover,
.secondary-btn:hover,
.small-link:hover {
    transform: translateY(-2px);
}

.secondary-btn {
    padding: 0.78rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.hero-media {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.74fr;
    align-items: end;
    gap: 1rem;
}

.hero-poster,
.hero-mini-card {
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(17, 24, 39, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
    width: 100%;
    height: 28rem;
    object-fit: cover;
}

.hero-mini-card {
    transform: translateY(-2rem);
}

.hero-mini-card img {
    width: 100%;
    height: 17rem;
    object-fit: cover;
}

.hero-mini-card div {
    padding: 0.9rem;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(12px);
}

.hero-mini-card strong {
    display: block;
    margin-bottom: 0.25rem;
}

.hero-mini-card span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 2rem;
    display: flex;
    gap: 0.6rem;
}

.hero-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 2rem;
    background: #ffffff;
}

.section {
    padding: 4rem 0;
}

.section-white {
    background: #ffffff;
}

.section-soft {
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.section-blue {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.section-green {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

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

.section-title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.15;
    font-weight: 900;
    color: #111827;
    margin-bottom: 0.45rem;
}

.section-desc {
    color: #6b7280;
    line-height: 1.75;
}

.small-link {
    color: #f97316;
    font-size: 0.95rem;
}

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

.category-card {
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 1.25rem;
    min-height: 11rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 54px rgba(17, 24, 39, 0.18);
}

.category-icon {
    font-size: 2.6rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.category-lead {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
    font-size: 0.92rem;
}

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

.movie-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(229, 231, 235, 0.78);
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(17, 24, 39, 0.13);
}

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

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

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

.movie-badge {
    position: absolute;
    left: 0.65rem;
    top: 0.65rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.movie-type {
    position: absolute;
    right: 0.65rem;
    top: 0.65rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
}

.movie-info {
    padding: 0.9rem;
}

.movie-title {
    display: block;
    font-weight: 900;
    color: #111827;
    margin-bottom: 0.45rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.movie-title:hover {
    color: #f97316;
}

.movie-line {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.6;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.movie-tag,
.meta-pill {
    padding: 0.24rem 0.55rem;
    background: #fff7ed;
    color: #ea580c;
}

.filter-panel {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 1.25rem;
    padding: 1rem;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
    display: grid;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.search-input,
.filter-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    background: #ffffff;
    outline: none;
    color: #111827;
}

.search-input:focus,
.filter-select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.page-hero {
    background: linear-gradient(135deg, #fff7ed, #fff1f2 56%, #fdf2f8);
    padding: 3.5rem 0;
    border-bottom: 1px solid #fed7aa;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 0.9rem;
}

.page-hero p {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 52rem;
}

.rank-list {
    display: grid;
    gap: 0.8rem;
}

.rank-item {
    display: grid;
    grid-template-columns: auto 5rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.rank-number {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-thumb {
    width: 5rem;
    aspect-ratio: 3 / 4;
    border-radius: 0.7rem;
    object-fit: cover;
}

.rank-title {
    display: block;
    font-weight: 900;
    margin-bottom: 0.3rem;
}

.rank-title:hover {
    color: #f97316;
}

.rank-line {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    color: #6b7280;
    font-size: 0.92rem;
    padding: 1.2rem 0 0;
}

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

.detail-layout {
    display: grid;
    gap: 2rem;
    align-items: start;
}

.detail-poster {
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(17, 24, 39, 0.16);
    background: #e5e7eb;
}

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

.detail-copy h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.detail-one-line {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #4b5563;
    margin-bottom: 1rem;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0 1.4rem;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
    color: #ffffff;
    z-index: 2;
}

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

.player-button {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.4);
    font-size: 1.8rem;
    padding-left: 0.2rem;
}

.player-title {
    font-size: 1.1rem;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.article-body {
    background: #ffffff;
}

.article-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.4rem;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
    border: 1px solid #e5e7eb;
}

.article-card h2 {
    font-size: 1.55rem;
    font-weight: 900;
    margin-bottom: 0.9rem;
}

.article-card p {
    color: #374151;
    line-height: 2;
    margin-bottom: 1rem;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

.footer-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.footer-text {
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 0.55rem;
}

.footer-links a:hover {
    color: #f97316;
}

.empty-state {
    display: none;
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    color: #6b7280;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.no-results .empty-state {
    display: block;
}

.no-results .movie-grid {
    display: none;
}

@media (min-width: 640px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-panel {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-toggle {
        display: none;
    }

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

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

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

    .detail-layout {
        grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-slide {
        grid-template-columns: minmax(0, 1.05fr) minmax(26rem, 0.95fr);
    }

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

@media (min-width: 1280px) {
    .movie-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .section-head {
        display: block;
    }

    .small-link {
        margin-top: 0.8rem;
    }

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

    .hero-poster img {
        height: 22rem;
    }

    .hero-mini-card {
        display: none;
    }

    .rank-item {
        grid-template-columns: auto 4rem minmax(0, 1fr);
    }

    .rank-item .primary-btn {
        grid-column: 1 / -1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.from-purple-400 {
    --tw-gradient-from: #c084fc var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-purple-500 {
    --tw-gradient-to: #a855f7 var(--tw-gradient-to-position);
}

.from-slate-500 {
    --tw-gradient-from: #64748b var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-gray-700 {
    --tw-gradient-to: #374151 var(--tw-gradient-to-position);
}

.to-pink-500 {
    --tw-gradient-to: #ec4899 var(--tw-gradient-to-position);
}

.from-green-400 {
    --tw-gradient-from: #4ade80 var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-teal-500 {
    --tw-gradient-to: #14b8a6 var(--tw-gradient-to-position);
}

