/* ============================================
   RASIKA 12 — FRONTEND THEME
   Modern · Dark · Neon Accent
   Version: 3.0.0 — Ultra smooth slide + Jingle Interlude
   ============================================ */

.r12-wrapper {
    --r12-bg:        #07080f;
    --r12-bg-soft:   #0e101a;
    --r12-bg-card:   #12141f;
    --r12-bg-hover:  #1a1d2c;
    --r12-border:    #23273a;
    --r12-text:      #eef0f8;
    --r12-text-dim:  #8b90a8;
    --r12-text-mute: #5c6178;
    
    --r12-accent:    #6366f1;
    --r12-accent-2:  #a855f7;
    --r12-accent-3:  #06b6d4;
    --r12-gold:      #fbbf24;
    --r12-green:     #10b981;
    --r12-red:       #ef4444;
    --r12-orange:    #f97316;
    
    --r12-grad-1:    linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --r12-grad-2:    linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --r12-grad-gold: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    
    --r12-radius:    16px;
    --r12-radius-sm: 10px;
    --r12-shadow:    0 10px 40px -10px rgba(0,0,0,0.6);
    
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--r12-bg);
    color: var(--r12-text);
    border-radius: 24px;
    overflow: hidden;
    margin: 40px 0;
    box-shadow: var(--r12-shadow);
    position: relative;
}

.r12-wrapper * { box-sizing: border-box; }
.r12-wrapper img { max-width: 100%; display: block; }

/* ============================================
   HERO
   ============================================ */
.r12-hero {
    position: relative;
    padding: 56px 48px 48px;
    overflow: hidden;
    border-bottom: 1px solid var(--r12-border);
}

.r12-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(99,102,241,0.35) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(168,85,247,0.30) 0%, transparent 45%),
        radial-gradient(circle at 50% 120%, rgba(6,182,212,0.25) 0%, transparent 50%),
        linear-gradient(180deg, #0e101a 0%, #07080f 100%);
    z-index: 0;
}

.r12-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.r12-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.r12-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.r12-logo {
    font-size: 48px;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--r12-grad-1);
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 20px 60px -10px rgba(99,102,241,0.6);
    animation: r12-float 4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes r12-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.r12-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--r12-accent);
    text-transform: uppercase;
    margin-bottom: 6px;
    padding: 4px 10px;
    background: rgba(99,102,241,0.12);
    border-radius: 6px;
    border: 1px solid rgba(99,102,241,0.3);
}

.r12-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    margin: 8px 0 8px;
    background: linear-gradient(135deg, #fff 0%, #b8baf5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.r12-subtitle {
    margin: 0;
    color: var(--r12-text-dim);
    font-size: 14px;
    font-weight: 500;
}

.r12-hero-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.r12-week-badge {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.r12-week-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--r12-text-dim);
}

.r12-week-value {
    font-size: 32px;
    font-weight: 900;
    background: var(--r12-grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.r12-date-range {
    font-size: 12px;
    color: var(--r12-text-dim);
    font-weight: 500;
}

/* ============================================
   WEEK SELECTOR
   ============================================ */
.r12-week-selector {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.r12-week-selector-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--r12-text-dim);
    margin-bottom: 8px;
}

.r12-week-selector-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.r12-select {
    flex: 1;
    min-width: 90px;
    padding: 8px 12px;
    background: var(--r12-bg-soft);
    border: 1px solid var(--r12-border);
    border-radius: 8px;
    color: var(--r12-text);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238b90a8' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 26px;
}

.r12-select:hover { border-color: var(--r12-accent); }

.r12-select:focus {
    outline: none;
    border-color: var(--r12-accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.r12-select:disabled { opacity: 0.5; cursor: not-allowed; }

.r12-select option {
    background: #12141f;
    color: #eef0f8;
    padding: 8px;
}

/* ============================================
   LOADING / ERROR
   ============================================ */
.r12-loading {
    padding: 100px 32px;
    text-align: center;
    color: var(--r12-text-dim);
}

.r12-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--r12-border);
    border-top-color: var(--r12-accent);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: r12-spin 0.8s linear infinite;
}

@keyframes r12-spin { to { transform: rotate(360deg); } }

.r12-error {
    padding: 80px 32px;
    text-align: center;
    color: var(--r12-text-dim);
}

.r12-error span { font-size: 48px; display: block; margin-bottom: 16px; }

.r12-btn {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.r12-btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--r12-text);
    border: 1px solid var(--r12-border);
}

