:root {
    --bg: #080810;
    --surface: #0f0f1a;
    --surface2: #16162a;
    --surface3: #1e1e35;
    --accent: #e63946;
    --accent2: #f4a261;
    --accent3: #60a5fa;
    --text: #f0eff4;
    --text-muted: #8888aa;
    --text-dim: #4a4a6a;
    --border: rgba(255, 255, 255, 0.07);
    --card-r: 10px;
    --glow: 0 0 40px rgba(230, 57, 70, .15);
    --ease: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-h: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px
}

::-webkit-scrollbar-track {
    background: var(--bg)
}

::-webkit-scrollbar-thumb {
    background: var(--surface3);
    border-radius: 3px
}

/* ── SCREENS ── */
.screen {
    position: fixed;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease, transform .4s cubic-bezier(.4, 0, .2, 1);
    transform: translateY(18px);
    z-index: 1;
    overflow-y: auto
}

.screen.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    z-index: 2
}

.screen.out {
    opacity: 0;
    transform: translateY(-18px);
    z-index: 1
}

/* ── OFFLINE BANNER ── */
#offline-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: linear-gradient(90deg, #c1121f, #e63946);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: translateY(-100%);
    transition: transform .4s ease
}

#offline-bar.show {
    transform: translateY(0)
}

#offline-bar .blink {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1.2s infinite
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .2
    }
}

#online-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: #1a472a;
    border: 1px solid #2d6a4f;
    color: #d8f3dc;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(16px);
    transition: all .4s ease;
    pointer-events: none
}

#online-toast.show {
    opacity: 1;
    transform: translateY(0)
}

#notif {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all .35s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
    white-space: nowrap
}

#notif.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
}

/* ── NAVBAR ── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: none;
    align-items: center;
    padding: 0 40px;
    gap: 32px;
    transition: background .3s, box-shadow .3s, top .4s
}

#navbar.scrolled {
    background: rgba(8, 8, 16, .95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border)
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: .1em;
    color: var(--accent);
    cursor: pointer;
    text-shadow: 0 0 20px rgba(230, 57, 70, .4);
    flex-shrink: 0;
    user-select: none
}

.nav-logo span {
    color: var(--text)
}

.nav-links {
    display: flex;
    gap: 4px;
    flex: 1
}

.nav-btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s;
    border: none;
    background: none;
    font-family: 'DM Sans', sans-serif
}

.nav-btn:hover {
    color: var(--text);
    background: var(--surface2)
}

.nav-btn.active {
    color: var(--text);
    background: var(--surface2)
}

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

.nav-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    font-size: 15px
}

.nav-icon-btn:hover {
    color: var(--text);
    border-color: var(--text-muted)
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    transition: transform .2s, box-shadow .2s;
    flex-shrink: 0;
    user-select: none
}

.nav-avatar:hover {
    transform: scale(1.07);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, .3)
}

/* ── SIGN IN ── */
#signin-screen {
    background: radial-gradient(ellipse at 60% 40%, #18091f 0%, var(--bg) 65%);
    display: flex;
    align-items: center;
    justify-content: center
}

.si-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none
}

.si-bg-glow {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 25% 75%, rgba(230, 57, 70, .07) 0%, transparent 55%), radial-gradient(circle at 75% 25%, rgba(244, 162, 97, .05) 0%, transparent 50%);
    pointer-events: none
}

.si-card {
    position: relative;
    z-index: 2;
    background: rgba(15, 15, 26, .88);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 50px 46px;
    width: 430px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .6), var(--glow);
    animation: fadeUp .6s ease both
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.si-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: .1em;
    color: var(--accent);
    text-shadow: 0 0 28px rgba(230, 57, 70, .4);
    margin-bottom: 4px
}

.si-logo span {
    color: var(--text)
}

.si-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 34px;
    letter-spacing: .02em
}

.f-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 7px
}

.f-input {
    width: 100%;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px 15px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    margin-bottom: 18px
}

.f-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, .15)
}

.btn-red {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .07em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    text-transform: uppercase
}

.btn-red:hover {
    background: #c1121f;
    box-shadow: 0 8px 24px rgba(230, 57, 70, .4)
}

