* {
    box-sizing: border-box;
}

:root {
    --autumn-50: #fff7ed;
    --autumn-100: #ffedd5;
    --autumn-200: #fed7aa;
    --autumn-400: #fb923c;
    --autumn-500: #f97316;
    --autumn-600: #ea580c;
    --autumn-700: #c2410c;
    --autumn-800: #9a3412;
    --leaf-200: #fef08a;
    --leaf-400: #facc15;
    --leaf-500: #eab308;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f1f5f9;
    --card: #ffffff;
    --shadow: 0 18px 50px rgba(154, 52, 18, 0.16);
    --gradient: linear-gradient(135deg, #f97316, #ea580c, #fb923c);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--autumn-50), #ffffff 520px);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.12);
    backdrop-filter: blur(16px);
}

.top-strip {
    background: var(--gradient);
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    padding: 8px 0;
}

.main-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--autumn-700);
    flex-shrink: 0;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: var(--gradient);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.24);
    transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
    transform: rotate(12deg) scale(1.04);
}

.logo-text {
    display: grid;
    line-height: 1.18;
}

.logo-text strong,
.footer-logo {
    font-size: 24px;
    font-weight: 800;
}

.logo-text small {
    color: var(--autumn-500);
    font-size: 12px;
}

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

.nav-link {
    color: #374151;
    font-weight: 700;
    padding: 8px 2px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--autumn-600);
}

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

.header-search input,
.filter-box input,
.filter-box select {
    border: 2px solid var(--autumn-200);
    border-radius: 999px;
    padding: 11px 16px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.filter-box input:focus,
.filter-box select:focus {
    border-color: var(--autumn-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button,
.primary-button,
.ghost-button,
.cta-actions a {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    cursor: pointer;
}

.header-search button,
.primary-button {
    color: #ffffff;
    background: var(--gradient);
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.25);
}

.ghost-button {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--autumn-700);
    font-size: 30px;
}

.mobile-menu {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--autumn-100);
}

.mobile-menu.open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 0;
    color: #374151;
    font-weight: 700;
    border-bottom: 1px solid var(--autumn-100);
}

.hero-slider {
    height: 600px;
    position: relative;
    overflow: hidden;
    background: var(--gradient);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 30%, rgba(250, 204, 21, 0.35), transparent 28%),
        linear-gradient(90deg, rgba(154, 52, 18, 0.95), rgba(234, 88, 12, 0.76) 48%, rgba(17, 24, 39, 0.62)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 48px;
    color: #ffffff;
}

.hero-text {
    max-width: 780px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--leaf-200);
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.hero-text h1 {
    margin: 0 0 10px;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 900;
}

.hero-text h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 850;
}

.hero-text p {
    max-width: 700px;
    margin: 0 0 24px;
    color: #ffedd5;
    font-size: clamp(17px, 2vw, 24px);
}

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

.hero-tags span,
.tag-row span,
.chip-row span,
.detail-meta span {
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

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

.hero-poster {
    position: relative;
    overflow: hidden;
    height: 420px;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.92);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

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

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

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

.section {
    padding: 64px 0;
}

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

.section-title.center {
    display: block;
    text-align: center;
}

.section-title h2,
.rank-column h2,
.detail-text h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 900;
}

.section-title p,
.page-hero p,
.detail-info p,
.detail-text p,
.site-footer p,
.category-card span,
.category-overview-card span {
    color: var(--muted);
}

.section-title a,
.category-overview-card .mini-links a,
.breadcrumb a {
    color: var(--autumn-600);
    font-weight: 800;
}

.raised {
    padding: 46px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.movie-grid,
.feature-grid,
.category-grid,
.category-overview-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.movie-card,
.movie-list-card,
.category-card,
.category-overview-card,
.rank-column,
.detail-text article {
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.movie-list-card:hover,
.category-card:hover,
.category-overview-card:hover,
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(154, 52, 18, 0.16);
}

.card-cover,
.list-cover,
.feature-card a {
    position: relative;
    overflow: hidden;
}

.card-cover {
    height: 240px;
}

.card-cover img,
.list-cover img,
.feature-card img,
.rank-card img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover img,
.movie-list-card:hover img,
.feature-card:hover img {
    transform: scale(1.08);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 42px;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover,
.movie-list-card:hover .play-hover,
.feature-card:hover .play-hover {
    opacity: 1;
}

.duration-badge,
.feature-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border-radius: 8px;
    padding: 5px 9px;
    color: #ffffff;
    background: var(--autumn-600);
    font-size: 12px;
    font-weight: 800;
}

.feature-badge {
    right: auto;
    left: 18px;
    top: 18px;
}

.cover-tags {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: flex;
    gap: 6px;
}

.cover-tags b {
    border-radius: 8px;
    padding: 5px 8px;
    color: var(--autumn-700);
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

.card-body {
    padding: 18px;
}

.card-body h2,
.list-content h2,
.category-head strong,
.rank-card strong {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 850;
}

.card-body p,
.list-content p {
    margin: 0 0 14px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 14px;
}

.feature-card {
    height: 400px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.feature-card a,
.feature-card img,
.image-mask {
    display: block;
    width: 100%;
    height: 100%;
}

.image-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 55%);
}

.feature-content {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    color: #ffffff;
}

.feature-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 26px;
    line-height: 1.2;
}

