:root {
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --ink: #212529;
    --muted: #6c757d;
    --paper: #ffffff;
    --soft: #fff7ed;
    --line: rgba(33, 37, 41, 0.08);
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 40px -3px rgba(0, 0, 0, 0.12), 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

body {
    color: var(--ink);
    background: #f8f9fa;
}

.site-header {
    backdrop-filter: blur(10px);
}

.header-inner {
    gap: 1rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.25);
    font-weight: 800;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #212529;
    letter-spacing: -0.02em;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 4rem;
    color: #495057;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--brand);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.85rem;
    height: 0.18rem;
    border-radius: 999px;
    background: var(--brand);
}

.mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #fff7ed;
}

.mobile-menu-toggle span {
    display: block;
    width: 1.25rem;
    height: 0.12rem;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--brand);
}

.mobile-nav {
    display: none;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--line);
}

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

.mobile-nav-link {
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
    color: #495057;
    font-weight: 700;
}

.mobile-nav-link:hover {
    color: var(--brand);
    background: #fff7ed;
}

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #1a1d20;
}

@media (min-width: 768px) {
    .hero-slider {
        height: 600px;
    }
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(42rem, 100%);
    color: #ffffff;
}

.hero-meta,
.inline-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-meta span,
.inline-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-meta span:first-child,
.inline-meta span:first-child {
    background: var(--brand);
    color: #ffffff;
}

.hero-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 42rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.85;
}

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

.primary-button,
.ghost-button,
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    min-height: 3rem;
    padding: 0 1.5rem;
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 16px 35px rgba(234, 88, 12, 0.25);
}

.primary-button:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