.r12-btn-ghost:hover {
    background: var(--r12-bg-hover);
    border-color: var(--r12-accent);
}

/* ============================================
   CONTENT
   ============================================ */
.r12-content { padding: 32px 48px 48px; }

/* ============================================
   META GRID (Host / Intro / Jingle)
   ============================================ */
.r12-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.r12-card {
    background: var(--r12-bg-card);
    border: 1px solid var(--r12-border);
    border-radius: var(--r12-radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.r12-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--r12-grad-1);
}

.r12-card-intro::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.r12-card-jingle::before { background: linear-gradient(90deg, #f97316, #fbbf24); }

.r12-card:hover {
    border-color: rgba(99,102,241,0.4);
    transform: translateY(-2px);
}

.r12-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--r12-text-dim);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.r12-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--r12-accent);
    box-shadow: 0 0 12px var(--r12-accent);
    animation: r12-pulse 2s infinite;
}

.r12-dot-green { background: var(--r12-green); box-shadow: 0 0 12px var(--r12-green); }
.r12-dot-orange { background: var(--r12-orange); box-shadow: 0 0 12px var(--r12-orange); }

@keyframes r12-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.r12-host-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.r12-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--r12-accent);
    box-shadow: 0 0 24px rgba(99,102,241,0.4);
    flex-shrink: 0;
    position: relative;
    background: var(--r12-bg-soft);
}

.r12-avatar img { width: 100%; height: 100%; object-fit: cover; }

.r12-avatar-fallback {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--r12-grad-1);
}

.r12-host-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--r12-text);
}

.r12-host-sub {
    margin: 0;
    font-size: 12px;
    color: var(--r12-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.r12-intro-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--r12-text-dim);
    font-style: italic;
}

.r12-audio-wrap { margin-top: 16px; }

.r12-audio-wrap audio {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    background: var(--r12-bg-soft);
}

/* ============================================
   CHART HEADER
   ============================================ */
.r12-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.r12-chart-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.r12-chart-title span {
    background: var(--r12-grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.r12-chart-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================
   AUTOPLAY TOGGLE BUTTON
   ============================================ */
.r12-autoplay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--r12-border);
    background: var(--r12-bg-soft);
    color: var(--r12-text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    white-space: nowrap;
}

.r12-autoplay-btn:hover {
    background: var(--r12-bg-hover);
    border-color: var(--r12-accent);
    transform: translateY(-1px);
}

.r12-autoplay-btn.r12-active {
    background: var(--r12-grad-1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(99,102,241,0.6);
}

.r12-autoplay-btn .r12-ap-icon { font-size: 14px; line-height: 1; }

.r12-autoplay-btn.r12-active .r12-ap-icon { animation: r12-pulse 1.2s infinite; }

/* ============================================
   FILTER TABS
   ============================================ */
.r12-filter-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: var(--r12-bg-soft);
    border: 1px solid var(--r12-border);
    border-radius: 12px;
    flex-wrap: wrap;
}

.r12-tab {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--r12-text-dim);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.r12-tab:hover {
    color: var(--r12-text);
    background: var(--r12-bg-hover);
}

.r12-tab.active {
    background: var(--r12-grad-1);
    color: white;
    box-shadow: 0 4px 12px -2px rgba(99,102,241,0.4);
}

/* ============================================
   CHART LIST
   ============================================ */
.r12-chart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.r12-chart-item {
    display: grid;
    grid-template-columns: 60px 80px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--r12-bg-card);
    border: 1px solid var(--r12-border);
    border-radius: var(--r12-radius-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: r12-slideIn 0.4s ease backwards;
}

@keyframes r12-slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.r12-chart-item:hover {
    border-color: rgba(99,102,241,0.5);
    background: var(--r12-bg-hover);
    transform: translateX(4px);
    box-shadow: 0 10px 30px -10px rgba(99,102,241,0.3);
}

.r12-chart-item.r12-top1 {
    background: linear-gradient(90deg, rgba(251,191,36,0.08) 0%, var(--r12-bg-card) 40%);
    border-color: rgba(251,191,36,0.3);
}

.r12-chart-item.r12-top1::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--r12-grad-gold);
}