.feature-content em {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #e5e7eb;
    font-style: normal;
}

.movie-meta {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.movie-meta b {
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
}

.list-grid {
    display: grid;
    gap: 18px;
}

.movie-list-card a {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
}

.list-cover {
    height: 190px;
}

.list-content {
    padding: 20px 20px 20px 0;
}

.chip-row span,
.tag-row span,
.detail-meta span {
    color: var(--autumn-700);
    background: var(--autumn-100);
}

.category-card,
.category-overview-card {
    padding: 26px;
}

.category-card strong,
.category-head strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.category-card strong::before {
    content: "🎬";
    margin-right: 8px;
}

.category-overview-card {
    display: grid;
    gap: 18px;
}

.mini-links {
    display: grid;
    gap: 8px;
}

.cta-panel,
.page-hero {
    color: #ffffff;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.cta-panel {
    border-radius: 34px;
    padding: 56px 28px;
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-panel h2,
.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 900;
}

.cta-panel p,
.page-hero p {
    color: #ffedd5;
    font-size: 18px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.cta-actions a {
    color: var(--autumn-700);
    background: #ffffff;
}

.page-hero {
    padding: 70px 0;
    margin-bottom: 22px;
}

.page-hero span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--leaf-200);
    font-weight: 850;
    letter-spacing: 0.08em;
}

.filter-panel {
    margin-top: 22px;
}

.filter-box {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 160px;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

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

.rank-column {
    padding: 22px;
}

.rank-column ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.rank-column li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.rank-num {
    color: var(--autumn-700);
    font-size: 22px;
    font-weight: 900;
}

.rank-card a {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.rank-card img {
    height: 72px;
    border-radius: 12px;
}

.rank-card em {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.breadcrumb {
    padding: 22px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    padding: 36px 0 44px;
}

.detail-poster {
    height: 460px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.detail-info h1 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
    font-weight: 900;
}

.detail-info p {
    margin: 0 0 22px;
    font-size: 19px;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-meta span b {
    color: var(--autumn-800);
}

.detail-tags {
    margin-bottom: 24px;
}

.player-section {
    padding: 0 0 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
}

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

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.22), rgba(0, 0, 0, 0.28));
    cursor: pointer;
}

.player-start span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
    font-size: 36px;
}

.player-start.hidden {
    display: none;
}

.detail-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.detail-text article {
    padding: 28px;
}

.detail-text p {
    margin: 0;
    white-space: pre-line;
}

.site-footer {
    margin-top: 64px;
    padding-top: 44px;
    color: #475569;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: var(--autumn-700);
    font-weight: 700;
}

.footer-bottom {
    margin-top: 34px;
    padding: 18px;
    text-align: center;
    color: #64748b;
    border-top: 1px solid var(--line);
}

.search-item.hidden {
    display: none;
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.movie-list-card:nth-child(2n) {
    animation: floatUp 6s ease-in-out infinite;
}

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

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

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

    .hero-poster {
        display: none;
    }

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

    .ranking-layout,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .container {
        width: min(100% - 24px, 720px);
    }

    .main-nav {
        min-height: 68px;
    }

    .hero-slider {
        height: 640px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text h2 {
        font-size: 28px;
    }

    .section,
    .raised {
        padding: 36px 0;
    }

    .raised {
        padding-left: 18px;
        padding-right: 18px;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .detail-text {
        grid-template-columns: 1fr 1fr;
    }

    .movie-list-card a,
    .detail-hero,
    .footer-grid,
    .filter-box {
        grid-template-columns: 1fr;
    }

    .list-content {
        padding: 18px;
    }

    .detail-poster {
        height: 420px;
    }
}

@media (max-width: 560px) {
    .top-strip {
        font-size: 12px;
    }

    .logo-text strong {
        font-size: 20px;
    }

    .hero-slider {
        height: 680px;
    }

    .hero-tags,
    .detail-meta {
        gap: 6px;
    }

    .hero-actions,
    .section-title {
        display: grid;
    }

    .movie-grid,
    .feature-grid,
    .category-grid,
    .category-overview-grid,
    .detail-text {
        grid-template-columns: 1fr;
    }

    .card-cover {
        height: 220px;
    }

    .feature-card {
        height: 340px;
    }

    .detail-poster {
        height: 380px;
    }

    .player-start span {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}
