/*
 * Math Planet — public site styles.
 * Also loaded on the student login/register pages, so every rule is namespaced
 * with "mp-" and base element styles only apply under body.mp-site.
 */

:root {
    --mp-ink: #0f172a;
    --mp-text: #334155;
    --mp-muted: #64748b;
    --mp-line: #e2e8f0;
    --mp-soft: #f8fafc;
    --mp-bg: #ffffff;
    --mp-brand: #1d4ed8;
    --mp-brand-dark: #1e40af;
    --mp-brand-tint: #eff4ff;
    --mp-mark: #fde68a;
    --mp-radius: 14px;
    --mp-wrap: 1120px;
    --mp-font: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mp-display: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base (public pages only) ---------- */
body.mp-site {
    margin: 0;
    font-family: var(--mp-font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--mp-text);
    background: var(--mp-bg);
    -webkit-font-smoothing: antialiased;
}
body.mp-site *, .mp-header *, .mp-footer *, .mp-auth * { box-sizing: border-box; }
body.mp-site img { max-width: 100%; display: block; }

.mp-wrap { max-width: var(--mp-wrap); margin: 0 auto; padding: 0 1.25rem; }
.mp-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; overflow: hidden; }

/* Faint graph-paper grid, fading out towards the bottom. */
.mp-grid-bg { position: relative; overflow: hidden; }
.mp-grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--mp-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--mp-line) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: .6;
    -webkit-mask-image: radial-gradient(120% 95% at 50% 0%, #000 25%, transparent 75%);
    mask-image: radial-gradient(120% 95% at 50% 0%, #000 25%, transparent 75%);
    pointer-events: none;
}
.mp-grid-bg > * { position: relative; }

/* ---------- Buttons ---------- */
.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .68rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: var(--mp-font);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.mp-btn-primary { background: var(--mp-brand); color: #fff; }
.mp-btn-primary:hover { background: var(--mp-brand-dark); color: #fff; }
.mp-btn-outline { background: #fff; color: var(--mp-ink); border-color: #cbd5e1; }
.mp-btn-outline:hover { border-color: var(--mp-ink); color: var(--mp-ink); }
.mp-btn-light { background: #fff; color: var(--mp-ink); }
.mp-btn-light:hover { background: #e2e8f0; color: var(--mp-ink); }
.mp-btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.mp-btn-ghost-light:hover { border-color: #fff; color: #fff; }
.mp-btn-lg { padding: .88rem 1.5rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.mp-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--mp-line);
    font-family: var(--mp-font);
    font-size: 17px;
    line-height: 1.5;
}
.mp-header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.mp-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--mp-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--mp-ink);
    text-decoration: none;
    white-space: nowrap;
}
.mp-brand em { font-style: normal; color: var(--mp-brand); }
.mp-brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--mp-brand);
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}
.mp-nav { display: flex; align-items: center; gap: 2rem; }
.mp-nav-links { display: flex; align-items: center; gap: 1.75rem; }
.mp-nav-link { position: relative; padding: .4rem 0; color: var(--mp-text); font-weight: 500; text-decoration: none; }
.mp-nav-link:hover { color: var(--mp-ink); }
.mp-nav-link.is-active { color: var(--mp-ink); font-weight: 600; }
.mp-nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    border-radius: 2px;
    background: var(--mp-brand);
}
.mp-nav-actions { display: flex; align-items: center; gap: .6rem; }
.mp-nav-toggle { display: none; }

@media (max-width: 780px) {
    .mp-nav-toggle {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid var(--mp-line);
        border-radius: 10px;
        background: #fff;
        color: var(--mp-ink);
        cursor: pointer;
    }
    .mp-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: .5rem 1.25rem 1.25rem;
        background: #fff;
        border-bottom: 1px solid var(--mp-line);
        box-shadow: 0 24px 30px -24px rgba(15, 23, 42, .35);
    }
    .mp-header.is-open .mp-nav { display: flex; }
    .mp-nav-links { flex-direction: column; align-items: stretch; gap: 0; }
    .mp-nav-link { padding: .8rem 0; border-bottom: 1px solid var(--mp-line); }
    .mp-nav-link.is-active::after { display: none; }
    .mp-nav-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ---------- Hero ---------- */
.mp-hero { border-bottom: 1px solid var(--mp-line); }
.mp-slides { display: grid; }
.mp-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
    align-items: center;
    padding: 4rem 0 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s;
}
.mp-slide.is-active { opacity: 1; visibility: visible; }
.mp-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .28rem .85rem;
    border: 1px solid var(--mp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--mp-text);
    font-size: .9rem;
    font-weight: 500;
}
.mp-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mp-brand); }
.mp-hero-title {
    margin: 1rem 0 .7rem;
    font-family: var(--mp-display);
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--mp-ink);
}
.mp-hero-tagline { margin: 0 0 .7rem; font-family: var(--mp-display); font-size: 1.25rem; font-weight: 600; color: var(--mp-brand); }
.mp-hero-lead { max-width: 520px; margin: 0 0 1.75rem; font-size: 1.1rem; color: var(--mp-muted); }
.mp-hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.mp-hero-media { position: relative; }
.mp-hero-media::before {
    content: '';
    position: absolute;
    inset: 18px -14px -14px 18px;
    border: 1px solid #dbe5ff;
    border-radius: 20px;
    background: var(--mp-brand-tint);
}
.mp-hero-media img, .mp-hero-fallback {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border: 1px solid var(--mp-line);
    border-radius: 18px;
    background: var(--mp-soft);
}
.mp-hero-fallback {
    display: grid;
    place-items: center;
    background: var(--mp-brand-tint);
    color: var(--mp-brand);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 6rem;
}
.mp-hero-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding: .5rem 0 2.75rem; }
.mp-hero-controls { display: flex; align-items: center; gap: .9rem; }
.mp-hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; font-size: .95rem; color: var(--mp-text); }
.mp-hero-points li { display: flex; align-items: center; gap: .4rem; }
.mp-hero-points svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--mp-brand); }

