body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f9fafb;
    color: #111827;
}

.logo-link {
    min-width: 0;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
    left: 1rem;
}

.hero-next {
    right: 1rem;
}

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

.hero-dots button {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.is-active {
    background: #f59e0b;
}

.primary-button,
.ghost-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 9999px;
    padding: 0.75rem 1.35rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: linear-gradient(90deg, #d97706, #f97316);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(217, 119, 6, 0.35);
}

.ghost-button {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.ghost-button:hover {
    background: rgba(0, 0, 0, 0.55);
}

.outline-button {
    color: #b45309;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
}

.site-search {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.site-search input,
.filter-panel input {
    width: 100%;
    border: 1px solid #fcd34d;
    border-radius: 9999px;
    background: #fffbeb;
    color: #111827;
    padding: 0.85rem 1.15rem;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.site-search input:focus,
.filter-panel input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.site-search button {
    flex: 0 0 auto;
    border-radius: 9999px;
    background: #d97706;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    font-weight: 700;
}

.card-hover-layer {
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.movie-card:hover .card-hover-layer {
    background: rgba(0, 0, 0, 0.3);
}

.play-symbol {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.9);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .play-symbol {
    opacity: 1;
    transform: scale(1);
}

.type-badge {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: #fef3c7;
    color: #b45309;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.mini-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.card-meta-row {
    gap: 0.75rem;
}

.category-tile {
    display: block;
    border-radius: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(217, 119, 6, 0.14);
}

.category-tile strong {
    display: block;
    color: #111827;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.category-tile span {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    gap: 1rem;
    border-radius: 0.85rem;
    background: #ffffff;
    padding: 0.85rem 1rem;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
}

.rank-item span {
    color: #d97706;
    font-weight: 800;
}

.rank-item strong {
    color: #111827;
}

.rank-item em {
    color: #6b7280;
    font-style: normal;
    font-size: 0.85rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: #b45309;
}

.page-hero,
.detail-hero {
    border-bottom: 1px solid #fde68a;
}

.poster-card {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 24px 45px rgba(17, 24, 39, 0.18);
    background: #e5e7eb;
}

.detail-copy {
    align-self: center;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.detail-meta span {
    border-radius: 9999px;
    background: #ffffff;
    color: #374151;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    box-shadow: inset 0 0 0 1px #fde68a;
}

.video-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(217, 119, 6, 0.32), rgba(0, 0, 0, 0.68));
}

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

.player-button-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #d97706, #f97316);
    color: #ffffff;
    font-size: 1.7rem;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.3);
}

.side-links {
    display: grid;
    gap: 0.85rem;
}

.side-links a {
    display: block;
    border-radius: 0.85rem;
    background: #ffffff;
    padding: 0.85rem 1rem;
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.08);
}

.side-links strong,
.side-links span {
    display: block;
}

.side-links strong {
    color: #111827;
    margin-bottom: 0.25rem;
}

.side-links span {
    color: #6b7280;
    font-size: 0.85rem;
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sample-links a {
    border-radius: 9999px;
    background: #fffbeb;
    color: #b45309;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.ranking-list {
    display: grid;
    gap: 0.75rem;
}

.ranking-row {
    display: grid;
    grid-template-columns: 4rem 4rem 1fr auto;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.ranking-row img {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.65rem;
}

.ranking-number {
    color: #d97706;
    font-weight: 800;
    font-size: 1.05rem;
}

.ranking-title {
    color: #111827;
    font-weight: 700;
}

.ranking-meta {
    color: #6b7280;
    font-size: 0.9rem;
}

.no-result {
    margin-top: 2rem;
    border-radius: 1rem;
    background: #ffffff;
    padding: 1.25rem;
    color: #6b7280;
    text-align: center;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: #d97706;
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(217, 119, 6, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 40;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

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

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

    .site-search {
        flex-direction: column;
        align-items: stretch;
    }

    .rank-item,
    .ranking-row {
        grid-template-columns: 3rem 1fr;
    }

    .rank-item em,
    .ranking-row img,
    .ranking-meta {
        display: none;
    }

    .hero-actions {
        gap: 0.75rem;
    }
}