.ghost-button {
    min-height: 3rem;
    padding: 0 1.4rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 2.7rem;
    height: 2.7rem;
    transform: translateY(-50%);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    font-size: 2rem;
    line-height: 1;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-prev {
    left: 1rem;
}

.hero-next {
    right: 1rem;
}

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

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

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

.home-search-panel,
.page-hero,
.detail-article,
.aside-card,
.home-rank-wrap {
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.home-search-panel,
.page-hero {
    padding: clamp(1.5rem, 4vw, 3rem);
    background: linear-gradient(135deg, #fff7ed, #ffffff 52%, #fefce8);
}

.home-search-panel h1,
.page-hero h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #212529;
}

.home-search-panel p,
.page-hero p {
    max-width: 52rem;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.8;
}

.small-hero {
    margin-bottom: 2rem;
}

.section-title h2 {
    color: #212529;
    font-size: 1.55rem;
    line-height: 1.2;
    font-weight: 900;
}

.section-title p {
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.92rem;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    color: var(--brand);
    background: #ffedd5;
    font-weight: 900;
}

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

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

@media (min-width: 1024px) {
    .full-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.movie-card {
    height: 100%;
}

.card-poster {
    position: relative;
}

.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-poster::after {
    opacity: 1;
}

.card-year,
.card-type,
.card-play {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-year {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.22rem 0.48rem;
    border-radius: 0.42rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    font-size: 0.75rem;
    font-weight: 800;
}

.card-type {
    left: 0.5rem;
    bottom: 0.5rem;
    padding: 0.22rem 0.48rem;
    border-radius: 0.42rem;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.92);
    backdrop-filter: blur(4px);
    font-size: 0.75rem;
    font-weight: 800;
}

.card-play {
    left: 50%;
    top: 50%;
    width: 3.4rem;
    height: 3.4rem;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.94);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.24);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body h3 {
    min-height: 2.8rem;
    line-height: 1.35;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

@media (min-width: 768px) {
    .filter-bar {
        grid-template-columns: minmax(0, 1fr) 11rem 11rem;
    }
}

.filter-input,
.filter-select {
    width: 100%;
    min-height: 3rem;
    border: 1px solid rgba(234, 88, 12, 0.18);
    border-radius: 0.9rem;
    background: #ffffff;
    color: #212529;
    padding: 0 1rem;
    outline: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.filter-empty {
    display: none;
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 1rem;
    color: #6c757d;
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

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

.js-movie-card.is-hidden {
    display: none;
}

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

@media (min-width: 768px) {
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

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

.category-tile,
.category-overview-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 10rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.category-tile span,
.category-overview-card h2 {
    color: #212529;
    font-size: 1.25rem;
    font-weight: 900;
}

.category-tile em,
.category-overview-card p {
    margin-top: 0.6rem;
    color: #6c757d;
    font-size: 0.92rem;
    line-height: 1.7;
    font-style: normal;
}

.category-preview-row {
    display: flex;
    gap: 0.55rem;
    margin-top: 1rem;
}

.category-preview-row img {
    width: 4rem;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0.65rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.rank-list,
.home-rank-list {
    display: grid;
    gap: 0.75rem;
}

.rank-card {
    display: grid;
    grid-template-columns: 2.5rem 4rem minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 900;
    text-align: center;
}

.rank-card img {
    width: 4rem;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0.65rem;
}

.rank-info {
    display: grid;
    min-width: 0;
}

.rank-info strong {
    overflow: hidden;
    color: #212529;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em {
    overflow: hidden;
    color: #6c757d;
    font-size: 0.85rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 0.82rem;
    font-weight: 800;
}

.more-link {
    margin-top: 1rem;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    color: #ffffff;
    background: var(--brand);
}

.more-link:hover {
    background: var(--brand-dark);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.92rem;
}

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

.breadcrumb.dark {
    color: rgba(255, 255, 255, 0.78);
}

.detail-hero {
    padding: 3rem 0;
    color: #ffffff;
    background: radial-gradient(circle at 15% 20%, rgba(234, 88, 12, 0.36), transparent 35%), linear-gradient(135deg, #1a1d20, #2b211c 55%, #1a1d20);
}

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

@media (min-width: 768px) {
    .detail-hero-grid {
        grid-template-columns: minmax(0, 1fr) 14rem;
    }
}

.detail-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-copy p {
    max-width: 50rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.9;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.tag-row span {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    font-weight: 700;
}

.detail-poster {
    width: 100%;
    max-width: 14rem;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 1.1rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

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

@media (min-width: 1024px) {
    .detail-layout {
        grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.8fr);
    }
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 1.25rem;
    background: #000000;
    box-shadow: var(--shadow-hover);
}

.movie-video,
.player-cover,
.player-cover img,
.player-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    z-index: 1;
    object-fit: contain;
}

.player-cover {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

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

.player-cover img {
    object-fit: cover;
}

.player-mask {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
}

.play-orb {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(4rem, 10vw, 6rem);
    height: clamp(4rem, 10vw, 6rem);
    border-radius: 999px;
    color: #ffffff;
    background: var(--brand);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    box-shadow: 0 20px 50px rgba(234, 88, 12, 0.34);
}

.detail-article {
    margin-top: 2rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.detail-article h2,
.aside-card h2 {
    margin-bottom: 0.75rem;
    color: #212529;
    font-size: 1.35rem;
    font-weight: 900;
}

.detail-article p {
    margin-bottom: 1.25rem;
    color: #495057;
    line-height: 2;
}

.related-section {
    margin-top: 2rem;
}

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

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

.detail-aside {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.aside-card {
    padding: 1.25rem;
}

.aside-card dl {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.65rem 0.9rem;
}

.aside-card dt {
    color: #6c757d;
    font-weight: 700;
}

.aside-card dd {
    color: #212529;
    font-weight: 700;
}

.mini-list {
    display: grid;
    gap: 0.7rem;
}

.mini-card {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
}

.mini-card img {
    width: 3rem;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0.55rem;
}

.mini-card span {
    overflow: hidden;
    color: #212529;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-footer {
    margin-top: 3rem;
    padding: 2.5rem 0;
    color: rgba(255, 255, 255, 0.82);
    background: #1a1d20;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

.footer-logo {
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
}

.site-footer p {
    max-width: 42rem;
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

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

@media (max-width: 767px) {
    .hero-arrow {
        display: none;
    }

    .rank-card {
        grid-template-columns: 2rem 3.4rem minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        justify-self: start;
    }

    .detail-poster {
        display: none;
    }
}