/* Quick links strip under the hero */
.mp-quick { border-bottom: 1px solid var(--mp-line); background: #fff; }
.mp-quick-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-left: 1px solid var(--mp-line); border-right: 1px solid var(--mp-line); background: var(--mp-line); }
.mp-quick-link { display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.15rem; background: #fff; color: inherit; text-decoration: none; transition: background .15s; }
.mp-quick-link:hover { background: var(--mp-soft); }
.mp-quick-link .mp-ico { width: 40px; height: 40px; }
.mp-quick-link .mp-ico svg { width: 20px; height: 20px; }
.mp-quick-label { display: block; font-weight: 600; line-height: 1.4; color: var(--mp-ink); }
.mp-quick-sub { display: block; font-size: .88rem; line-height: 1.4; color: var(--mp-muted); }
.mp-hero-arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    color: var(--mp-ink);
    cursor: pointer;
    transition: border-color .15s;
}
.mp-hero-arrow:hover { border-color: var(--mp-ink); }
.mp-hero-arrow svg { width: 18px; height: 18px; }
.mp-hero-dots { display: flex; align-items: center; gap: .4rem; }
.mp-hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width .25s, background .25s;
}
.mp-hero-dots button.is-active { width: 24px; background: var(--mp-brand); }

/* ---------- Sections ---------- */
.mp-section { padding: 5rem 0; }
.mp-section-soft { background: var(--mp-soft); border-top: 1px solid var(--mp-line); border-bottom: 1px solid var(--mp-line); }
.mp-head { max-width: 640px; margin: 0 0 2.5rem; }
.mp-overline { display: inline-block; margin-bottom: .4rem; font-size: .95rem; font-weight: 600; color: var(--mp-brand); }
.mp-head h2 {
    margin: 0 0 .6rem;
    font-family: var(--mp-display);
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--mp-ink);
}
.mp-head p { margin: 0; font-size: 1.05rem; color: var(--mp-muted); }
.mp-head-center { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; }
.mp-head-center h2 { text-wrap: balance; }
.mp-mark { padding: 0 .12em; background: linear-gradient(transparent 62%, var(--mp-mark) 62%); }

