:root {
    --bg: #05040b;
    --bg-canvas: #090817;
    --orbit: #5ffbf1;
    --sunset: #f4d03f;
    --pink: #ff6cab;
    --text: #f5f5ff;
    --muted: rgba(245, 245, 255, 0.72);
    --panel: rgba(11, 10, 24, 0.85);
    font-family: "Space Grotesk", "HarmonyOS Sans", "PingFang SC", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.levitate-body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.levitate-sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(255, 108, 171, 0.2), transparent 45%),
                radial-gradient(circle at 50% 80%, rgba(95, 251, 241, 0.2), transparent 50%),
                #030209;
}

.levitate-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: drift 20s ease-in-out infinite alternate;
}

.orb-small {
    width: 220px;
    height: 220px;
    right: 15%;
    top: 5%;
    background: var(--orbit);
}

.orb-large {
    width: 400px;
    height: 400px;
    left: -120px;
    bottom: -60px;
    background: var(--pink);
    animation-duration: 26s;
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(40px, -30px, 0);
    }
}

.levitate-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(transparent 94%, rgba(255, 255, 255, 0.05) 95%),
        linear-gradient(90deg, transparent 94%, rgba(255, 255, 255, 0.05) 95%);
    background-size: 80px 80px;
    opacity: 0.4;
}

.levitate-dock {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.dock-toggle {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.dock-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    display: block;
    margin: 2px 0;
}

.dock-panel {
    margin-top: 16px;
    width: 260px;
    background: rgba(7, 6, 20, 0.9);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    max-height: 80vh;
    overflow-y: auto;
}

.dock-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.dock-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dock-brand span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sunset), var(--pink));
    color: #040307;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.dock-brand strong {
    font-size: 15px;
}

.dock-search {
    display: flex;
    gap: 6px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 4px 6px;
}

.dock-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.dock-search input:focus {
    outline: none;
}

.dock-search button {
    border: none;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--pink), var(--orbit));
    color: #040307;
}

.dock-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dock-nav a {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--muted);
    transition: background .2s;
}

.dock-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.levitate-hero {
    position: relative;
    padding: 120px 0 40px;
    z-index: 1;
}

.levitate-shell {
    width: min(1200px, 100% - 60px);
    margin: 0 auto;
}

.hero-card {
    max-width: 520px;
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(15, 14, 30, 0.9), rgba(6, 5, 20, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-label {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.hero-card h1 {
    margin: 0 0 14px;
    font-size: 38px;
    line-height: 1.2;
}

.hero-desc {
    margin: 0 0 18px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.hero-actions a {
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.hero-actions a.primary {
    background: linear-gradient(135deg, var(--sunset), var(--pink));
    color: #040307;
    border: none;
}

.hero-poster {
    position: absolute;
    right: 6%;
    top: 12%;
    width: 320px;
    transform: rotate(-4deg);
}

.poster-frame {
    padding: 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.45);
}

.poster-frame span {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.poster-frame strong {
    display: block;
    margin: 16px 0 8px;
    font-size: 20px;
}

.poster-frame p {
    margin: 0;
    color: var(--muted);
}

.levitate-main {
    position: relative;
    z-index: 1;
    padding: 40px 0 80px;
}

.levitate-section {
    margin-bottom: 40px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-size: 20px;
}

.section-head a {
    font-size: 14px;
    color: var(--orbit);
}

.levitate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 22px;
}

.levitate-card {
    background: rgba(8, 7, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .2s ease, border-color .2s ease;
}

.levitate-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-thumb {
    position: relative;
    padding-top: 140%;
    overflow: hidden;
}

.card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(3, 2, 9, 0.7);
}

.card-info {
    padding: 16px 18px 20px;
}

.card-info .title {
    font-size: 15px;
    margin: 0 0 6px;
    font-weight: 600;
}

.card-info .meta {
    font-size: 13px;
    color: var(--muted);
}

.empty-state {
    padding: 60px;
    border-radius: 26px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    text-align: center;
    color: var(--muted);
    background: rgba(8, 7, 18, 0.8);
}

.levitate-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    background: var(--panel);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    margin-bottom: 28px;
}

.detail-poster img {
    width: 100%;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.detail-meta h1 {
    margin: 0 0 12px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.detail-tags span {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px 16px;
    font-size: 13px;
    color: var(--muted);
}

.detail-grid strong {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.levitate-player {
    background: var(--panel);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 26px;
    overflow: hidden;
}

.levitate-player #artplayer-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #020204;
}

.levitate-player .player-panel {
    padding: 22px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-block:not(:last-child) {
    margin-bottom: 18px;
}

.source-list,
.episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-btn,
.episode-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.source-btn.active,
.episode-btn.active {
    background: linear-gradient(135deg, var(--pink), var(--orbit));
    color: #030208;
    border: none;
}

.levitate-desc {
    background: var(--panel);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    line-height: 1.8;
    color: var(--muted);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.pagination a,
.pagination span {
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted);
}

.pagination .active {
    background: linear-gradient(135deg, var(--sunset), var(--pink));
    color: #030208;
    border: none;
}

.levitate-footer {
    padding: 30px 0 60px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 1080px) {
    .hero-poster {
        position: static;
        transform: none;
        margin-top: 24px;
        width: auto;
    }

    .hero-card {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .levitate-dock {
        right: 16px;
        top: 20px;
    }

    .dock-panel {
        width: calc(100vw - 40px);
    }

    .levitate-hero {
        padding-top: 160px;
    }

    .levitate-detail {
        grid-template-columns: 1fr;
    }
}