.r12-chart-item.r12-top2::before,
.r12-chart-item.r12-top3::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--r12-grad-1);
}

.r12-chart-item.r12-expanded {
    border-color: rgba(99,102,241,0.6);
    background: var(--r12-bg-hover);
    transform: none;
    box-shadow: 0 20px 40px -15px rgba(99,102,241,0.4);
}

.r12-chart-item.r12-playing-item {
    border-color: rgba(99,102,241,0.7) !important;
    background: linear-gradient(90deg, rgba(99,102,241,0.12) 0%, var(--r12-bg-card) 60%) !important;
    box-shadow: 0 12px 40px -15px rgba(99,102,241,0.5);
}

.r12-chart-item.r12-playing-item .r12-pos-num {
    color: var(--r12-accent);
    text-shadow: 0 0 20px rgba(99,102,241,0.5);
}

.r12-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.r12-pos-num {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: var(--r12-text);
}

.r12-top1 .r12-pos-num {
    background: var(--r12-grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
}

.r12-movement {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.r12-movement.up { background: rgba(16,185,129,0.12); color: #34d399; }
.r12-movement.down { background: rgba(239,68,68,0.12); color: #f87171; }
.r12-movement.steady { background: rgba(139,144,168,0.12); color: var(--r12-text-dim); }
.r12-movement.new { background: rgba(168,85,247,0.12); color: #c084fc; }
.r12-movement.re-entry { background: rgba(251,146,60,0.12); color: #fb923c; }

.r12-cover {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--r12-bg-soft);
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5);
    position: relative;
    flex-shrink: 0;
}

.r12-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.r12-chart-item:hover .r12-cover img { transform: scale(1.08); }

.r12-cover-fallback {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--r12-grad-2);
}

.r12-info { min-width: 0; }

.r12-song-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--r12-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.r12-song-artist {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--r12-text-dim);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.r12-song-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.r12-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--r12-border);
    border-radius: 6px;
    color: var(--r12-text-dim);
    white-space: nowrap;
}

.r12-chip.peak {
    background: rgba(251,191,36,0.08);
    border-color: rgba(251,191,36,0.25);
    color: #fbbf24;
}

.r12-chip.weeks {
    background: rgba(59,130,246,0.08);
    border-color: rgba(59,130,246,0.25);
    color: #60a5fa;
}

.r12-action { display: flex; align-items: center; }

.r12-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--r12-border);
    background: var(--r12-bg-soft);
    color: var(--r12-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
}

.r12-play-btn:hover {
    background: var(--r12-grad-1);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 8px 20px -6px rgba(99,102,241,0.6);
}