/* Subjects + model tests: one grid of tiles */
.mp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.mp-tile {
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid var(--mp-line);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.mp-tile:hover { border-color: var(--mp-brand); box-shadow: 0 18px 36px -24px rgba(29, 78, 216, .55); transform: translateY(-2px); }
.mp-tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.mp-tile .mp-ico { width: 52px; height: 52px; border-radius: 14px; }
.mp-tile .mp-ico svg { width: 26px; height: 26px; }
.mp-chip { padding: .12rem .7rem; border: 1px solid var(--mp-line); border-radius: 999px; background: var(--mp-soft); font-size: .82rem; font-weight: 600; color: var(--mp-muted); }
.mp-tile-alt .mp-ico { background: #fff7e6; color: #b45309; }
.mp-tile-alt .mp-chip { border-color: #fde68a; background: #fff7e6; color: #92400e; }
.mp-tile h3 { margin: 0 0 .25rem; font-family: var(--mp-display); font-size: 1.25rem; font-weight: 700; line-height: 1.4; color: var(--mp-ink); }
.mp-tile p { margin: 0 0 1.5rem; font-size: .97rem; color: var(--mp-muted); }
.mp-tile-go { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; font-size: .98rem; font-weight: 600; color: var(--mp-brand); }
.mp-tile-go svg { width: 18px; height: 18px; transition: transform .15s; }
.mp-tile:hover .mp-tile-go svg { transform: translateX(3px); }
.mp-ico {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--mp-brand-tint);
    color: var(--mp-brand);
}
.mp-ico svg { width: 22px; height: 22px; }
.mp-empty {
    padding: 1.25rem;
    border: 1px dashed #cbd5e1;
    border-radius: var(--mp-radius);
    background: #fff;
    color: var(--mp-muted);
    text-align: center;
}

/* Features: one bordered block with hairline dividers */
.mp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--mp-line);
    border-radius: 18px;
    background: var(--mp-line);
    overflow: hidden;
}
.mp-feature { padding: 1.75rem; background: #fff; }
.mp-feature .mp-ico { margin-bottom: 1rem; }
.mp-feature h3 { margin: 0 0 .4rem; font-family: var(--mp-display); font-size: 1.17rem; font-weight: 700; color: var(--mp-ink); }
.mp-feature p { margin: 0; font-size: .99rem; color: var(--mp-muted); }

/* YouTube videos: one player with a playlist beside it */
.mp-head-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.mp-head-row .mp-head { margin-bottom: 0; }
.mp-player { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.mp-video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--mp-line);
    border-radius: 18px;
    background: var(--mp-ink);
    overflow: hidden;
}
.mp-video-cover { position: absolute; inset: 0; display: block; }
.mp-video-thumb img, .mp-video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mp-video-thumb img { object-fit: cover; transition: transform .3s ease; }
.mp-video-cover:hover img { transform: scale(1.03); }
.mp-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--mp-brand);
    box-shadow: 0 8px 20px -6px rgba(15, 23, 42, .5);
    transition: background .15s, color .15s;
}
.mp-video-play svg { width: 26px; height: 26px; margin-left: 4px; }
.mp-video-cover:hover .mp-video-play { background: var(--mp-brand); color: #fff; }
.mp-player-title { margin: .9rem 0 .15rem; font-family: var(--mp-display); font-size: 1.2rem; font-weight: 700; line-height: 1.45; color: var(--mp-ink); }
.mp-video-date { font-size: .92rem; color: var(--mp-muted); }
.mp-playlist { display: grid; gap: .35rem; margin: 0; padding: .5rem; border: 1px solid var(--mp-line); border-radius: 18px; background: #fff; list-style: none; }
.mp-playlist-item { display: flex; align-items: center; gap: .85rem; padding: .5rem; border-radius: 12px; color: inherit; text-decoration: none; transition: background .15s; }
.mp-playlist-item:hover { background: var(--mp-soft); }
.mp-playlist-item.is-active { background: var(--mp-brand-tint); }
.mp-playlist-thumb { position: relative; flex-shrink: 0; width: 104px; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--mp-ink); overflow: hidden; }
.mp-playlist-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-playlist-body { min-width: 0; }
.mp-playlist-title { display: -webkit-box; font-size: .97rem; font-weight: 600; line-height: 1.4; color: var(--mp-ink); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-playlist-item.is-active .mp-playlist-title { color: var(--mp-brand-dark); }
.mp-playlist-date { display: block; font-size: .85rem; color: var(--mp-muted); }

/* Call to action */
.mp-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.75rem 2rem;
    padding: clamp(2.25rem, 5vw, 3.5rem);
    border-radius: 20px;
    background: var(--mp-ink);
    color: #fff;
    overflow: hidden;
}
.mp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.mp-cta > * { position: relative; }
.mp-cta h2 { margin: 0 0 .4rem; font-family: var(--mp-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.3; color: #fff; }
.mp-cta p { max-width: 520px; margin: 0; color: #cbd5e1; }
.mp-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Inner pages ---------- */
.mp-page-hero { padding: 4rem 0 3.25rem; border-bottom: 1px solid var(--mp-line); }
.mp-page-hero h1 {
    margin: .2rem 0 .7rem;
    font-family: var(--mp-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--mp-ink);
}
.mp-page-hero p { max-width: 620px; margin: 0; font-size: 1.1rem; color: var(--mp-muted); }

.mp-about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.mp-prose h2 { margin: 2rem 0 .5rem; font-family: var(--mp-display); font-size: 1.45rem; font-weight: 700; color: var(--mp-ink); }
.mp-prose h2:first-child { margin-top: 0; }
.mp-prose p { margin: 0 0 1rem; }
.mp-card { padding: 1.75rem; border: 1px solid var(--mp-line); border-radius: 18px; background: #fff; }
.mp-card h2 { margin: 0 0 1.1rem; font-family: var(--mp-display); font-size: 1.3rem; font-weight: 700; color: var(--mp-ink); }
.mp-check { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.mp-check li { display: flex; align-items: flex-start; gap: .7rem; }
.mp-check svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: .2rem; color: var(--mp-brand); }

.mp-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.mp-contact-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--mp-line);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.mp-contact-card:hover { border-color: var(--mp-brand); box-shadow: 0 10px 24px -18px rgba(29, 78, 216, .6); }
.mp-contact-card .mp-ico { margin-bottom: 1rem; }
.mp-contact-label { font-size: .95rem; color: var(--mp-muted); }
.mp-contact-value { font-family: var(--mp-display); font-size: 1.3rem; font-weight: 700; line-height: 1.4; color: var(--mp-ink); word-break: break-word; }
.mp-contact-note { margin-top: .25rem; font-size: .93rem; color: var(--mp-muted); }

/* ---------- Footer ---------- */
.mp-footer {
    border-top: 1px solid var(--mp-line);
    background: var(--mp-soft);
    color: var(--mp-text);
    font-family: var(--mp-font);
    font-size: 16px;
    line-height: 1.7;
}
.mp-footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.mp-footer-tag { max-width: 300px; margin: .9rem 0 0; color: var(--mp-muted); }
.mp-footer h4 { margin: 0 0 .9rem; font-family: var(--mp-display); font-size: 1.05rem; font-weight: 700; color: var(--mp-ink); }
.mp-footer ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.mp-footer a { color: var(--mp-text); text-decoration: none; }
.mp-footer a:hover { color: var(--mp-brand); }
.mp-footer .mp-brand, .mp-footer .mp-brand:hover { color: var(--mp-ink); }
.mp-footer-contact li { display: flex; align-items: flex-start; gap: .6rem; }
.mp-footer-contact svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: .3rem; color: var(--mp-muted); }
.mp-footer-contact small { display: block; font-size: .88rem; color: var(--mp-muted); }
.mp-footer-social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.mp-footer-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--mp-line);
    border-radius: 10px;
    background: #fff;
}
.mp-footer-social a:hover { border-color: var(--mp-brand); }
.mp-footer-social svg { width: 18px; height: 18px; }
.mp-footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--mp-line);
    font-size: .93rem;
    color: var(--mp-muted);
}

