/* ========================================================
   MAHIKARI · ADAPTIVE RESPONSIVE ARCHITECTURE
   Flawless Ergonomics from 320px to 4K Ultra-Wide
======================================================== */

/* ========================================================
   TABLET INTENTIONAL LAYOUT (768px to 1024px)
======================================================== */
@media (min-width: 861px) and (max-width: 1024px) {
    .card-wrapper {
        max-width: 94%;
    }

    .card-content-grid {
        grid-template-columns: 330px 1fr;
    }

    .col-left {
        padding: 1.85rem 1.45rem;
    }

    .col-right {
        padding: 1.85rem 1.65rem;
    }

    .creator-name {
        font-size: 1.75rem;
    }

    .now-playing-stage {
        padding: 1rem 1.15rem;
        gap: 1rem;
    }
}

/* ========================================================
   TABLET & MOBILE BREAKPOINT (< 860px)
======================================================== */
@media (max-width: 860px) {
    body {
        padding: 0.75rem 0.5rem;
        justify-content: flex-start;
    }

    .card-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }

    .site-brand-header {
        max-width: 100%;
        padding: 0.75rem 1rem;
        margin-bottom: 0.65rem;
    }

    .card-container {
        border-radius: var(--radius-md);
    }

    .card-top-bar {
        padding: 0.85rem 1rem;
    }

    .brand-sub {
        display: none;
    }

    .live-clock-pill {
        padding: 0.25rem 0.55rem;
        font-size: 0.65rem;
    }

    .live-clock-pill .clock-tz {
        display: none;
    }

    .status-indicator-pill {
        display: none;
    }

    .top-bar-controls {
        gap: 0.45rem;
    }

    .top-action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .zen-mini-dock {
        width: calc(100% - 32px);
        max-width: 360px;
        padding: 0.55rem 1rem;
        bottom: 18px;
        gap: 0.75rem;
    }

    .zen-dock-info {
        min-width: 90px;
    }

    .zen-hint-toast {
        width: calc(100% - 32px);
        max-width: 320px;
        font-size: 0.68rem;
        text-align: center;
        white-space: normal;
    }

    .card-content-grid {
        grid-template-columns: 1fr;
    }

    .col-left {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 1.5rem 1.25rem;
        gap: 1rem;
        justify-content: flex-start;
    }

    .avatar-zone,
    .avatar-presentation-stage {
        width: 124px;
        height: 124px;
    }

    .creator-name {
        font-size: 1.5rem;
    }

    .social-destination-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
    }

    .persona-selector-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-right {
        padding: 1.25rem 1.25rem 1.5rem;
        gap: 1.25rem;
    }

    .now-playing-stage {
        padding: 0.85rem 1rem;
        gap: 0.85rem;
    }

    .vinyl-disc-wrap {
        width: 68px;
        height: 68px;
    }

    .vinyl-platter {
        width: 36px;
        height: 36px;
    }

    .track-title {
        font-size: 1.05rem;
    }

    /* Mobile Controls Ergonomics */
    .audio-controls-dock {
        flex-direction: column;
        gap: 0.85rem;
        align-items: stretch;
    }

    .controls-playback-group {
        justify-content: center;
        gap: 0.85rem;
    }

    .controls-utility-group {
        justify-content: space-between;
        width: 100%;
    }

    .volume-slider-dock {
        flex: 1;
        justify-content: flex-end;
    }

    .volume-slider {
        width: 100%;
        max-width: 100px;
    }

    /* Responsive Dropdowns */
    .dropdown-flyout {
        position: fixed;
        bottom: 1rem;
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        max-width: none;
        border-radius: var(--radius-md);
    }

    .studio-card-footer {
        flex-direction: column;
        gap: 0.35rem;
        text-align: center;
    }
}

/* ========================================================
   COMPACT SMARTPHONES (< 430px: iPhone 13/14/15, Android)
======================================================== */
@media (max-width: 430px) {
    body {
        padding: 0.4rem 0.25rem;
    }

    .site-brand-header,
    .card-top-bar {
        padding: 0.65rem 0.85rem;
    }

    .brand-name {
        font-size: 0.85rem;
    }

    .monogram-symbol {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .col-left, .col-right {
        padding: 1.1rem 0.85rem;
    }

    .persona-selector-grid {
        grid-template-columns: 1fr;
    }

    .audio-category-nav {
        flex-wrap: nowrap;
    }

    .cat-tab {
        flex: 0 0 auto;
        font-size: 0.65rem;
    }

    .cat-tab:first-child {
        flex: 0 0 auto;
    }
}

/* ========================================================
   ULTRA-COMPACT (< 360px: Galaxy Z Flip cover, SE 1st gen)
======================================================== */
@media (max-width: 360px) {
    .social-destination-grid {
        grid-template-columns: 1fr;
    }

    .controls-playback-group {
        gap: 0.5rem;
    }

    .ctrl-btn {
        width: 32px;
        height: 32px;
    }

    .play-hero-btn {
        width: 40px;
        height: 40px;
    }
}

/* ========================================================
   DESKTOP & 4K OPTIMIZATIONS (> 1440px)
======================================================== */
@media (min-width: 1440px) {
    .card-wrapper {
        max-width: 1040px;
    }

    .card-content-grid {
        grid-template-columns: 380px 1fr;
        min-height: 620px;
    }

    .col-left {
        padding: 2.5rem 2.25rem;
    }

    .col-right {
        padding: 2.5rem 2.5rem;
    }

    .avatar-presentation-stage {
        width: 136px;
        height: 136px;
    }

    .creator-name {
        font-size: 2rem;
    }
}