html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

.site-logo-mark {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #0891b2;
    background: #ffffff;
    font-size: 0.8rem;
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.25);
    transition: transform 0.3s ease;
}

.group:hover .site-logo-mark {
    transform: scale(1.1);
}

.nav-link-active {
    color: #cffafe;
    font-weight: 700;
}

.hero-section {
    min-height: 560px;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity 0.9s ease, transform 6s ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-copy {
    animation: heroFadeUp 0.7s ease both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 2.75rem;
    height: 2.75rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 1rem;
}

.hero-next {
    right: 1rem;
}

.hero-dot {
    width: 0.55rem;
    height: 0.55rem;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.search-hero-band {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.site-search-box {
    max-width: 860px;
    margin: 0 auto;
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
}

.site-search-box input,
.filter-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-box input:focus,
.filter-input:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.14);
}

.site-search-box button {
    border: 0;
    border-radius: 0.75rem;
    padding: 0 1.5rem;
    color: #ffffff;
    background: linear-gradient(90deg, #0891b2, #2563eb);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.site-search-box button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.play-badge {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #ffffff;
    background: #0891b2;
    font-size: 1.4rem;
    box-shadow: 0 16px 38px rgba(8, 145, 178, 0.35);
}

.category-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    border-radius: 9999px;
    color: #0891b2;
    background: #ffffff;
    transition: transform 0.3s ease;
}

.category-tile:hover .category-icon {
    transform: scale(1.1);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    color: #64748b;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #0891b2;
}

.breadcrumb strong {
    color: #0f172a;
    font-weight: 700;
}

.filter-panel {
    position: sticky;
    top: 5.5rem;
    z-index: 20;
}

.movie-card[data-hidden="true"] {
    display: none;
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 3rem 6rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.ranking-number {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #ffffff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    font-weight: 800;
}

.ranking-row img {
    width: 6rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.6rem;
    background: #0f172a;
}

.ranking-info {
    min-width: 0;
}

.ranking-info strong,
.ranking-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-info strong {
    color: #0f172a;
    font-size: 1rem;
}

.ranking-info em {
    margin-top: 0.25rem;
    color: #64748b;
    font-style: normal;
    font-size: 0.875rem;
}

.player-wrap {
    position: relative;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.7));
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #0891b2;
    box-shadow: 0 20px 50px rgba(8, 145, 178, 0.35);
    font-size: 1.6rem;
}

.prose-text h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
}

.prose-text p {
    color: #334155;
    line-height: 1.9;
}

.detail-info dt {
    color: #64748b;
}

.detail-info dd {
    color: #0f172a;
    font-weight: 700;
}

.related-side-item {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 0.75rem;
    align-items: center;
}

.related-side-item img {
    width: 5rem;
    height: 3.2rem;
    object-fit: cover;
    border-radius: 0.6rem;
    background: #0f172a;
}

.related-side-item strong,
.related-side-item em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-side-item strong {
    color: #0f172a;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.related-side-item:hover strong {
    color: #0891b2;
}

.related-side-item em {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.8rem;
    font-style: normal;
}

@media (max-width: 900px) {
    .hero-section {
        min-height: 520px;
    }

    .hero-arrow {
        display: none;
    }

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

@media (max-width: 640px) {
    .site-search-box {
        flex-direction: column;
    }

    .site-search-box button {
        padding: 0.85rem 1rem;
    }

    .hero-section {
        min-height: 500px;
    }

    .filter-panel {
        position: static;
    }

    .ranking-row {
        grid-template-columns: 2.8rem 5rem 1fr;
    }

    .ranking-row img {
        width: 5rem;
        height: 3.4rem;
    }
}
