/* Rasoi Radio: ticker, teaser strip, lounge overlay (cassette deck + Chandigarh photos), mini player.
   Design: docs/RECIPES.md "Rasoi Radio". Everything is prefixed rr- so it cannot collide with page CSS. */

/* ---------- Top ticker ---------- */
.rr-ticker {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 7px 14px;
    background: linear-gradient(90deg, #18120c, #2a1f17 50%, #18120c);
    border-bottom: 2px solid #d97706;
    color: #fde68a;
    font-family: 'Courier New', Courier, monospace; font-size: 0.82rem; letter-spacing: .4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}
.rr-ticker-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rr-badge {
    flex-shrink: 0; background: #c2410c; color: #fff; padding: 2px 9px; border-radius: 4px;
    font: 700 .72rem 'Poppins', sans-serif; letter-spacing: .5px;
}
.rr-ticker-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fef08a; min-width: 0; }
.rr-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex-shrink: 0; }
.rr-eq i { display: block; width: 3px; height: 4px; background: #f59e0b; border-radius: 1px; transform-origin: bottom; }
.rr-playing .rr-eq i { animation: rr-eq 1.1s ease-in-out infinite; height: 14px; }
.rr-playing .rr-eq i:nth-child(2) { animation-delay: .25s; }
.rr-playing .rr-eq i:nth-child(3) { animation-delay: .1s; }
.rr-playing .rr-eq i:nth-child(4) { animation-delay: .4s; }
.rr-playing .rr-eq i:nth-child(5) { animation-delay: .18s; }
@keyframes rr-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.rr-ticker-actions { display: flex; gap: 8px; flex-shrink: 0; }

.rr-tbtn {
    display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
    padding: 4px 12px; border-radius: 5px; border: 1px solid transparent;
    font: 700 .76rem 'Poppins', sans-serif; transition: transform .15s, background .15s;
}
.rr-tbtn:hover { transform: translateY(-1px); }
.rr-tbtn:focus-visible, .rr-btn:focus-visible, .rr-mech:focus-visible, .rr-polaroid:focus-visible,
.rr-close:focus-visible, .rr-mini:focus-visible, .rr-pill:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
.rr-tbtn-primary { background: #d97706; color: #18120c; }
.rr-tbtn-primary:hover { background: #f59e0b; }
.rr-tbtn-ghost { background: rgba(255, 255, 255, .1); color: #fde68a; border-color: rgba(253, 230, 138, .3); }
.rr-tbtn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- Masthead pill ---------- */
.rr-pill {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    color: #78350f !important; border-color: #d97706 !important;
    animation: rr-glow 3s ease-in-out infinite;
}
.rr-pill:hover { background: #d97706 !important; color: #fff !important; }
@keyframes rr-glow {
    0%, 100% { box-shadow: 0 3px 10px rgba(217, 119, 6, .25); }
    50% { box-shadow: 0 5px 18px rgba(217, 119, 6, .55); }
}

/* ---------- Compact teaser strip ---------- */
.rr-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin: 0 0 26px; padding: 12px 18px; border-radius: 16px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7 55%, #fff7ed);
    border: 1.5px solid #fcd34d; box-shadow: 0 6px 18px rgba(180, 83, 9, .08);
}
.rr-strip-left { display: flex; align-items: center; gap: 13px; min-width: 0; }
.rr-strip-icon {
    flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.35rem;
    background: #78350f; color: #fde68a; border-radius: 12px; box-shadow: 0 4px 10px rgba(120, 53, 15, .25);
}
.rr-strip-title { font: 700 1.08rem 'Playfair Display', Georgia, serif; color: #78350f; line-height: 1.25; }
.rr-strip-desc { font-size: .82rem; color: #6b5d52; margin-top: 1px; }
.rr-strip-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.rr-btn {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border-radius: 20px;
    padding: 8px 15px; font: 700 .83rem 'Poppins', sans-serif; transition: transform .15s, background .15s;
}
.rr-btn:hover { transform: translateY(-1px); }
.rr-btn-play { background: #166534; color: #fff; border: 1px solid #166534; }
.rr-btn-play:hover { background: #14532d; }
.rr-btn-open { background: #fff; color: #78350f; border: 1px solid #d97706; }
.rr-btn-open:hover { background: #fef3c7; }

/* ---------- Lounge overlay ---------- */
.rr-overlay {
    position: fixed; inset: 0; z-index: 2500; display: none; align-items: center; justify-content: center;
    padding: 18px; background: rgba(18, 14, 11, .86); backdrop-filter: blur(6px);
}
.rr-overlay.rr-open { display: flex; animation: rr-fade .25s ease; }
@keyframes rr-fade { from { opacity: 0; } to { opacity: 1; } }
.rr-lounge {
    position: relative; width: 100%; max-width: 1080px; max-height: 92vh; overflow-y: auto;
    padding: 26px; border-radius: 24px; background: #faf6f0; border: 2px solid #d4c5b3;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.rr-lounge-top {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
    padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1.5px solid #e7d8c5;
}
.rr-lounge-top h2 { margin: 0 0 4px; font: 700 1.6rem 'Playfair Display', Georgia, serif; color: #78350f; }
.rr-lounge-top p { margin: 0; font-size: .88rem; color: #6b5d52; }
.rr-close {
    flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
    background: #ede4d8; color: #5c4438; font-size: 1.3rem; line-height: 1;
}
.rr-close:hover { background: #c2410c; color: #fff; }
.rr-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .rr-grid { grid-template-columns: 1fr; } }
.rr-lounge-foot { margin: 18px 0 0; font-size: .74rem; color: #8a7a6c; text-align: center; }
.rr-lounge-foot a { color: #92400e; }

/* ---------- Cassette deck ---------- */
.rr-deck {
    padding: 20px; border-radius: 20px; color: #e5e5e5; border: 3px solid #3d332b;
    background: linear-gradient(145deg, #2d2621, #1a1613);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .35), inset 0 1px 1px rgba(255, 255, 255, .15);
}
.rr-deck-head {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding-bottom: 11px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.rr-brand { font: 700 .8rem 'Courier New', monospace; letter-spacing: 1.4px; color: #d97706; }
.rr-brand small { display: block; font-weight: 400; letter-spacing: .5px; color: #a8a29e; font-size: .64rem; }
.rr-counter { background: #110e0c; border: 1px solid #443830; border-radius: 4px; padding: 2px 8px; text-align: center; }
.rr-counter small { display: block; font: .56rem monospace; color: #78716c; }
.rr-counter b { font: 700 .95rem 'Courier New', monospace; color: #ef4444; letter-spacing: 2px; }
.rr-vus { display: flex; gap: 10px; margin-bottom: 14px; }
.rr-vu { flex: 1; padding: 6px 9px; background: #191410; border: 1px solid #4a3b30; border-radius: 8px; }
.rr-vu span { display: flex; justify-content: space-between; font: .62rem monospace; color: #a8a29e; }
.rr-vu div { height: 7px; margin-top: 4px; background: #2a221b; border-radius: 4px; overflow: hidden; }
.rr-vu i { display: block; height: 100%; width: 22%; border-radius: 4px; background: linear-gradient(90deg, #22c55e, #eab308 70%, #ef4444); }
.rr-playing .rr-vu i { animation: rr-vu-a .42s ease-in-out infinite alternate; }
.rr-playing .rr-vu:nth-child(2) i { animation-name: rr-vu-b; animation-duration: .36s; }
@keyframes rr-vu-a { from { width: 28%; } to { width: 88%; } }
@keyframes rr-vu-b { from { width: 22%; } to { width: 76%; } }

.rr-shell {
    margin-bottom: 16px; padding: 13px; border-radius: 14px; border: 2px solid #5c4438;
    background: linear-gradient(180deg, #ede4d8, #d8caa7); color: #262626;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, .7), 0 8px 20px rgba(0, 0, 0, .5);
}
.rr-label { padding: 8px 12px; background: #fffdf7; border: 1px dashed #b45309; border-radius: 8px; }
.rr-label-row {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding-bottom: 4px; margin-bottom: 8px; border-bottom: 1.5px solid #fed7aa;
    font: 700 .92rem 'Playfair Display', Georgia, serif; color: #78350f;
}
.rr-side {
    flex-shrink: 0; cursor: pointer; border: 0; border-radius: 12px; padding: 2px 9px;
    background: #78350f; color: #fef3c7; font: 700 .68rem monospace;
}
.rr-side:hover { background: #c2410c; }
.rr-window {
    position: relative; height: 62px; display: flex; align-items: center; justify-content: space-around; padding: 0 18px;
    background: rgba(40, 30, 20, .88); border: 2px solid #a89f91; border-radius: 8px; box-shadow: inset 0 4px 10px rgba(0, 0, 0, .6);
}
.rr-window::before { content: ''; position: absolute; left: 52px; right: 52px; top: 25px; height: 12px; background: #3b2a1d; }
.rr-window p { position: relative; z-index: 2; margin: 0; text-align: center; font: 700 .64rem monospace; color: #d97706; }
.rr-spool {
    position: relative; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center;
    background: #fff; border: 3px solid #666; border-radius: 50%; box-shadow: 0 0 8px rgba(0, 0, 0, .5);
}
.rr-spool::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background:
    linear-gradient(#fff, #fff) center / 5px 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 5px no-repeat, #262626; }
.rr-playing .rr-spool { animation: rr-spin 1.8s linear infinite; }
@keyframes rr-spin { to { transform: rotate(360deg); } }

.rr-lcd {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 14px; padding: 8px 12px; background: #0f172a; border: 1px solid #334155; border-radius: 8px;
}
.rr-lcd-track { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: .84rem 'Courier New', monospace; color: #38bdf8; }
.rr-lcd-state { flex-shrink: 0; font: 700 .7rem monospace; color: #22c55e; }
.rr-controls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 14px; }
.rr-mech {
    display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer;
    padding: 9px 3px; border-radius: 8px; border: 1px solid #5a4b41; border-bottom: 4px solid #1a1512;
    background: linear-gradient(180deg, #443831, #29211c); color: #f5f5f4; font: 700 .7rem 'Poppins', sans-serif;
    transition: transform .08s, background .15s;
}
.rr-mech:hover { background: #54463d; }
.rr-mech:active, .rr-mech[aria-pressed="true"] { transform: translateY(3px); border-bottom-width: 1px; background: #1f1915; color: #f59e0b; }
.rr-mech-play { background: linear-gradient(180deg, #166534, #14532d); border-color: #22c55e; }
.rr-mech-play:hover { background: #15803d; }
.rr-select-wrap { margin-bottom: 12px; }
.rr-select-wrap label { display: block; margin-bottom: 4px; font: .68rem monospace; color: #a8a29e; }
.rr-select {
    width: 100%; padding: 7px 10px; border-radius: 6px; border: 1px solid #4a3b30; background: #110e0c; color: #fde68a;
    font: .8rem 'Poppins', sans-serif;
}
.rr-links {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .25); font-size: .74rem; color: #a8a29e;
}
.rr-links div { display: flex; gap: 6px; flex-wrap: wrap; }
.rr-links a {
    padding: 3px 9px; border-radius: 6px; text-decoration: none; color: #fde68a;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: .73rem;
}
.rr-links a:hover { background: #d97706; color: #1a1613; }
.rr-note { margin: 10px 0 0; font-size: .7rem; color: #a8a29e; }

/* ---------- Photos ---------- */
.rr-photos h3 { margin: 0 0 12px; font: 700 1.15rem 'Playfair Display', Georgia, serif; color: #78350f; }
.rr-polaroids { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rr-polaroid {
    display: block; width: 100%; padding: 8px 8px 11px; text-align: left; cursor: pointer; border: 0; border-radius: 4px;
    background: #fff; color: inherit; font: inherit; box-shadow: 0 6px 16px rgba(0, 0, 0, .13);
    transition: transform .3s cubic-bezier(.175, .885, .32, 1.275), box-shadow .3s;
}
.rr-polaroid:nth-child(1) { transform: rotate(-.8deg); }
.rr-polaroid:nth-child(2) { transform: rotate(2deg); }
.rr-polaroid:nth-child(3) { transform: rotate(-2deg); }
.rr-polaroid:nth-child(4) { transform: rotate(1.6deg); }
.rr-polaroid:nth-child(5) { transform: rotate(-1.4deg); }
.rr-polaroid:hover, .rr-polaroid:focus-visible { transform: rotate(0) scale(1.04); box-shadow: 0 14px 28px rgba(0, 0, 0, .22); position: relative; z-index: 2; }
.rr-polaroid.rr-wide { grid-column: span 2; }
.rr-frame { height: 118px; overflow: hidden; border-radius: 2px; background: #f0e6d6; }
.rr-wide .rr-frame { height: 170px; }
.rr-frame img { display: block; width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) contrast(1.04); transition: transform .4s; }
.rr-polaroid:hover img { transform: scale(1.06); }
.rr-cap { margin-top: 7px; font: italic .8rem/1.3 'Playfair Display', Georgia, serif; color: #443831; }
.rr-place { display: block; margin-top: 3px; font: 700 .66rem monospace; color: #9a3412; }

/* ---------- Photo modal ---------- */
.rr-photo-modal {
    position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center;
    padding: 18px; background: rgba(15, 12, 10, .92);
}
.rr-photo-modal.rr-open { display: flex; }
.rr-photo-box { position: relative; width: 100%; max-width: 660px; padding: 16px 16px 22px; border-radius: 12px; background: #fff; box-shadow: 0 25px 50px rgba(0, 0, 0, .5); }
.rr-photo-box img { display: block; width: 100%; max-height: 52vh; object-fit: cover; border-radius: 6px; }
.rr-photo-box h4 { margin: 14px 0 4px; font: 700 1.08rem 'Playfair Display', serif; color: #443831; }
.rr-photo-box p { margin: 0; font-size: .88rem; color: #6b5d52; }
.rr-credit { margin-top: 10px !important; font-size: .72rem !important; color: #8a7a6c !important; }
.rr-credit a { color: #92400e; }
.rr-photo-box .rr-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; background: rgba(255, 255, 255, .9); }

/* ---------- Floating mini player ---------- */
.rr-mini {
    position: fixed; right: 20px; bottom: 20px; z-index: 999; display: flex; align-items: center; gap: 11px;
    padding: 7px 8px 7px 15px; border-radius: 30px; cursor: pointer; border: 2px solid #d97706;
    background: #1f1915; color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
    transform: translateY(130px); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.175, .885, .32, 1.275), opacity .2s;
}
.rr-mini.rr-show { transform: none; opacity: 1; pointer-events: auto; }
.rr-mini-reel { font-size: 1.15rem; }
.rr-playing .rr-mini-reel { display: inline-block; animation: rr-spin 2s linear infinite; }
.rr-mini small { display: block; font-size: .6rem; letter-spacing: .5px; text-transform: uppercase; color: #a8a29e; }
.rr-mini strong { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 .78rem 'Poppins', sans-serif; color: #fde68a; }
.rr-mini-btn {
    width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer; background: #d97706; color: #1a1613; font-size: .75rem; font-weight: 700;
}
.rr-yt-host { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }

/* ---------- Small screens, motion, print ---------- */
@media (max-width: 640px) {
    .rr-ticker { padding: 6px 10px; font-size: .74rem; }
    .rr-hide-sm { display: none; }
    .rr-strip { padding: 11px 13px; }
    .rr-strip-desc { display: none; }
    .rr-lounge { padding: 18px 14px; border-radius: 18px; }
    .rr-lounge-top h2 { font-size: 1.25rem; }
    .rr-mini { right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .rr-pill, .rr-playing .rr-eq i, .rr-playing .rr-vu i, .rr-playing .rr-spool, .rr-playing .rr-mini-reel, .rr-overlay.rr-open { animation: none !important; }
    .rr-polaroid, .rr-frame img, .rr-mini { transition: none !important; }
}
@media print {
    .rr-ticker, .rr-strip, .rr-overlay, .rr-photo-modal, .rr-mini, .rr-yt-host { display: none !important; }
}