.btn-red:active {
    transform: scale(.98)
}

.si-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--text-dim);
    font-size: 12px
}

.si-or::before,
.si-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border)
}

.btn-ghost {
    width: 100%;
    padding: 13px;
    background: transparent;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    text-transform: uppercase;
    letter-spacing: .06em
}

.btn-ghost:hover {
    border-color: var(--text-muted);
    color: var(--text);
    background: var(--surface)
}

.si-note {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim)
}

.si-link {
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px
}

/* ── HOME ── */
#home-screen {
    background: var(--bg);
    padding-top: var(--nav-h)
}

/* Hero */
.hero {
    position: relative;
    height: 70vh;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    padding: 56px 60px;
    overflow: hidden
}

.hero-back {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transition: background-image .8s ease
}

.hero-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 8, 16, .05) 0%, rgba(8, 8, 16, .15) 35%, rgba(8, 8, 16, .82) 78%, var(--bg) 100%)
}

.hero-grad-l {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(8, 8, 16, .72) 0%, transparent 58%)
}

.hero-cnt {
    position: relative;
    z-index: 2;
    max-width: 500px;
    animation: heroIn .8s ease both
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(22px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 4px;
    margin-bottom: 14px
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 4.5vw, 68px);
    line-height: 1;
    letter-spacing: .02em;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .5)
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex-wrap: wrap
}

.hero-rating {
    color: var(--accent2);
    font-weight: 700
}

.hero-dot {
    opacity: .35
}

.hero-desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(240, 239, 244, .78);
    margin-bottom: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.hero-acts {
    display: flex;
    gap: 12px
}

.btn-play {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .04em;
    text-transform: uppercase
}

.btn-play:hover {
    background: #c1121f;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(230, 57, 70, .4)
}

.btn-info {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s
}

.btn-info:hover {
    background: rgba(255, 255, 255, .18)
}

/* Filter tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    padding: 22px 40px 0;
    flex-wrap: wrap
}

.ftab {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .03em
}

.ftab:hover {
    border-color: var(--text-muted);
    color: var(--text)
}

.ftab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff
}

/* Content section */
.csect {
    padding: 22px 40px 40px
}

.sec-hdr {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px
}

.sec-title {
    font-family: 'DM Serif Display', serif;
    font-size: 21px;
    font-weight: 400
}

.sec-count {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: 15px
}

/* Media card */
.mcard {
    position: relative;
    border-radius: var(--card-r);
    overflow: hidden;
    cursor: pointer;
    background: var(--surface);
    aspect-ratio: 2/3;
    transition: transform var(--ease), box-shadow var(--ease);
    will-change: transform
}

.mcard:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .65), 0 0 0 2px rgba(230, 57, 70, .28);
    z-index: 10
}

.mcard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .35s
}

.mcard img.in {
    opacity: 1
}

.skel {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: shim 1.4s infinite
}

@keyframes shim {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

.cov {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, transparent 55%);
    opacity: 0;
    transition: opacity var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 13px
}

.mcard:hover .cov {
    opacity: 1
}

.c-title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 3px
}

.c-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px
}

.c-stars {
    color: var(--accent2);
    font-weight: 700
}

.c-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(5px);
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px
}

.c-badge.tv {
    color: var(--accent3)
}

.c-badge.movie {
    color: var(--accent)
}

.c-badge.game {
    color: #a78bfa
}

/* Sentinel */
#sentinel {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center
}

.dots {
    display: flex;
    gap: 6px
}

.dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: bop .8s infinite
}

.dots span:nth-child(2) {
    animation-delay: .15s
}

.dots span:nth-child(3) {
    animation-delay: .3s
}

@keyframes bop {

    0%,
    80%,
    100% {
        transform: scale(.6);
        opacity: .4
    }

    40% {
        transform: scale(1);
        opacity: 1
    }
}

/* ── SEARCH ── */
#search-screen {
    background: var(--bg);
    padding-top: var(--nav-h);
    min-height: 100vh
}

.search-hdr {
    padding: 28px 40px 18px;
    position: sticky;
    top: var(--nav-h);
    background: var(--bg);
    z-index: 10;
    border-bottom: 1px solid var(--border)
}