.r12-play-btn.r12-playing {
    background: var(--r12-grad-1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 16px rgba(99,102,241,0.5);
}

.r12-play-youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.r12-play-youtube:hover { box-shadow: 0 8px 24px -6px rgba(255, 0, 0, 0.5) !important; }

.r12-play-youtube.r12-playing {
    background: linear-gradient(135deg, #ff0000, #cc0000) !important;
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.5) !important;
}

/* ============================================
   INLINE PLAYER SLOT — ULTRA SMOOTH SLIDE DOWN / UP
   Teknik: grid-template-rows 0fr↔1fr + transform + will-change
   ============================================ */
.r12-player-slot {
    grid-column: 1 / -1;
    
    display: grid;
    grid-template-rows: 0fr;
    transform: translateY(-8px);
    opacity: 0;
    margin-top: 0;
    
    will-change: grid-template-rows, transform, opacity;
    
    transition:
        grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease,
        margin-top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.r12-player-slot.r12-open {
    grid-template-rows: 1fr;
    transform: translateY(0);
    opacity: 1;
    margin-top: 12px;
}

.r12-player-slot > * {
    overflow: hidden;
    min-height: 0;
}

.r12-player-inner {
    padding: 12px;
    background: var(--r12-bg-soft);
    border-radius: 10px;
    border: 1px solid var(--r12-border);
    
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transition:
        opacity 0.4s ease 0.08s,
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.r12-player-slot.r12-open .r12-player-inner {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.r12-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--r12-border);
}

.r12-player-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--r12-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.r12-player-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--r12-bg-hover);
    color: var(--r12-text-dim);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    font-family: inherit;
}

.r12-player-close:hover {
    background: var(--r12-red);
    color: #fff;
}

/* ============================================
   YOUTUBE WRAP — Universal iframe sizing
   ============================================ */
.r12-yt-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.r12-yt-wrap iframe,
.r12-yt-wrap > div {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

@supports not (aspect-ratio: 16 / 9) {
    .r12-yt-wrap {
        padding-bottom: 56.25%;
        height: 0;
    }
}

/* ============================================
   AUDIO PLAYER — SEMBUNYIKAN TOTAL
   ============================================ */
.r12-player-inner audio,
.r12-player-slot .r12-player-inner audio,
.r12-player-slot.r12-audio-only audio {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    display: block !important;
}

/* Slot audio-only — ringkas & tanpa dekorasi */
.r12-player-slot.r12-audio-only {
    grid-template-rows: 0fr;
}

.r12-player-slot.r12-audio-only.r12-open {
    grid-template-rows: 1fr;
    margin-top: 10px;
}

.r12-player-slot.r12-audio-only .r12-player-inner {
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(99,102,241,0.08) 0%, transparent 100%);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transform: translateY(-4px);
}

.r12-player-slot.r12-audio-only.r12-open .r12-player-inner {
    transform: translateY(0) scale(1);
}

.r12-player-slot.r12-audio-only .r12-player-inner::before {
    content: '🎵';
    font-size: 16px;
    animation: r12-pulse 1.5s infinite;
    flex-shrink: 0;
}

.r12-player-slot.r12-audio-only .r12-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin: 0;
    padding: 0;
    border: none;
    min-width: 0;
}

.r12-player-slot.r12-audio-only .r12-player-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--r12-accent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.r12-player-slot.r12-audio-only .r12-player-close {
    width: 24px;
    height: 24px;
    font-size: 14px;
    background: rgba(255,255,255,0.06);
}

.r12-player-slot.r12-audio-only .r12-player-close:hover {
    background: var(--r12-red);
}

/* ============================================
   START OVERLAY "TAP TO START"
   ============================================ */
#r12-start-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#r12-start-overlay.r12-show { opacity: 1; }

.r12-start-card {
    background: linear-gradient(180deg, #12141f 0%, #0e101a 100%);
    border: 1px solid #23273a;
    border-radius: 20px;
    padding: 36px 32px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.r12-start-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

#r12-start-overlay.r12-show .r12-start-card { transform: scale(1); }

.r12-start-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.5);
    animation: r12-float 3s ease-in-out infinite;
}

.r12-start-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #eef0f8;
    letter-spacing: -0.5px;
}

.r12-start-desc {
    margin: 0 0 24px;
    font-size: 13px;
    color: #8b90a8;
    line-height: 1.6;
}

.r12-start-desc strong {
    color: #a855f7;
    font-weight: 700;
}

.r12-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.6);
    font-family: inherit;
}