/* ---------- Floating WhatsApp ---------- */
.mp-wa {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 50;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .7);
    text-decoration: none;
    transition: transform .15s;
}
.mp-wa:hover { transform: scale(1.06); color: #fff; }
.mp-wa svg { width: 28px; height: 28px; }

/* ---------- Student login / register ---------- */
.mp-auth {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    width: min(980px, calc(100vw - 2.5rem));
    margin: 0 auto;
    border: 1px solid var(--mp-line);
    border-radius: 20px;
    background: #fff;
    font-family: var(--mp-font);
    overflow: hidden;
}
.mp-auth-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: var(--mp-ink);
    color: #fff;
    overflow: hidden;
}
.mp-auth-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.mp-auth-side > * { position: relative; }
.mp-auth-brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--mp-display); font-size: 1.15rem; font-weight: 700; color: #fff; }
.mp-auth-brand .mp-brand-mark { width: 32px; height: 32px; border-radius: 9px; background: #fff; color: var(--mp-brand); font-size: 1.15rem; }
.mp-auth-side h2 { margin: 1.4rem 0 .75rem; font-family: var(--mp-display); font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.25; color: #fff; }
.mp-auth-side p { max-width: 320px; margin: 0 0 1.5rem; font-size: 1.02rem; line-height: 1.7; color: #cbd5e1; }
.mp-auth-switch { font-size: .98rem; color: #cbd5e1; }
.mp-auth-switch a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.mp-auth-form { display: flex; flex-direction: column; justify-content: center; padding: 3rem 2.5rem; background: #fff; }
.mp-auth-form h1 { margin: 0 0 .25rem; font-family: var(--mp-display); font-size: 1.7rem; font-weight: 700; line-height: 1.3; color: var(--mp-ink); }
.mp-auth-lead { margin: 0 0 1.5rem; font-size: .98rem; color: var(--mp-muted); }
.dark .mp-auth, .dark .mp-auth-form { background: #18181b; border-color: rgba(255, 255, 255, .1); }
.dark .mp-auth-form h1 { color: #fafafa; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .mp-features { grid-template-columns: repeat(2, 1fr); }
    .mp-player { grid-template-columns: 1fr; }
    .mp-quick-in { grid-template-columns: repeat(2, 1fr); }
    .mp-footer-in { grid-template-columns: 1fr 1fr; }
    .mp-about { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 800px) {
    .mp-slide { grid-template-columns: 1fr; align-content: start; gap: 2.25rem; padding: 2rem 0 1.5rem; }
    .mp-hero-media { order: -1; margin-right: 14px; }
    .mp-hero-bar { padding-bottom: 2.25rem; }
    .mp-section { padding: 3.5rem 0; }
    .mp-page-hero { padding: 3rem 0 2.5rem; }
    .mp-auth { grid-template-columns: 1fr; }
    .mp-auth-side { display: none; }
    .mp-auth-form { padding: 2rem 1.5rem; }
}
@media (max-width: 560px) {
    body.mp-site { font-size: 16px; }
    .mp-features { grid-template-columns: 1fr; }
    .mp-playlist li:nth-child(n+5) { display: none; }
    .mp-quick-link { padding: .9rem .8rem; gap: .65rem; }
    .mp-quick-sub { display: none; }
    .mp-footer-in { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 2rem; }
    .mp-hero-cta .mp-btn, .mp-cta-actions .mp-btn { flex: 1 1 auto; }
    body.mp-site .mp-footer-bottom { padding-bottom: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mp-slide, .mp-btn, .mp-tile, .mp-wa { transition: none; }
}