.search-wrap {
    position: relative;
    max-width: 580px
}

.si {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
    font-size: 17px
}

#s-input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 44px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s
}

#s-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, .1)
}

#s-input::placeholder {
    color: var(--text-dim)
}

.s-clr {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 16px;
    display: none;
    transition: color .2s
}

.s-clr:hover {
    color: var(--text)
}

.s-clr.vis {
    display: block
}

#s-area {
    padding: 22px 40px
}

.s-hint {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-dim)
}

.s-hint-icon {
    font-size: 44px;
    margin-bottom: 14px;
    opacity: .4
}

.s-hint-title {
    font-size: 17px;
    margin-bottom: 7px;
    color: var(--text-muted)
}

.s-hint-sub {
    font-size: 13px
}

.s-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px
}

.s-label strong {
    color: var(--text)
}

/* ── PROFILE ── */
#profile-screen {
    background: var(--bg);
    padding-top: var(--nav-h);
    min-height: 100vh
}

.prof-hdr {
    padding: 44px 60px 36px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 26px;
    animation: fadeUp .5s ease both
}

.prof-av {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(230, 57, 70, .3)
}

.prof-name {
    font-family: 'DM Serif Display', serif;
    font-size: 26px;
    margin-bottom: 4px
}

.prof-sub {
    font-size: 13px;
    color: var(--text-muted)
}

.btn-so {
    margin-left: auto;
    padding: 10px 22px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s
}

.btn-so:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.prof-body {
    padding: 36px 60px
}

.prof-sec-ttl {
    font-family: 'DM Serif Display', serif;
    font-size: 19px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border)
}

.prof-empty {
    background: var(--surface);
    border-radius: 12px;
    padding: 36px;
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 36px
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 13px;
    margin-bottom: 36px
}

/* ── PREVIEW MODAL ── */
#prev-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease
}

#prev-modal.open {
    opacity: 1;
    pointer-events: all
}

.modal-back {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .86);
    backdrop-filter: blur(10px)
}

.modal-card {
    position: relative;
    z-index: 2;
    background: var(--surface);
    border-radius: 16px;
    width: min(880px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .8);
    transform: scale(.91) translateY(28px);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .35s;
    opacity: 0
}

#prev-modal.open .modal-card {
    transform: scale(1) translateY(0);
    opacity: 1
}

.modal-hero-img {
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0
}

.modal-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top
}

.modal-hero-gr {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, var(--surface) 100%)
}

.modal-x {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--text);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 5
}

.modal-x:hover {
    background: rgba(230, 57, 70, .5);
    border-color: var(--accent)
}

.modal-body {
    padding: 0 30px 30px
}

.modal-type-lbl {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 7px
}

.modal-ttl {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    letter-spacing: .02em;
    margin-bottom: 11px
}

.modal-meta {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap
}

.modal-meta span {
    font-size: 13px;
    color: var(--text-muted)
}

.modal-meta .mrating {
    color: var(--accent2);
    font-weight: 700
}

.modal-genres {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 18px
}

.gchip {
    padding: 4px 11px;
    background: var(--surface2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border)
}

.modal-desc {
    font-size: 13.5px;
    line-height: 1.78;
    color: rgba(240, 239, 244, .75);
    margin-bottom: 26px
}

.modal-acts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.btn-mplay {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: all .2s;
    text-transform: uppercase
}

.btn-mplay:hover {
    background: #c1121f;
    transform: translateY(-1px)
}

.btn-mwl,
.btn-mhist {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 18px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s
}

.btn-mwl:hover,
.btn-mhist:hover {
    border-color: var(--text-muted);
    color: var(--text)
}

.btn-mwl.on {
    border-color: var(--accent2);
    color: var(--accent2)
}

.btn-mhist.on {
    border-color: var(--accent3);
    color: var(--accent3)
}

/* spinner */
.spin {
    width: 36px;
    height: 36px;
    border: 3px solid var(--surface2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spinning .7s linear infinite;
    margin: 70px auto
}

@keyframes spinning {
    to {
        transform: rotate(360deg)
    }
}