.r12-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(99, 102, 241, 0.8);
}

.r12-start-play-icon { font-size: 16px; display: inline-block; }

.r12-start-skip {
    display: block;
    margin: 12px auto 0;
    padding: 6px 16px;
    background: transparent;
    border: none;
    color: #5c6178;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
}

.r12-start-skip:hover { color: #8b90a8; }

/* ============================================
   FOOTER
   ============================================ */
.r12-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--r12-border);
    text-align: center;
}

.r12-footer p {
    margin: 0;
    font-size: 12px;
    color: var(--r12-text-mute);
    letter-spacing: 0.3px;
}

.r12-footer strong { color: var(--r12-accent); }

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 900px) {
    .r12-hero { padding: 40px 28px 32px; }
    .r12-content { padding: 24px 24px 32px; }
    .r12-hero-content { flex-direction: column; text-align: center; align-items: center; }
    .r12-hero-meta { align-items: center; }
    .r12-brand { flex-direction: column; text-align: center; }
    .r12-logo { width: 72px; height: 72px; font-size: 36px; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 640px) {
    .r12-wrapper { border-radius: 16px; margin: 20px 0; }
    .r12-hero { padding: 32px 20px 24px; }
    .r12-content { padding: 20px 16px 24px; }
    
    .r12-chart-item {
        grid-template-columns: 40px 56px 1fr 44px;
        gap: 10px;
        padding: 10px 12px;
    }
    
    .r12-action { display: flex !important; }
    
    .r12-play-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
    
    .r12-cover { width: 56px; height: 56px; border-radius: 8px; }
    .r12-pos-num { font-size: 22px; }
    .r12-top1 .r12-pos-num { font-size: 26px; }
    .r12-song-title { font-size: 14px; }
    .r12-song-artist { font-size: 12px; }
    
    .r12-chart-header { flex-direction: column; align-items: stretch; }
    .r12-chart-header-right {
        width: 100%;
        justify-content: space-between;
    }
    .r12-autoplay-btn { padding: 8px 14px; font-size: 12px; }
    
    .r12-week-value { font-size: 26px; }
    
    .r12-movement {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    /* Slide lebih snappy di mobile */
    .r12-player-slot {
        transition:
            grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.3s ease,
            margin-top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .r12-player-slot.r12-open { margin-top: 10px; }
    .r12-player-inner { padding: 10px; }
    .r12-player-title { font-size: 12px; }
    .r12-player-close { width: 26px; height: 26px; font-size: 14px; }
    
    .r12-player-slot.r12-audio-only.r12-open {
        margin-top: 8px;
    }
    
    .r12-player-slot.r12-audio-only .r12-player-inner {
        padding: 8px 12px;
    }
    
    .r12-start-card { padding: 28px 22px; }
    .r12-start-icon { width: 64px; height: 64px; font-size: 36px; }
    .r12-start-title { font-size: 19px; }
    .r12-start-desc { font-size: 12px; }
    .r12-start-btn { padding: 12px 20px; font-size: 14px; }
    
    /* Week Selector mobile */
    .r12-week-selector { padding: 10px 12px; width: 100%; }
    .r12-week-selector-row { width: 100%; }
    .r12-select {
        padding: 8px 10px;
        padding-right: 24px;
        font-size: 12px;
        min-width: 0;
    }
    .r12-hero-meta { width: 100%; align-items: stretch; }
}

/* ============================================
   EXTRA SMALL PHONES
   ============================================ */
@media (max-width: 380px) {
    .r12-chart-item {
        grid-template-columns: 34px 48px 1fr 40px;
        gap: 8px;
        padding: 8px 10px;
    }
    .r12-cover { width: 48px; height: 48px; }
    .r12-pos-num { font-size: 18px; }
    .r12-top1 .r12-pos-num { font-size: 22px; }
    .r12-play-btn { width: 36px !important; height: 36px !important; }
    .r12-song-title { font-size: 13px; }
}