/* ===== FM Station - OFW Tambayan Legends Theme ===== */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&family=Raleway:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary: #ffc107;
    --primary-2: #ffe082;
    --primary-deep: #ff8f00;
    --primary-rgb: 255, 193, 7;
    --primary2-rgb: 255, 224, 130;
    --bg: #202020;
    --surface: #2a2a2a;
    --bg-deep: #161616;
    --surface-2: #2a2a2a;
    --surface-3: #333333;
    --bg-deep-rgb: 22, 22, 22;
    --surface2-rgb: 42, 42, 42;
    --default-font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --heading-font: 'Raleway', sans-serif;
    --nav-font: 'Poppins', sans-serif;
    --brand-font: 'Exo 2', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0);
    background-size: 22px 22px;
    overflow-x: hidden;
    position: relative;
    font-family: var(--default-font);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: var(--heading-font);
}

a {
    color: var(--primary);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-2);
    text-decoration: none;
}

@keyframes letBounceBaby {
    0% { transform: scale(0.98); }
    20% { transform: scale(1); }
    40% { transform: scale(0.96); }
    60% { transform: scale(1); }
    80% { transform: scale(0.96); }
    100% { transform: scale(0.98); }
}

.letsbounce {
    -webkit-animation: letBounceBaby 1s ease infinite;
    -moz-animation: letBounceBaby 1s ease infinite;
    -o-animation: letBounceBaby 1s ease infinite;
    animation: letBounceBaby 1s ease infinite;
}

@keyframes flash {
    from { color: #e63946; }
    to { color: #fff; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ===== Gradient / Special Text ===== */
.shine-text {
    background: linear-gradient(180deg, rgba(230, 57, 70, 1) 0%, rgba(255, 143, 0, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--brand-font);
    position: relative;
    display: inline-block;
}

.shine-text:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200%;
    animation: shine 5s infinite;
}

@keyframes shine {
    0% { background-position: -100%; }
    100% { background-position: 100%; }
}

.legends-text {
    font-family: var(--brand-font);
    color: #1e90ff;
    text-transform: uppercase;
}

.grow_spin {
    font-size: 1.2em;
    background: rgb(190, 40, 118);
    background: linear-gradient(180deg, rgb(190, 40, 118) 0%, rgb(143, 62, 136) 100%);
    color: #fff;
    border: 0.25rem solid #963c86;
    padding: 0.85em 0.75em;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 15px;
    font-family: var(--brand-font);
    cursor: pointer;
    transition: all 0.3s ease;
}

.grow_spin:hover {
    color: #963c86;
    background: #ecf0f1;
}

/* ===== Request a Song button styles (set in Station Settings) ===== */
.req-btn {
    border-radius: 15px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Classic (default) */
.req-btn-classic {
    background: rgb(190, 40, 118);
    background: linear-gradient(180deg, rgb(190, 40, 118) 0%, rgb(143, 62, 136) 100%);
    border: 0.25rem solid #963c86;
    color: #fff;
}
.req-btn-classic:hover {
    color: #963c86;
    background: #ecf0f1;
}

/* Neon Glow */
.req-btn-neon {
    background: rgba(0, 229, 255, 0.15);
    border: 2px solid #00e5ff;
    color: #00e5ff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.6), inset 0 0 12px rgba(0, 229, 255, 0.25);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.9);
}
.req-btn-neon:hover {
    background: #00e5ff;
    color: #000;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.9), 0 0 50px rgba(0, 229, 255, 0.5);
}

/* Glassmorphism */
.req-btn-glass {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.req-btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.2);
}

/* Vibrant Gradient */
.req-btn-gradient {
    background: linear-gradient(135deg, #ff0080 0%, #ff8c00 50%, #40e0d0 100%);
    border: none;
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.4);
}
.req-btn-gradient:hover {
    background: linear-gradient(135deg, #40e0d0 0%, #ff8c00 50%, #ff0080 100%);
    box-shadow: 0 6px 30px rgba(64, 224, 208, 0.5);
}

/* Golden / Luxury */
.req-btn-golden {
    background: linear-gradient(180deg, #fff7cc 0%, #ffd700 50%, #b8860b 100%);
    border: 2px solid #ffd700;
    color: #4a3a00;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.req-btn-golden:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
    transform: translateY(-2px);
}

/* Ocean */
.req-btn-ocean {
    background: linear-gradient(180deg, #0277bd 0%, #004d8f 100%);
    border: 2px solid #81d4fa;
    color: #e1f5fe;
    box-shadow: 0 0 12px rgba(3, 169, 244, 0.5);
}
.req-btn-ocean:hover {
    background: linear-gradient(180deg, #0288d1 0%, #01579b 100%);
    box-shadow: 0 0 25px rgba(3, 169, 244, 0.9);
}

/* Fire / Ember */
.req-btn-fire {
    background: linear-gradient(180deg, #ff6d00 0%, #d84315 100%);
    border: 2px solid #ff8a3d;
    color: #fff3e0;
    box-shadow: 0 0 15px rgba(255, 61, 0, 0.6);
}
.req-btn-fire:hover {
    box-shadow: 0 0 30px rgba(255, 109, 0, 0.9), 0 0 60px rgba(255, 61, 0, 0.4);
    transform: translateY(-2px);
}

/* Ice / Frost */
.req-btn-ice {
    background: linear-gradient(180deg, #81d4fa 0%, #0288d1 100%);
    border: 2px solid #b3e5fc;
    color: #e0f7fa;
    box-shadow: 0 0 12px rgba(129, 212, 250, 0.5);
}
.req-btn-ice:hover {
    background: linear-gradient(180deg, #b3e5fc 0%, #29b6f6 100%);
    box-shadow: 0 0 25px rgba(129, 212, 250, 0.9);
}

/* Matrix */
.req-btn-matrix {
    background: rgba(0, 20, 0, 0.85);
    border: 2px solid #00ff41;
    color: #00ff41;
    font-family: monospace;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.9);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.4), inset 0 0 10px rgba(0, 255, 65, 0.15);
}
.req-btn-matrix:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.9);
}

/* Retro / Synthwave */
.req-btn-retro {
    background: linear-gradient(180deg, #ff2f8f 0%, #5e35b1 100%);
    border: 2px solid #ff6ec7;
    color: #fff;
    text-shadow: 2px 2px 0 rgba(94, 53, 177, 0.8);
    box-shadow: 0 4px 0 #5e35b1;
}
.req-btn-retro:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #5e35b1, 0 0 20px rgba(255, 47, 143, 0.8);
}

/* Vaporwave */
.req-btn-vapor {
    background: linear-gradient(180deg, #ff6ec7 0%, #7873f5 100%);
    border: 2px solid #ff6ec7;
    color: #fff;
    text-shadow: 2px 2px 0 rgba(120, 115, 245, 0.8);
}
.req-btn-vapor:hover {
    box-shadow: 0 0 25px rgba(255, 110, 199, 0.8);
    transform: translateY(-2px);
}

/* Holographic */
.req-btn-hologram {
    background: linear-gradient(135deg, #ff6ec7 0%, #7873f5 33%, #4adede 66%, #ff6ec7 100%);
    background-size: 300% 300%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    animation: reqHoloShift 6s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.req-btn-hologram:hover {
    box-shadow: 0 0 30px rgba(120, 115, 245, 0.9);
}
@keyframes reqHoloShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Bubblegum */
.req-btn-bubblegum {
    background: linear-gradient(180deg, #ec407a 0%, #d81b60 100%);
    border: 3px solid #f48fb1;
    color: #fff;
    box-shadow: 0 5px 0 #ad1457;
}
.req-btn-bubblegum:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #ad1457, 0 0 20px rgba(236, 64, 122, 0.7);
}

/* Sunset */
.req-btn-sunset {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 40%, #fbc2eb 100%);
    border: none;
    color: #5d2534;
    font-weight: 700;
}
.req-btn-sunset:hover {
    box-shadow: 0 0 25px rgba(255, 154, 158, 0.9);
    transform: translateY(-2px);
}

/* Aurora Borealis */
.req-btn-aurora {
    background: linear-gradient(135deg, #00c9a7 0%, #92fe9d 40%, #a18cd1 100%);
    background-size: 200% 200%;
    border: none;
    color: #053b2c;
    font-weight: 700;
    animation: reqAurora 4s ease-in-out infinite;
}
.req-btn-aurora:hover {
    box-shadow: 0 0 25px rgba(0, 201, 167, 0.8);
}
@keyframes reqAurora {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Midnight Indigo */
.req-btn-midnight {
    background: linear-gradient(180deg, #1a237e 0%, #4a148c 100%);
    border: 2px solid #7986cb;
    color: #c5cae9;
    box-shadow: 0 0 12px rgba(26, 35, 126, 0.6);
}
.req-btn-midnight:hover {
    box-shadow: 0 0 25px rgba(121, 134, 203, 0.8);
}

/* Coffee / Warm */
.req-btn-coffee {
    background: linear-gradient(180deg, #6d4c41 0%, #3e2723 100%);
    border: 2px solid #8d6e63;
    color: #efebe9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.req-btn-coffee:hover {
    background: linear-gradient(180deg, #795548 0%, #4e342e 100%);
}

/* Deep Space */
.req-btn-space {
    background: linear-gradient(180deg, #0d0221 0%, #2d1b69 100%);
    border: 1px solid rgba(168, 85, 247, 0.7);
    color: #e9d5ff;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}
.req-btn-space:hover {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.8);
}

/* Royal Purple */
.req-btn-royal {
    background: linear-gradient(180deg, #5e35b1 0%, #311b92 100%);
    border: 2px solid #b39ddb;
    color: #ede7f6;
    box-shadow: 0 0 12px rgba(94, 53, 177, 0.5);
}
.req-btn-royal:hover {
    box-shadow: 0 0 30px rgba(179, 157, 219, 0.9);
}

/* Prism / Rainbow */
.req-btn-prism {
    background: linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff, #ff0000);
    background-size: 300% 100%;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 700;
    animation: reqPrism 4s linear infinite;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.req-btn-prism:hover {
    box-shadow: 0 0 25px rgba(255, 128, 0, 0.9);
}
@keyframes reqPrism {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Rose Gold */
.req-btn-rose {
    background: linear-gradient(180deg, #ffb6a3 0%, #b76e79 100%);
    border: 2px solid #e0a899;
    color: #3d1f22;
    font-weight: 700;
}
.req-btn-rose:hover {
    box-shadow: 0 0 20px rgba(183, 110, 121, 0.8);
}

/* Sakura / Cherry Blossom */
.req-btn-sakura {
    background: linear-gradient(180deg, #f8bbd0 0%, #f06292 100%);
    border: 2px solid #f8bbd0;
    color: #4a1a2e;
    font-weight: 700;
}
.req-btn-sakura:hover {
    box-shadow: 0 0 20px rgba(240, 98, 146, 0.8);
}

/* Mint */
.req-btn-mint {
    background: linear-gradient(180deg, #a7ffeb 0%, #1de9b6 100%);
    border: 2px solid #64ffda;
    color: #00332a;
    font-weight: 700;
}
.req-btn-mint:hover {
    box-shadow: 0 0 20px rgba(29, 233, 182, 0.8);
}

/* Peach */
.req-btn-peach {
    background: linear-gradient(180deg, #ffd3b6 0%, #ff8a5c 100%);
    border: 2px solid #ffccbc;
    color: #4e1d0a;
    font-weight: 700;
}
.req-btn-peach:hover {
    box-shadow: 0 0 20px rgba(255, 138, 92, 0.8);
}

/* Pulsing Glow */
.req-btn-glow {
    background: linear-gradient(180deg, #00a8ff 0%, #0051ff 100%);
    border: 2px solid #00d4ff;
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.9);
    animation: reqGlowPulse 2s ease-in-out infinite;
}
.req-btn-glow:hover {
    animation-play-state: paused;
    box-shadow: 0 0 40px rgba(0, 212, 255, 1);
}
@keyframes reqGlowPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 28px rgba(0, 212, 255, 0.9); }
}

/* Glitch */
.req-btn-glitch {
    background: linear-gradient(180deg, #1b1b1b 0%, #000 100%);
    border: 2px solid #ff2ef4;
    color: #fff;
    position: relative;
}
.req-btn-glitch::before,
.req-btn-glitch::after {
    content: "REQUEST A SONG";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b1b1b;
    pointer-events: none;
}
.req-btn-glitch::before {
    color: #00e5ff;
    transform: translate(2px, -2px);
    clip-path: inset(0 0 60% 0);
    animation: reqGlitchA 2s infinite linear alternate-reverse;
}
.req-btn-glitch::after {
    color: #ff2ef4;
    transform: translate(-2px, 2px);
    clip-path: inset(60% 0 0 0);
    animation: reqGlitchB 3s infinite linear alternate-reverse;
}
@keyframes reqGlitchA {
    0% { clip-path: inset(20% 0 60% 0); }
    50% { clip-path: inset(50% 0 30% 0); }
    100% { clip-path: inset(80% 0 5% 0); }
}
@keyframes reqGlitchB {
    0% { clip-path: inset(40% 0 50% 0); }
    50% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(60% 0 10% 0); }
}

/* Disco Fever */
.req-btn-disco {
    background: radial-gradient(circle at 20% 30%, #ff2ef4 0%, #00e5ff 50%, #ff2ef4 100%);
    background-size: 200% 200%;
    border: 2px solid #fff;
    color: #fff;
    animation: reqDisco 1.5s linear infinite;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}
.req-btn-disco:hover {
    box-shadow: 0 0 30px rgba(255, 46, 244, 0.9);
}
@keyframes reqDisco {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

/* Candy Land */
.req-btn-candy {
    background: linear-gradient(180deg, #ff80ab 0%, #ff4081 50%, #d500f9 100%);
    border: 3px solid #fff;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 5px 0 #c51162;
}
.req-btn-candy:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #c51162, 0 0 20px rgba(213, 0, 249, 0.7);
}

/* Cyber Grid */
.req-btn-cyber {
    background: linear-gradient(180deg, #0d0d2b 0%, #1a1a4a 100%);
    border: 2px solid #00e5ff;
    color: #00e5ff;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.9);
    font-family: monospace;
    letter-spacing: 2px;
}
.req-btn-cyber:hover {
    background: #00e5ff;
    color: #000;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.9);
}

/* Pixel / 8-bit */
.req-btn-pixel {
    background: #1b1b1b;
    border: 4px solid #fff;
    color: #fff;
    font-family: "Courier New", monospace;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 6px 0 #ffc107, inset 0 0 0 4px #1b1b1b;
    image-rendering: pixelated;
}
.req-btn-pixel:hover {
    background: #ffc107;
    color: #000;
    box-shadow: 0 4px 0 #ffc107;
    transform: translateY(2px);
}

.title-divider {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgb(230, 57, 70) 0%, rgb(255, 193, 7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
    font-family: var(--brand-font);
}

.title-divider::after,
.title-divider::before {
    content: "";
    display: block;
    -webkit-box-flex: 100;
    -ms-flex: 100;
    flex: 100;
    border-bottom: 4px solid #3b3b3b;
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
}

.title-divider > span,
.title-divider > a {
    display: block;
    -webkit-box-flex: 1;
    -ms-flex: auto;
    flex: auto;
    padding-right: 10px;
    padding-left: 10px;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* ===== Header / Navbar ===== */
.site-header {
    background: #1b1b1b;
    border-bottom: 5px solid #ffc107;
    padding: 10px 0 !important;
    z-index: 997;
    position: sticky;
    top: 0;
    width: 100%;
}

.site-header .navbar-brand {
    font-family: var(--brand-font);
    font-weight: 700;
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header .navbar-brand span {
    color: var(--primary);
    letter-spacing: 2px;
}

.site-header .navbar-brand i {
    color: var(--primary);
    font-size: 1.4rem;
}

.navbar-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.navbar-nav li {
    padding: 0 5px;
}

.navbar-nav .nav-item a {
    font-size: 15px;
    font-family: var(--nav-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 10px 14px !important;
    transition: all 0.3s ease;
    color: #fff;
    border-radius: 5px;
}

.navbar-nav .nav-item a:hover,
.navbar-nav .nav-item.active a {
    color: var(--primary);
}

.navbar-nav .nav-item a i {
    margin-right: 5px;
}

.site-header .navbar-toggler {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.site-header .navbar-toggler i {
    color: var(--primary);
}

/* ===== Hero Section ===== */
.main_header {
    background: #000;
    width: 100%;
    min-height: calc(100vh - 64px);
    padding: 60px 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main_header .row,
.main_header [class*="col-"] {
    position: static;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
    z-index: 2;
}

.main_header.has-header-photo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.main_header.has-header-photo .hero-overlay {
    display: none;
}

.header-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    background: #000;
}

.main_header.has-header-video .hero-overlay {
    display: block;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, calc(var(--header-video-overlay, 0.6) * 0.35)) 0%, rgba(0, 0, 0, var(--header-video-overlay, 0.6)) 100%);
}

/* Header photo parallax */
.main_header.header-effect-parallax {
    background-attachment: fixed;
}

/* Header float effects (hearts / snow) */
.header-float-heart,
.header-float-snow {
    position: absolute;
    top: -45px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.85;
    animation-name: headerFloat;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    user-select: none;
}

.header-float-snow {
    opacity: 0.9;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

@keyframes headerFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(105vh) translateX(40px) rotate(200deg);
        opacity: 0;
    }
}

/* Music notes (rise) */
.header-float-note {
    position: absolute;
    bottom: -50px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.85;
    animation-name: headerRise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    user-select: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Bubbles (rise) */
.header-float-bubble {
    position: absolute;
    bottom: -60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
    pointer-events: none;
    z-index: 3;
    animation-name: headerRise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes headerRise {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.95;
    }
    100% {
        transform: translateY(-105vh) translateX(-30px) rotate(-160deg);
        opacity: 0;
    }
}

/* Confetti (falling) */
.header-float-confetti {
    position: absolute;
    top: -20px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 3;
    animation-name: headerFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Rain */
.header-float-rain {
    position: absolute;
    top: -60px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(rgba(174, 194, 224, 0), rgba(174, 194, 224, 0.65));
    pointer-events: none;
    z-index: 3;
    animation-name: headerRain;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes headerFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    8% {
        opacity: 0.95;
    }
    100% {
        transform: translateY(105vh) translateX(40px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes headerRain {
    0% {
        transform: translateY(-40px);
        opacity: 0;
    }
    10% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(105vh);
        opacity: 0;
    }
}

/* Twinkling stars */
.header-float-star {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    color: #fff;
    animation-name: headerTwinkle;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    user-select: none;
}

@keyframes headerTwinkle {
    0%, 100% {
        opacity: 0.1;
        transform: scale(0.6);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Fireworks canvas */
.header-fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Fireflies (drifting glow dots) */
.header-float-firefly {
    position: absolute;
    top: -10px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    animation-name: headerDrift;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes headerDrift {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    15% {
        opacity: 0.95;
    }
    50% {
        transform: translate(45px, -55vh);
    }
    85% {
        opacity: 0.6;
    }
    100% {
        transform: translate(-35px, -105vh);
        opacity: 0;
    }
}

/* Leaves (falling with sway) */
.header-float-leaf {
    position: absolute;
    top: -40px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.9;
    animation-name: headerFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    user-select: none;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Sparkles (twinkle + drift) */
.header-float-sparkle {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    animation-name: headerSparkle;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    user-select: none;
}

@keyframes headerSparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.4) translateY(0);
    }
    20% {
        opacity: 1;
    }
    50% {
        transform: scale(1.2) translateY(-30px);
    }
    80% {
        opacity: 0.8;
    }
}

/* Butterflies (flutter up with erratic path) */
.header-float-butterfly {
    position: absolute;
    bottom: -50px;
    pointer-events: none;
    z-index: 3;
    animation-name: headerFlutter;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    user-select: none;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}

@keyframes headerFlutter {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    30% {
        transform: translate(60px, -30vh) scaleX(0.7) rotate(10deg);
    }
    50% {
        transform: translate(-40px, -55vh) scaleX(1) rotate(-8deg);
    }
    70% {
        transform: translate(50px, -80vh) scaleX(0.7) rotate(6deg);
    }
    100% {
        transform: translate(-20px, -105vh) scaleX(1) rotate(0deg);
        opacity: 0;
    }
}

/* Occasion float effects (ghosts / halloween / christmas / easter / party / balloons) */
.header-float-occ {
    position: absolute;
    bottom: -55px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.9;
    animation-name: headerRise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    user-select: none;
}

/* Bats (halloween) */
.header-float-bat {
    position: absolute;
    bottom: -55px;
    pointer-events: none;
    z-index: 3;
    animation-name: headerFlutter;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    user-select: none;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Site-wide background effect overlay (all pages) */
#bgEffects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 30;
}

#bgEffects #particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#bgEffects .header-float-heart,
#bgEffects .header-float-snow,
#bgEffects .header-float-note,
#bgEffects .header-float-confetti,
#bgEffects .header-float-bubble,
#bgEffects .header-float-rain,
#bgEffects .header-float-star,
#bgEffects .header-float-sparkle,
#bgEffects .header-float-firefly,
#bgEffects .header-float-leaf,
#bgEffects .header-float-butterfly,
#bgEffects .header-float-bat,
#bgEffects .header-float-occ {
    position: absolute;
    z-index: 2;
}

#bgEffects .header-fireworks-canvas {
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 5;
    text-align: center;
}

.logo-container {
    margin-bottom: 35px;
}

.hero-logo {
    max-width: 320px;
    max-height: 320px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(255, 193, 7, 0.35));
}

.hero-headings {
    margin-top: 10px;
}

.hero-heading-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

@media (min-width: 768px) {
    .hero-heading-row {
        flex-direction: row;
        gap: 14px;
    }
}

.hero-heading-row h2 {
    font-family: var(--brand-font);
    color: #fff;
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin: 0;
}

.hero-heading-row .shine-text {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
}

.hero-heading-row .legends-text {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
}

.hero-marquee {
    margin-top: 25px;
    overflow: hidden;
}

.hero-marquee h4 {
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Roboto', sans-serif !important;
    font-size: 1.15rem;
    letter-spacing: 1px;
}

/* ===== Default Logo Badge ===== */
.logo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946, #ff8f00);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(230, 57, 70, 0.5), 0 0 120px rgba(255, 143, 0, 0.25);
}

.logo-inner {
    text-align: center;
    color: #fff;
}

.logo-fm {
    display: block;
    font-family: var(--brand-font);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-station {
    display: block;
    font-family: var(--brand-font);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 8px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== Fluid Container ===== */
.fluid-container {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%230f0f0f" width="100" height="100" opacity="0.05"/></svg>');
    background-size: cover;
    background-attachment: fixed;
    padding-bottom: 0;
}

.container {
    max-width: 1300px;
}

/* ===== Cards ===== */
.card {
    background: rgba(var(--card-rgb, 255, 255, 255), var(--card-opacity, 0.08));
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 15px !important;
    padding: 0;
    margin-bottom: 25px !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.5) !important;
}

.card-body {
    padding: 15px !important;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 15px;
}

.card-header h2,
.card-header h3 {
    font-size: 16px;
    font-family: var(--brand-font);
    color: #fff;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
}

/* ===== No Gutter ===== */
.no-gutter.row {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-top: 0;
}

.no-gutter > [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
}

/* ===== Banner Slider ===== */
.banner-slider {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--surface);
    height: 350px;
    width: 100%;
    margin: 20px 0;
}

.banner-slider .banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    visibility: hidden;
}

.banner-slider .banner-slide.active {
    opacity: 1;
    visibility: visible;
}

.banner-slider .banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-slider .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    margin: 0 auto;
}

.banner-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
}

.banner-slider-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-slider-dots .dot.active {
    background: var(--primary);
}

/* ===== Banner slider styles (set in Station Settings) ===== */

/* Rounded Frame */
.banner-style-rounded {
    border-radius: 30px;
    border: 6px solid rgba(255, 255, 255, 0.15);
}
.banner-style-rounded .banner-slide img {
    border-radius: 24px;
}

/* Double Frame */
.banner-style-framed {
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 8px var(--surface-2), 0 0 0 10px rgba(255, 255, 255, 0.2), 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Neon Glow */
.banner-style-neon {
    border: 3px solid #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5), 0 0 40px rgba(0, 229, 255, 0.2), inset 0 0 15px rgba(0, 229, 255, 0.2);
}
.banner-style-neon .banner-slide {
    border: 5px solid rgba(255, 46, 244, 0.4);
    box-sizing: border-box;
}

/* Glassmorphism */
.banner-style-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.banner-style-glass .banner-slide {
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
}

/* Golden / Luxury */
.banner-style-golden {
    border: 4px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.15);
}
.banner-style-golden::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 10px;
    pointer-events: none;
    z-index: 4;
}

/* Vibrant Gradient Border */
.banner-style-gradient {
    border: 5px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, #ff0080, #ff8c00, #40e0d0, #ff0080) border-box;
    background-size: 300% 300%;
    animation: bannerGradBorder 6s linear infinite;
}
@keyframes bannerGradBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Polaroid */
.banner-style-polaroid {
    background: #f5f5f5;
    padding: 15px 15px 45px 15px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 370px;
}
.banner-style-polaroid .banner-slide {
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 75px);
}
.banner-style-polaroid::after {
    content: "FM STATION";
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: "Courier New", monospace;
    color: #888;
    font-size: 14px;
    letter-spacing: 3px;
    z-index: 4;
}

/* Cinema Bars */
.banner-style-cinema {
    background: #000;
}
.banner-style-cinema .banner-slide {
    top: 30px;
    height: calc(100% - 60px);
}
.banner-style-cinema::before,
.banner-style-cinema::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    background: #1a1a1a;
    z-index: 6;
}
.banner-style-cinema::before { top: 0; }
.banner-style-cinema::after { bottom: 0; }

/* Vaporwave */
.banner-style-vapor {
    border: 4px solid #ff6ec7;
    box-shadow: 0 0 25px rgba(255, 110, 199, 0.4), 0 8px 0 #5e35b1;
}
.banner-style-vapor::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 110, 199, 0) 0%, rgba(94, 53, 177, 0.45) 100%);
    pointer-events: none;
    z-index: 4;
}

/* Retro / Synthwave */
.banner-style-retro {
    border: 4px solid #ff2f8f;
    box-shadow: 0 0 15px rgba(255, 47, 143, 0.5), 6px 6px 0 rgba(94, 53, 177, 0.8);
}

/* Holographic */
.banner-style-hologram {
    border: 3px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, #ff6ec7, #7873f5, #4adede, #ff6ec7) border-box;
    background-size: 300% 300%;
    animation: bannerHolo 6s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(120, 115, 245, 0.3);
}
@keyframes bannerHolo {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Matrix */
.banner-style-matrix {
    border: 3px solid #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4), inset 0 0 25px rgba(0, 255, 65, 0.15);
}

/* Ocean */
.banner-style-ocean {
    border: 4px solid #81d4fa;
    box-shadow: 0 0 20px rgba(3, 169, 244, 0.5), inset 0 0 25px rgba(3, 169, 244, 0.2);
}
.banner-style-ocean::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 25%;
    background: linear-gradient(180deg, rgba(1, 87, 155, 0) 0%, rgba(1, 87, 155, 0.5) 100%);
    pointer-events: none;
    z-index: 4;
}

/* Fire / Ember */
.banner-style-fire {
    border: 4px solid #ff6d00;
    box-shadow: 0 0 25px rgba(255, 109, 0, 0.6), inset 0 0 30px rgba(255, 61, 0, 0.3);
}

/* Ice / Frost */
.banner-style-ice {
    border: 4px solid #b3e5fc;
    box-shadow: 0 0 20px rgba(129, 212, 250, 0.5), 0 0 40px rgba(129, 212, 250, 0.15);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

/* Royal Purple */
.banner-style-royal {
    border: 4px solid #b39ddb;
    box-shadow: 0 0 25px rgba(94, 53, 177, 0.5), inset 0 0 30px rgba(94, 53, 177, 0.25);
}

/* Sunset */
.banner-style-sunset {
    border: 4px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #ff9a9e) border-box;
    background-size: 300% 300%;
    animation: bannerSunset 8s ease-in-out infinite;
}
@keyframes bannerSunset {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Aurora Borealis */
.banner-style-aurora {
    border: 4px solid #00c9a7;
    box-shadow: 0 0 25px rgba(0, 201, 167, 0.5), 0 0 50px rgba(0, 201, 167, 0.2);
}

/* Midnight Indigo */
.banner-style-midnight {
    border: 4px solid #7986cb;
    box-shadow: 0 0 20px rgba(26, 35, 126, 0.6), inset 0 0 30px rgba(26, 35, 126, 0.3);
}

/* Coffee / Warm */
.banner-style-coffee {
    border: 5px solid #795548;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    background: #4e342e;
}

/* Deep Space */
.banner-style-space {
    border: 2px solid rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4), 0 0 60px rgba(0, 0, 0, 0.6) inset;
}

/* Bubblegum */
.banner-style-bubblegum {
    border: 5px solid #f48fb1;
    box-shadow: 0 0 20px rgba(236, 64, 122, 0.4), 0 8px 0 #ad1457;
    border-radius: 25px;
}

/* Rose Gold */
.banner-style-rose {
    border: 4px solid #e0a899;
    box-shadow: 0 0 20px rgba(183, 110, 121, 0.5);
    background: linear-gradient(180deg, rgba(255, 182, 163, 0.2), rgba(183, 110, 121, 0.3));
}

/* Mint */
.banner-style-mint {
    border: 4px solid #64ffda;
    box-shadow: 0 0 20px rgba(29, 233, 182, 0.5);
    background: linear-gradient(180deg, rgba(167, 255, 235, 0.15), rgba(29, 233, 182, 0.2));
}

/* Prism / Rainbow */
.banner-style-prism {
    border: 5px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff, #ff0000) border-box;
    background-size: 300% 100%;
    animation: bannerPrism 5s linear infinite;
}
@keyframes bannerPrism {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Glitch */
.banner-style-glitch {
    border: 3px solid #ff2ef4;
    box-shadow: 0 0 15px rgba(255, 46, 244, 0.5);
}
.banner-style-glitch .banner-slide.active img {
    animation: bannerGlitchImg 0.8s infinite steps(2);
}
@keyframes bannerGlitchImg {
    0% { transform: translate(0, 0); filter: hue-rotate(0deg); }
    25% { transform: translate(-3px, 2px); filter: hue-rotate(30deg); }
    50% { transform: translate(3px, -2px); filter: hue-rotate(60deg); }
    75% { transform: translate(-2px, -3px); filter: hue-rotate(30deg); }
    100% { transform: translate(0, 0); filter: hue-rotate(0deg); }
}

/* Comic / Pop Art */
.banner-style-comic {
    border: 5px solid #000;
    box-shadow: 8px 8px 0 #ff2ef4, -8px -8px 0 #00e5ff, 0 15px 40px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}
.banner-style-comic::after {
    content: "BANG!";
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: "Comic Sans MS", "Chalkboard SE", cursive;
    font-size: 42px;
    font-weight: 900;
    color: #ff2ef4;
    text-shadow: 3px 3px 0 #000, -2px -2px 0 #00e5ff;
    transform: rotate(15deg);
    z-index: 6;
    pointer-events: none;
}

/* Minimal */
.banner-style-minimal {
    border: none;
    border-radius: 0;
    background: transparent;
    height: auto;
}
.banner-style-minimal .banner-slide {
    position: relative;
    display: none;
}
.banner-style-minimal .banner-slide.active {
    display: block;
}
.banner-style-minimal .banner-slide img {
    border-radius: 0;
    margin-bottom: 15px;
}

/* Pixel / 8-bit */
.banner-style-pixel {
    border: 6px solid #fff;
    box-shadow: 0 8px 0 #ffc107, 0 16px 40px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    image-rendering: pixelated;
}
.banner-style-pixel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 3px,
        rgba(0, 0, 0, 0.15) 3px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    z-index: 4;
}

/* ===== Now Playing Banner ===== */
.now-playing-banner .card-body {
    padding: 0 !important;
}

.album-bg {
    background: url("uploads/album/default-album.png") center / cover no-repeat;
    background-color: var(--surface);
    overflow: hidden;
    position: relative;
    height: 200px;
    border-radius: 15px;
}

.now-playing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 15, 15, 0.9) 0%, rgba(15, 15, 15, 0.55) 50%, transparent 100%);
    display: flex;
    align-items: center;
}

.np-content {
    padding: 25px;
}

.np-badge {
    display: inline-block;
    background: linear-gradient(90deg, #e63946, #ff8f00);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse 2s ease infinite;
    margin-bottom: 10px;
}

.np-badge i {
    margin-right: 5px;
}

.np-song {
    color: #fff;
    font-family: var(--brand-font);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.np-artist {
    color: var(--primary);
    font-family: var(--default-font);
    font-size: 1rem;
    font-weight: 500;
}

/* ===== Player Card ===== */
.player-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.player-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.now-playing-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    font-family: var(--brand-font);
    font-size: 4.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
    color: rgba(255, 255, 255, 0.14);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nowPlayingShine 6s linear infinite;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

@keyframes nowPlayingShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.player-wrapper {
    position: relative;
    z-index: 1;
    padding: 10px;
}

/* NOW PLAYING watermark contrast for light-colored player styles */
.player-style-light .now-playing-bg,
.player-style-bubblegum .now-playing-bg,
.player-style-rose .now-playing-bg,
.player-style-sakura .now-playing-bg,
.player-style-lavender .now-playing-bg,
.player-style-mint .now-playing-bg,
.player-style-peach .now-playing-bg {
    color: rgba(0, 0, 0, 0.14);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.05) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.player-style-prism .now-playing-bg {
    color: rgba(0, 0, 0, 0.12);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.5) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.5);
}


.player-cover {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 193, 7, 0.55);
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.3);
    animation: spin 8s linear infinite;
    animation-play-state: paused;
}

.player-cover.playing {
    animation-play-state: running;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    margin-bottom: 15px;
}

.player-artist {
    color: yellow;
    font-family: var(--brand-font);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.player-title {
    color: #fff;
    font-family: var(--default-font);
    font-size: 29px;
    font-weight: 400;
    opacity: 0.8;
    position: relative;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    white-space: nowrap;
}

.player-title-scroll {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 12px rgba(0, 128, 255, 0.35));
}

.player-title.scrolling .player-title-scroll {
    animation: playerTitleScroll 14s linear infinite;
    will-change: transform;
}

@keyframes playerTitleScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Player title gradient contrast for light-colored player styles */
.player-style-light .player-title-scroll,
.player-style-bubblegum .player-title-scroll,
.player-style-rose .player-title-scroll,
.player-style-sakura .player-title-scroll,
.player-style-lavender .player-title-scroll,
.player-style-mint .player-title-scroll,
.player-style-peach .player-title-scroll {
    background: linear-gradient(90deg, #222 0%, #e65100 25%, #00695c 50%, #e65100 75%, #222 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.35));
}

.player-style-prism .player-title-scroll {
    background: linear-gradient(90deg, #fff 0%, #ffea00 25%, #00e676 50%, #ffea00 75%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}

.player-controls {
    margin-bottom: 15px;
}

.btn-player {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-play {
    background: linear-gradient(135deg, #e63946, #ff8f00);
    color: #fff;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(230, 57, 70, 0.6);
}

.btn-stop {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 65, 108, 0.4);
}

.btn-stop:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 65, 108, 0.6);
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.volume-control i {
    color: var(--primary);
}

.slider {
    -webkit-appearance: none;
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    transition: opacity 0.2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

.listeners-badge {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 193, 7, 0.15);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.listeners-badge i {
    color: var(--primary);
    margin-right: 3px;
}

/* ===== Audio Player Style: Glassmorphism ===== */
.player-style-glass .card-body {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.player-style-glass .player-cover {
    border: 2px solid rgba(255, 193, 7, 0.6);
    box-shadow: 0 0 35px rgba(255, 193, 7, 0.25), inset 0 0 15px rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.player-style-glass .player-artist {
    text-shadow: 0 0 12px rgba(255, 193, 7, 0.45);
}

.player-style-glass .btn-player {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.player-style-glass .btn-play {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.30), rgba(30, 144, 255, 0.30));
    border: 1px solid rgba(255, 193, 7, 0.55);
    color: var(--primary);
}

.player-style-glass .btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.45);
}

.player-style-glass .btn-stop {
    background: linear-gradient(135deg, rgba(255, 65, 108, 0.25), rgba(255, 75, 43, 0.25));
    border: 1px solid rgba(255, 65, 108, 0.55);
    color: #ff8098;
}

.player-style-glass .btn-stop:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 65, 108, 0.45);
}

.player-style-glass .slider {
    background: rgba(255, 255, 255, 0.15);
}

.player-style-glass .listeners-badge {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ===== Audio Player Style: Neon / Cyberpunk ===== */
.player-style-neon .card-body {
    background: rgba(10, 10, 24, 0.60);
    border: 1px solid rgba(0, 229, 255, 0.45);
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.15), inset 0 0 22px rgba(0, 229, 255, 0.06);
}

.player-style-neon .player-cover {
    border: 3px solid #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 0 45px rgba(255, 0, 120, 0.30);
}

.player-style-neon .player-artist {
    color: #00e5ff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.player-style-neon .player-title {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 0, 120, 0.5);
}

.player-style-neon .btn-player {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #00e5ff;
    color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.player-style-neon .btn-play {
    background: linear-gradient(135deg, #00e5ff, #0055ff);
    border: none;
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
}

.player-style-neon .btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.85);
}

.player-style-neon .btn-stop {
    background: linear-gradient(135deg, #ff0055, #ff2e63);
    border: none;
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.6);
}

.player-style-neon .btn-stop:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(255, 0, 85, 0.85);
}

.player-style-neon .volume-control i {
    color: #00e5ff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.player-style-neon .slider {
    background: rgba(0, 229, 255, 0.25);
}

.player-style-neon .slider::-webkit-slider-thumb {
    background: #00e5ff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.8);
}

.player-style-neon .slider::-moz-range-thumb {
    background: #00e5ff;
}

.player-style-neon .listeners-badge {
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.45);
    color: #c8f7ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.player-style-neon .listeners-badge i {
    color: #00e5ff;
}

/* ===== Audio Player Style: Flat Minimal ===== */
.player-style-flat .card-body {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: none;
}

.player-style-flat .player-cover {
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    animation: none;
}

.player-style-flat .player-artist {
    color: var(--primary);
}

.player-style-flat .btn-player {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    box-shadow: none;
}

.player-style-flat .btn-play {
    background: var(--primary);
    color: #111;
}

.player-style-flat .btn-play:hover {
    transform: scale(1.05);
    box-shadow: none;
}

.player-style-flat .btn-stop {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.player-style-flat .btn-stop:hover {
    transform: scale(1.05);
    box-shadow: none;
}

.player-style-flat .slider {
    background: rgba(255, 255, 255, 0.15);
}

.player-style-flat .listeners-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Audio Player Style: Pure Dark ===== */
.player-style-dark .card-body {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.player-style-dark .player-cover {
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

.player-style-dark .player-artist {
    color: #fff;
}

.player-style-dark .btn-player {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.player-style-dark .btn-play {
    background: linear-gradient(135deg, #333, #111);
}

.player-style-dark .btn-stop {
    background: rgba(255, 255, 255, 0.08);
}

.player-style-dark .slider {
    background: rgba(255, 255, 255, 0.1);
}

.player-style-dark .listeners-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ===== Audio Player Style: Light & Clean ===== */
.player-style-light .card-body {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.player-style-light .player-cover {
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.player-style-light .player-artist {
    color: #222;
}

.player-style-light .player-title {
    color: #555;
}

.player-style-light .btn-player {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.player-style-light .btn-play {
    background: #111;
    color: #fff;
}

.player-style-light .btn-stop {
    background: #eee;
    color: #555;
}

.player-style-light .volume-control i {
    color: #222;
}

.player-style-light .slider {
    background: #ccc;
}

.player-style-light .slider::-webkit-slider-thumb {
    background: #111;
    box-shadow: none;
}

.player-style-light .slider::-moz-range-thumb {
    background: #111;
}

.player-style-light .listeners-badge {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.player-style-light .listeners-badge i {
    color: #111;
}

/* ===== Audio Player Style: Vibrant Gradient ===== */
.player-style-gradient .card-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.player-style-gradient .player-cover {
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.player-style-gradient .player-artist {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.player-style-gradient .player-title {
    color: rgba(255, 255, 255, 0.9);
}

.player-style-gradient .btn-player {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.player-style-gradient .btn-play {
    background: rgba(255, 255, 255, 0.95);
    color: #764ba2;
    border: none;
}

.player-style-gradient .btn-stop {
    background: rgba(0, 0, 0, 0.25);
}

.player-style-gradient .volume-control i {
    color: #fff;
}

.player-style-gradient .slider {
    background: rgba(255, 255, 255, 0.4);
}

.player-style-gradient .slider::-webkit-slider-thumb {
    background: #fff;
    box-shadow: none;
}

.player-style-gradient .slider::-moz-range-thumb {
    background: #fff;
}

.player-style-gradient .listeners-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ===== Audio Player Style: Retro / Synthwave ===== */
.player-style-retro .card-body {
    background: radial-gradient(circle at 50% 120%, rgba(255, 46, 154, 0.5) 0%, transparent 45%), linear-gradient(180deg, #2b0a4d, #1a0533);
    border: 1px solid #ff2e9a;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(255, 46, 154, 0.35);
    position: relative;
}

.player-style-retro .card-body::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255, 255, 255, 0.05) 3px 4px);
    border-radius: 15px;
}

.player-style-retro .player-artist {
    color: #ff2e9a;
    text-shadow: 0 0 10px rgba(255, 46, 154, 0.7);
}

.player-style-retro .player-title {
    color: #01d8ff;
    text-shadow: 0 0 8px rgba(1, 216, 255, 0.6);
}

.player-style-retro .player-cover {
    border: 2px solid #01d8ff;
    box-shadow: 0 0 25px rgba(1, 216, 255, 0.5);
}

.player-style-retro .btn-player {
    border-radius: 8px;
    background: rgba(255, 46, 154, 0.15);
    border: 1px solid #ff2e9a;
    color: #ff2e9a;
}

.player-style-retro .btn-play {
    background: linear-gradient(135deg, #ff2e9a, #ff8f00);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(255, 46, 154, 0.5);
}

.player-style-retro .btn-stop {
    background: rgba(1, 216, 255, 0.1);
    color: #01d8ff;
    border: 1px solid #01d8ff;
}

.player-style-retro .volume-control i {
    color: #01d8ff;
}

.player-style-retro .slider {
    background: rgba(255, 46, 154, 0.25);
}

.player-style-retro .slider::-webkit-slider-thumb {
    background: #01d8ff;
    box-shadow: 0 0 10px rgba(1, 216, 255, 0.7);
}

.player-style-retro .slider::-moz-range-thumb {
    background: #01d8ff;
}

.player-style-retro .listeners-badge {
    background: rgba(1, 216, 255, 0.1);
    border: 1px solid rgba(1, 216, 255, 0.5);
    color: #aef4ff;
}

/* ===== Audio Player Style: Vaporwave ===== */
.player-style-vapor .card-body {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(142, 197, 252, 0.4);
}

.player-style-vapor .player-artist {
    color: #6b21a8;
}

.player-style-vapor .player-title {
    color: #1e3a8a;
}

.player-style-vapor .player-cover {
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.player-style-vapor .btn-player {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #6b21a8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.player-style-vapor .btn-play {
    background: #a855f7;
    color: #fff;
    border: none;
}

.player-style-vapor .btn-stop {
    background: rgba(255, 255, 255, 0.5);
    color: #4c1d95;
}

.player-style-vapor .volume-control i {
    color: #6b21a8;
}

.player-style-vapor .slider {
    background: rgba(255, 255, 255, 0.7);
}

.player-style-vapor .slider::-webkit-slider-thumb {
    background: #a855f7;
}

.player-style-vapor .slider::-moz-range-thumb {
    background: #a855f7;
}

.player-style-vapor .listeners-badge {
    background: rgba(255, 255, 255, 0.6);
    color: #4c1d95;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.player-style-vapor .listeners-badge i {
    color: #a855f7;
}

/* ===== Audio Player Style: Holographic ===== */
.player-style-hologram .card-body {
    background: linear-gradient(120deg, #f093fb 0%, #f5576c 25%, #4facfe 50%, #43e97b 75%, #f093fb 100%);
    background-size: 300% 300%;
    animation: holoShift 8s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    box-shadow: 0 0 30px rgba(244, 87, 108, 0.35);
}

@keyframes holoShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.player-style-hologram .player-artist {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.player-style-hologram .player-title {
    color: rgba(255, 255, 255, 0.9);
}

.player-style-hologram .player-cover {
    border: 3px solid #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.player-style-hologram .btn-player {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.player-style-hologram .btn-play {
    background: rgba(255, 255, 255, 0.85);
    color: #f5576c;
    border: none;
}

.player-style-hologram .btn-stop {
    background: rgba(0, 0, 0, 0.2);
}

.player-style-hologram .volume-control i {
    color: #fff;
}

.player-style-hologram .slider {
    background: rgba(255, 255, 255, 0.5);
}

.player-style-hologram .slider::-webkit-slider-thumb {
    background: #fff;
}

.player-style-hologram .slider::-moz-range-thumb {
    background: #fff;
}

.player-style-hologram .listeners-badge {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ===== Audio Player Style: Bubblegum ===== */
.player-style-bubblegum .card-body {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border: 3px solid #fff;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.45);
}

.player-style-bubblegum .player-artist {
    color: #d81b60;
}

.player-style-bubblegum .player-title {
    color: #ad1457;
}

.player-style-bubblegum .player-cover {
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.player-style-bubblegum .btn-player {
    background: #fff;
    color: #d81b60;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.player-style-bubblegum .btn-play {
    background: #ec407a;
    color: #fff;
}

.player-style-bubblegum .btn-stop {
    background: #fff;
    color: #ec407a;
}

.player-style-bubblegum .volume-control i {
    color: #d81b60;
}

.player-style-bubblegum .slider {
    background: rgba(255, 255, 255, 0.8);
}

.player-style-bubblegum .slider::-webkit-slider-thumb {
    background: #ec407a;
}

.player-style-bubblegum .slider::-moz-range-thumb {
    background: #ec407a;
}

.player-style-bubblegum .listeners-badge {
    background: #fff;
    color: #ad1457;
}

.player-style-bubblegum .listeners-badge i {
    color: #ec407a;
}

/* ===== Audio Player Style: Golden / Luxury ===== */
.player-style-golden .card-body {
    background: linear-gradient(160deg, #2b2111 0%, #4a3514 100%);
    border: 1px solid #d4af37;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.25), inset 0 0 20px rgba(212, 175, 55, 0.08);
}

.player-style-golden .player-artist {
    color: #f3d97a;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.player-style-golden .player-title {
    color: #e8d5a3;
}

.player-style-golden .player-cover {
    border: 3px solid #d4af37;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.player-style-golden .btn-player {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid #d4af37;
    color: #f3d97a;
}

.player-style-golden .btn-play {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #1c1407;
    border: none;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.player-style-golden .btn-stop {
    background: rgba(0, 0, 0, 0.3);
}

.player-style-golden .volume-control i {
    color: #d4af37;
}

.player-style-golden .slider {
    background: rgba(212, 175, 55, 0.25);
}

.player-style-golden .slider::-webkit-slider-thumb {
    background: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.player-style-golden .slider::-moz-range-thumb {
    background: #d4af37;
}

.player-style-golden .listeners-badge {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #f3d97a;
}

.player-style-golden .listeners-badge i {
    color: #d4af37;
}

/* ===== Audio Player Style: Ocean Waves ===== */
.player-style-ocean .card-body {
    background: linear-gradient(180deg, #0a2a3a 0%, #14556b 100%);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.2), inset 0 0 25px rgba(0, 180, 216, 0.08);
}

.player-style-ocean .player-artist {
    color: #7ff3ff;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.player-style-ocean .player-title {
    color: #b8ecf5;
}

.player-style-ocean .player-cover {
    border: 2px solid #00d2ff;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.4);
}

.player-style-ocean .btn-player {
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid #00d2ff;
    color: #7ff3ff;
}

.player-style-ocean .btn-play {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.5);
}

.player-style-ocean .btn-stop {
    background: rgba(0, 0, 0, 0.25);
}

.player-style-ocean .volume-control i {
    color: #00d2ff;
}

.player-style-ocean .slider {
    background: rgba(0, 210, 255, 0.25);
}

.player-style-ocean .slider::-webkit-slider-thumb {
    background: #00d2ff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.7);
}

.player-style-ocean .slider::-moz-range-thumb {
    background: #00d2ff;
}

.player-style-ocean .listeners-badge {
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.4);
    color: #b8ecf5;
}

.player-style-ocean .listeners-badge i {
    color: #00d2ff;
}

/* ===== Audio Player Style: Aurora Borealis ===== */
.player-style-aurora .card-body {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 40%, #2c5364 100%);
    border: 1px solid rgba(46, 213, 115, 0.35);
    border-radius: 18px;
    box-shadow: 0 0 30px rgba(46, 213, 115, 0.15), inset 0 0 30px rgba(111, 66, 193, 0.15);
}

.player-style-aurora .player-artist {
    color: #7ff9c2;
    text-shadow: 0 0 12px rgba(46, 213, 115, 0.6);
}

.player-style-aurora .player-title {
    color: #b9e6ff;
}

.player-style-aurora .player-cover {
    border: 2px solid #2ed573;
    box-shadow: 0 0 25px rgba(46, 213, 115, 0.4);
}

.player-style-aurora .btn-player {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid #2ed573;
    color: #7ff9c2;
}

.player-style-aurora .btn-play {
    background: linear-gradient(135deg, #2ed573, #6f42c1);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.4);
}

.player-style-aurora .btn-stop {
    background: rgba(0, 0, 0, 0.25);
}

.player-style-aurora .volume-control i {
    color: #2ed573;
}

.player-style-aurora .slider {
    background: rgba(46, 213, 115, 0.25);
}

.player-style-aurora .slider::-webkit-slider-thumb {
    background: #2ed573;
    box-shadow: 0 0 10px rgba(46, 213, 115, 0.7);
}

.player-style-aurora .slider::-moz-range-thumb {
    background: #2ed573;
}

.player-style-aurora .listeners-badge {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.4);
    color: #b9e6ff;
}

.player-style-aurora .listeners-badge i {
    color: #2ed573;
}

/* ===== Audio Player Style: Sunset ===== */
.player-style-sunset .card-body {
    background: linear-gradient(160deg, #f83600 0%, #f9d423 100%);
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(248, 54, 0, 0.35);
}

.player-style-sunset .player-artist {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.player-style-sunset .player-title {
    color: rgba(255, 255, 255, 0.95);
}

.player-style-sunset .player-cover {
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.player-style-sunset .btn-player {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.player-style-sunset .btn-play {
    background: #fff;
    color: #f83600;
    border: none;
}

.player-style-sunset .btn-stop {
    background: rgba(0, 0, 0, 0.25);
}

.player-style-sunset .volume-control i {
    color: #fff;
}

.player-style-sunset .slider {
    background: rgba(255, 255, 255, 0.5);
}

.player-style-sunset .slider::-webkit-slider-thumb {
    background: #fff;
    box-shadow: none;
}

.player-style-sunset .slider::-moz-range-thumb {
    background: #fff;
}

.player-style-sunset .listeners-badge {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.player-style-sunset .listeners-badge i {
    color: #fff;
}

/* ===== Audio Player Style: Midnight Indigo ===== */
.player-style-midnight .card-body {
    background: radial-gradient(circle at 30% 20%, #1e1b4b 0%, #0f0a2e 60%, #05020f 100%);
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.player-style-midnight .player-artist {
    color: #c7d2fe;
    text-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.player-style-midnight .player-title {
    color: #93a2ff;
}

.player-style-midnight .player-cover {
    border: 2px solid #6366f1;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.45);
}

.player-style-midnight .btn-player {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid #6366f1;
    color: #c7d2fe;
}

.player-style-midnight .btn-play {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.player-style-midnight .btn-stop {
    background: rgba(0, 0, 0, 0.3);
}

.player-style-midnight .volume-control i {
    color: #818cf8;
}

.player-style-midnight .slider {
    background: rgba(129, 140, 248, 0.25);
}

.player-style-midnight .slider::-webkit-slider-thumb {
    background: #818cf8;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.7);
}

.player-style-midnight .slider::-moz-range-thumb {
    background: #818cf8;
}

.player-style-midnight .listeners-badge {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
}

.player-style-midnight .listeners-badge i {
    color: #818cf8;
}

/* ===== Audio Player Style: Coffee / Warm ===== */
.player-style-coffee .card-body {
    background: linear-gradient(180deg, #3e2723 0%, #4e342e 100%);
    border: 1px solid rgba(200, 160, 120, 0.3);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.player-style-coffee .player-artist {
    color: #e8c9a0;
}

.player-style-coffee .player-title {
    color: #c9a87c;
}

.player-style-coffee .player-cover {
    border: 2px solid #a1887f;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.player-style-coffee .btn-player {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #a1887f;
    color: #e8c9a0;
}

.player-style-coffee .btn-play {
    background: linear-gradient(135deg, #8d6e63, #5d4037);
    color: #fff;
    border: none;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
}

.player-style-coffee .btn-stop {
    background: rgba(0, 0, 0, 0.25);
}

.player-style-coffee .volume-control i {
    color: #e8c9a0;
}

.player-style-coffee .slider {
    background: rgba(200, 160, 120, 0.25);
}

.player-style-coffee .slider::-webkit-slider-thumb {
    background: #e8c9a0;
    box-shadow: none;
}

.player-style-coffee .slider::-moz-range-thumb {
    background: #e8c9a0;
}

.player-style-coffee .listeners-badge {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(200, 160, 120, 0.4);
    color: #e8c9a0;
}

.player-style-coffee .listeners-badge i {
    color: #e8c9a0;
}

/* ===== Audio Player Style: Matrix ===== */
.player-style-matrix .card-body {
    background: #020d02;
    border: 1px solid #00ff41;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.2), inset 0 0 20px rgba(0, 255, 65, 0.05);
}

.player-style-matrix .player-artist {
    color: #00ff41;
    font-family: "Courier New", monospace;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.player-style-matrix .player-title {
    color: #8dff9e;
}

.player-style-matrix .player-cover {
    border: 2px solid #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.player-style-matrix .btn-player {
    border-radius: 4px;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid #00ff41;
    color: #00ff41;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.2);
}

.player-style-matrix .btn-play {
    background: #00ff41;
    color: #020d02;
    border: none;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}

.player-style-matrix .btn-stop {
    background: rgba(0, 0, 0, 0.3);
}

.player-style-matrix .volume-control i {
    color: #00ff41;
}

.player-style-matrix .slider {
    background: rgba(0, 255, 65, 0.25);
}

.player-style-matrix .slider::-webkit-slider-thumb {
    background: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
}

.player-style-matrix .slider::-moz-range-thumb {
    background: #00ff41;
}

.player-style-matrix .listeners-badge {
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.4);
    color: #8dff9e;
}

.player-style-matrix .listeners-badge i {
    color: #00ff41;
}

/* ===== Audio Player Style: Deep Space ===== */
.player-style-space .card-body {
    background: radial-gradient(circle at 70% 20%, #4a1a7a 0%, #1a0b2e 45%, #05020f 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.15);
}

.player-style-space .player-artist {
    color: #e9d5ff;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.player-style-space .player-title {
    color: #c4b5fd;
}

.player-style-space .player-cover {
    border: 2px solid #a855f7;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.45);
}

.player-style-space .btn-player {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid #a855f7;
    color: #e9d5ff;
}

.player-style-space .btn-play {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.player-style-space .btn-stop {
    background: rgba(0, 0, 0, 0.3);
}

.player-style-space .volume-control i {
    color: #a855f7;
}

.player-style-space .slider {
    background: rgba(168, 85, 247, 0.25);
}

.player-style-space .slider::-webkit-slider-thumb {
    background: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
}

.player-style-space .slider::-moz-range-thumb {
    background: #a855f7;
}

.player-style-space .listeners-badge {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
}

.player-style-space .listeners-badge i {
    color: #a855f7;
}

/* ===== Audio Player Style: Monochrome ===== */
.player-style-mono .card-body {
    background: #171717;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    filter: grayscale(1);
}

.player-style-mono .player-artist {
    color: #fff;
}

.player-style-mono .player-title {
    color: #aaa;
}

.player-style-mono .player-cover {
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.player-style-mono .btn-player {
    background: #262626;
    border: 1px solid #444;
    color: #eee;
    box-shadow: none;
}

.player-style-mono .btn-play {
    background: #fff;
    color: #111;
    border: none;
}

.player-style-mono .btn-stop {
    background: #333;
    color: #fff;
}

.player-style-mono .volume-control i {
    color: #ccc;
}

.player-style-mono .slider {
    background: #333;
}

.player-style-mono .slider::-webkit-slider-thumb {
    background: #fff;
    box-shadow: none;
}

.player-style-mono .slider::-moz-range-thumb {
    background: #fff;
}

.player-style-mono .listeners-badge {
    background: #222;
    border: 1px solid #3a3a3a;
    color: #ddd;
}

.player-style-mono .listeners-badge i {
    color: #ccc;
}

/* ===== Audio Player Style: Rose Gold ===== */
@keyframes playerBgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes playerGlow {
    0%, 100% { box-shadow: 0 0 12px var(--pl-glow, rgba(255, 255, 255, 0.3)); }
    50% { box-shadow: 0 0 35px var(--pl-glow, rgba(255, 255, 255, 0.6)); }
}

@keyframes playerScan {
    0% { top: -6%; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { top: 106%; opacity: 0; }
}

.player-style-rose .card-body {
    background: linear-gradient(135deg, #e8b4b8, #f4c6c6, #d8a7a0);
    background-size: 200% 200%;
    border: 1px solid rgba(216, 167, 160, 0.4);
    border-radius: 18px;
    animation: playerBgShift 8s ease infinite;
}

.player-style-rose .player-artist {
    color: #6d3b3b;
    text-shadow: 0 0 10px rgba(216, 167, 160, 0.5);
}

.player-style-rose .player-title {
    color: #7a4a4a;
}

.player-style-rose .player-cover {
    border: 2px solid #e8b4b8;
    box-shadow: 0 0 25px rgba(216, 167, 160, 0.5);
}

.player-style-rose .btn-player {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid #d8a7a0;
    color: #6d3b3b;
}

.player-style-rose .btn-play {
    background: linear-gradient(135deg, #d8a7a0, #b76e79);
    color: #fff;
    border: none;
    --pl-glow: rgba(216, 167, 160, 0.7);
    animation: playerGlow 2.2s ease-in-out infinite;
}

.player-style-rose .btn-stop {
    background: rgba(0, 0, 0, 0.15);
}

.player-style-rose .volume-control i {
    color: #b76e79;
}

.player-style-rose .slider {
    background: rgba(183, 110, 121, 0.3);
}

.player-style-rose .slider::-webkit-slider-thumb {
    background: #b76e79;
    box-shadow: 0 0 10px rgba(183, 110, 121, 0.6);
}

.player-style-rose .slider::-moz-range-thumb {
    background: #b76e79;
}

.player-style-rose .listeners-badge {
    background: rgba(216, 167, 160, 0.15);
    border: 1px solid rgba(216, 167, 160, 0.4);
    color: #6d3b3b;
}

.player-style-rose .listeners-badge i {
    color: #b76e79;
}

/* ===== Audio Player Style: Sakura ===== */
.player-style-sakura .card-body {
    background: linear-gradient(135deg, #fdeff2, #f9c7d0, #f8bbd0);
    background-size: 200% 200%;
    border: 1px solid rgba(240, 98, 146, 0.35);
    border-radius: 18px;
    animation: playerBgShift 8s ease infinite;
}

.player-style-sakura .player-artist {
    color: #ad1457;
    text-shadow: 0 0 10px rgba(240, 98, 146, 0.4);
}

.player-style-sakura .player-title {
    color: #c2185b;
}

.player-style-sakura .player-cover {
    border: 2px solid #f06292;
    box-shadow: 0 0 25px rgba(240, 98, 146, 0.5);
}

.player-style-sakura .btn-player {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #f06292;
    color: #ad1457;
}

.player-style-sakura .btn-play {
    background: linear-gradient(135deg, #f06292, #c2185b);
    color: #fff;
    border: none;
    --pl-glow: rgba(240, 98, 146, 0.7);
    animation: playerGlow 2s ease-in-out infinite;
}

.player-style-sakura .btn-stop {
    background: rgba(0, 0, 0, 0.12);
}

.player-style-sakura .volume-control i {
    color: #f06292;
}

.player-style-sakura .slider {
    background: rgba(240, 98, 146, 0.3);
}

.player-style-sakura .slider::-webkit-slider-thumb {
    background: #f06292;
    box-shadow: 0 0 10px rgba(240, 98, 146, 0.6);
}

.player-style-sakura .slider::-moz-range-thumb {
    background: #f06292;
}

.player-style-sakura .listeners-badge {
    background: rgba(240, 98, 146, 0.12);
    border: 1px solid rgba(240, 98, 146, 0.4);
    color: #ad1457;
}

.player-style-sakura .listeners-badge i {
    color: #f06292;
}

/* ===== Audio Player Style: Lavender ===== */
.player-style-lavender .card-body {
    background: linear-gradient(135deg, #9575cd, #7e57c2, #b39ddb);
    background-size: 200% 200%;
    border: 1px solid rgba(179, 157, 219, 0.4);
    border-radius: 18px;
    animation: playerBgShift 9s ease infinite;
}

.player-style-lavender .player-artist {
    color: #ede7f6;
    text-shadow: 0 0 10px rgba(209, 196, 233, 0.6);
}

.player-style-lavender .player-title {
    color: #d1c4e9;
}

.player-style-lavender .player-cover {
    border: 2px solid #d1c4e9;
    box-shadow: 0 0 25px rgba(209, 196, 233, 0.5);
}

.player-style-lavender .btn-player {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid #d1c4e9;
    color: #ede7f6;
}

.player-style-lavender .btn-play {
    background: linear-gradient(135deg, #7e57c2, #4527a0);
    color: #fff;
    border: none;
    --pl-glow: rgba(126, 87, 194, 0.7);
    animation: playerGlow 2.3s ease-in-out infinite;
}

.player-style-lavender .btn-stop {
    background: rgba(0, 0, 0, 0.2);
}

.player-style-lavender .volume-control i {
    color: #d1c4e9;
}

.player-style-lavender .slider {
    background: rgba(209, 196, 233, 0.3);
}

.player-style-lavender .slider::-webkit-slider-thumb {
    background: #d1c4e9;
    box-shadow: 0 0 10px rgba(209, 196, 233, 0.6);
}

.player-style-lavender .slider::-moz-range-thumb {
    background: #d1c4e9;
}

.player-style-lavender .listeners-badge {
    background: rgba(209, 196, 233, 0.12);
    border: 1px solid rgba(209, 196, 233, 0.4);
    color: #ede7f6;
}

.player-style-lavender .listeners-badge i {
    color: #d1c4e9;
}

/* ===== Audio Player Style: Mint ===== */
.player-style-mint .card-body {
    background: linear-gradient(135deg, #b2dfdb, #80cbc4, #4db6ac);
    background-size: 200% 200%;
    border: 1px solid rgba(77, 182, 172, 0.4);
    border-radius: 18px;
    animation: playerBgShift 8s ease infinite;
}

.player-style-mint .player-artist {
    color: #004d40;
    text-shadow: 0 0 10px rgba(224, 242, 241, 0.6);
}

.player-style-mint .player-title {
    color: #00695c;
}

.player-style-mint .player-cover {
    border: 2px solid #e0f2f1;
    box-shadow: 0 0 25px rgba(77, 182, 172, 0.5);
}

.player-style-mint .btn-player {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid #4db6ac;
    color: #004d40;
}

.player-style-mint .btn-play {
    background: linear-gradient(135deg, #4db6ac, #00897b);
    color: #fff;
    border: none;
    --pl-glow: rgba(77, 182, 172, 0.7);
    animation: playerGlow 2.2s ease-in-out infinite;
}

.player-style-mint .btn-stop {
    background: rgba(0, 0, 0, 0.12);
}

.player-style-mint .volume-control i {
    color: #4db6ac;
}

.player-style-mint .slider {
    background: rgba(77, 182, 172, 0.3);
}

.player-style-mint .slider::-webkit-slider-thumb {
    background: #4db6ac;
    box-shadow: 0 0 10px rgba(77, 182, 172, 0.6);
}

.player-style-mint .slider::-moz-range-thumb {
    background: #4db6ac;
}

.player-style-mint .listeners-badge {
    background: rgba(77, 182, 172, 0.12);
    border: 1px solid rgba(77, 182, 172, 0.4);
    color: #004d40;
}

.player-style-mint .listeners-badge i {
    color: #4db6ac;
}

/* ===== Audio Player Style: Peach ===== */
.player-style-peach .card-body {
    background: linear-gradient(135deg, #ffe0b2, #ffcc80, #ffb74d);
    background-size: 200% 200%;
    border: 1px solid rgba(255, 183, 77, 0.45);
    border-radius: 18px;
    animation: playerBgShift 8s ease infinite;
}

.player-style-peach .player-artist {
    color: #e65100;
    text-shadow: 0 0 10px rgba(255, 224, 178, 0.6);
}

.player-style-peach .player-title {
    color: #ef6c00;
}

.player-style-peach .player-cover {
    border: 2px solid #ffe0b2;
    box-shadow: 0 0 25px rgba(255, 183, 77, 0.55);
}

.player-style-peach .btn-player {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #ffb74d;
    color: #e65100;
}

.player-style-peach .btn-play {
    background: linear-gradient(135deg, #ffb74d, #ef6c00);
    color: #fff;
    border: none;
    --pl-glow: rgba(255, 183, 77, 0.8);
    animation: playerGlow 2s ease-in-out infinite;
}

.player-style-peach .btn-stop {
    background: rgba(0, 0, 0, 0.12);
}

.player-style-peach .volume-control i {
    color: #ef6c00;
}

.player-style-peach .slider {
    background: rgba(255, 183, 77, 0.3);
}

.player-style-peach .slider::-webkit-slider-thumb {
    background: #ef6c00;
    box-shadow: 0 0 10px rgba(255, 183, 77, 0.6);
}

.player-style-peach .slider::-moz-range-thumb {
    background: #ef6c00;
}

.player-style-peach .listeners-badge {
    background: rgba(255, 183, 77, 0.12);
    border: 1px solid rgba(255, 183, 77, 0.45);
    color: #e65100;
}

.player-style-peach .listeners-badge i {
    color: #ef6c00;
}

/* ===== Audio Player Style: Fire ===== */
.player-style-fire .card-body {
    background: linear-gradient(90deg, #ff3d00, #ff6d00, #b71c1c);
    background-size: 300% 100%;
    border: 1px solid rgba(255, 145, 0, 0.5);
    border-radius: 18px;
    animation: playerBgShift 4s linear infinite;
}

.player-style-fire .player-artist {
    color: #ffcc80;
    text-shadow: 0 0 12px rgba(255, 145, 0, 0.8);
}

.player-style-fire .player-title {
    color: #ffe0b2;
}

.player-style-fire .player-cover {
    border: 2px solid #ff9100;
    box-shadow: 0 0 25px rgba(255, 61, 0, 0.6);
}

.player-style-fire .btn-player {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #ff9100;
    color: #ffcc80;
}

.player-style-fire .btn-play {
    background: linear-gradient(135deg, #ff3d00, #ff9100);
    color: #fff;
    border: none;
    --pl-glow: rgba(255, 61, 0, 0.85);
    animation: playerGlow 1.5s ease-in-out infinite;
}

.player-style-fire .btn-stop {
    background: rgba(0, 0, 0, 0.3);
}

.player-style-fire .volume-control i {
    color: #ff9100;
}

.player-style-fire .slider {
    background: rgba(255, 145, 0, 0.3);
}

.player-style-fire .slider::-webkit-slider-thumb {
    background: #ff9100;
    box-shadow: 0 0 10px rgba(255, 145, 0, 0.7);
}

.player-style-fire .slider::-moz-range-thumb {
    background: #ff9100;
}

.player-style-fire .listeners-badge {
    background: rgba(255, 61, 0, 0.15);
    border: 1px solid rgba(255, 145, 0, 0.45);
    color: #ffe0b2;
}

.player-style-fire .listeners-badge i {
    color: #ff9100;
}

/* ===== Audio Player Style: Ice ===== */
.player-style-ice .card-body {
    background: linear-gradient(90deg, #0d47a1, #26c6da, #e0f7fa, #26c6da);
    background-size: 300% 100%;
    border: 1px solid rgba(129, 212, 250, 0.45);
    border-radius: 18px;
    animation: playerBgShift 7s ease infinite;
}

.player-style-ice .player-artist {
    color: #e0f7fa;
    text-shadow: 0 0 12px rgba(129, 212, 250, 0.8);
}

.player-style-ice .player-title {
    color: #e1f5fe;
}

.player-style-ice .player-cover {
    border: 2px solid #81d4fa;
    box-shadow: 0 0 25px rgba(38, 198, 218, 0.6);
}

.player-style-ice .btn-player {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #81d4fa;
    color: #e0f7fa;
}

.player-style-ice .btn-play {
    background: linear-gradient(135deg, #26c6da, #0288d1);
    color: #fff;
    border: none;
    --pl-glow: rgba(38, 198, 218, 0.8);
    animation: playerGlow 2s ease-in-out infinite;
}

.player-style-ice .btn-stop {
    background: rgba(0, 0, 0, 0.25);
}

.player-style-ice .volume-control i {
    color: #81d4fa;
}

.player-style-ice .slider {
    background: rgba(129, 212, 250, 0.3);
}

.player-style-ice .slider::-webkit-slider-thumb {
    background: #81d4fa;
    box-shadow: 0 0 10px rgba(129, 212, 250, 0.7);
}

.player-style-ice .slider::-moz-range-thumb {
    background: #81d4fa;
}

.player-style-ice .listeners-badge {
    background: rgba(38, 198, 218, 0.12);
    border: 1px solid rgba(129, 212, 250, 0.4);
    color: #e0f7fa;
}

.player-style-ice .listeners-badge i {
    color: #81d4fa;
}

/* ===== Audio Player Style: Royal ===== */
.player-style-royal .card-body {
    background: radial-gradient(circle at 50% 20%, #4a148c, #1a0933);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 215, 0, 0.08);
}

.player-style-royal .player-artist {
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.player-style-royal .player-title {
    color: #b388ff;
}

.player-style-royal .player-cover {
    border: 2px solid #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

.player-style-royal .btn-player {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #ffd700;
    color: #ffd700;
}

.player-style-royal .btn-play {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #1a0933;
    border: none;
    --pl-glow: rgba(255, 215, 0, 0.8);
    animation: playerGlow 2.4s ease-in-out infinite;
}

.player-style-royal .btn-stop {
    background: rgba(0, 0, 0, 0.3);
}

.player-style-royal .volume-control i {
    color: #ffd700;
}

.player-style-royal .slider {
    background: rgba(255, 215, 0, 0.3);
}

.player-style-royal .slider::-webkit-slider-thumb {
    background: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.player-style-royal .slider::-moz-range-thumb {
    background: #ffd700;
}

.player-style-royal .listeners-badge {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.player-style-royal .listeners-badge i {
    color: #ffd700;
}

/* ===== Audio Player Style: Glitch ===== */
.player-style-glitch .card-body {
    position: relative;
    background: linear-gradient(180deg, #0f0f1a, #1a0b2e);
    border: 1px solid rgba(255, 46, 244, 0.4);
    border-radius: 18px;
    overflow: hidden;
}

.player-style-glitch .card-body::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -6%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff2ef4, #00e5ff, transparent);
    animation: playerScan 2s linear infinite;
    pointer-events: none;
}

.player-style-glitch .player-artist {
    color: #fff;
    text-shadow: 1px 0 #ff2ef4, -1px 0 #00e5ff;
}

.player-style-glitch .player-title {
    color: #b39ddb;
}

.player-style-glitch .player-cover {
    border: 2px solid #ff2ef4;
    box-shadow: 0 0 25px rgba(255, 46, 244, 0.6);
}

.player-style-glitch .btn-player {
    background: rgba(255, 46, 244, 0.1);
    border: 1px solid #00e5ff;
    color: #00e5ff;
}

.player-style-glitch .btn-play {
    background: linear-gradient(135deg, #ff2ef4, #00e5ff);
    color: #fff;
    border: none;
    --pl-glow: rgba(255, 46, 244, 0.8);
    animation: playerGlow 1.6s ease-in-out infinite;
}

.player-style-glitch .btn-stop {
    background: rgba(0, 0, 0, 0.3);
}

.player-style-glitch .volume-control i {
    color: #00e5ff;
}

.player-style-glitch .slider {
    background: rgba(255, 46, 244, 0.3);
}

.player-style-glitch .slider::-webkit-slider-thumb {
    background: #ff2ef4;
    box-shadow: 0 0 10px rgba(255, 46, 244, 0.7);
}

.player-style-glitch .slider::-moz-range-thumb {
    background: #ff2ef4;
}

.player-style-glitch .listeners-badge {
    background: rgba(255, 46, 244, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: #b39ddb;
}

.player-style-glitch .listeners-badge i {
    color: #00e5ff;
}

/* ===== Audio Player Style: Prism ===== */
.player-style-prism .card-body {
    background: linear-gradient(90deg, #ff1744, #ff9100, #ffea00, #00e676, #2979ff, #d500f9, #ff1744);
    background-size: 300% 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    animation: playerBgShift 5s linear infinite;
}

.player-style-prism .player-artist {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.player-style-prism .player-title {
    color: #fff;
}

.player-style-prism .player-cover {
    border: 2px solid #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.player-style-prism .btn-player {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #fff;
    color: #fff;
}

.player-style-prism .btn-play {
    background: linear-gradient(135deg, #ff1744, #2979ff);
    color: #fff;
    border: none;
    --pl-glow: rgba(255, 23, 68, 0.8);
    animation: playerGlow 2s ease-in-out infinite;
}

.player-style-prism .btn-stop {
    background: rgba(0, 0, 0, 0.3);
}

.player-style-prism .volume-control i {
    color: #fff;
}

.player-style-prism .slider {
    background: rgba(255, 255, 255, 0.3);
}

.player-style-prism .slider::-webkit-slider-thumb {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.player-style-prism .slider::-moz-range-thumb {
    background: #fff;
}

.player-style-prism .listeners-badge {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.player-style-prism .listeners-badge i {
    color: #fff;
}

/* ===== Play button shape & glow per style ===== */
@keyframes playerBtnPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
    100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
}

@keyframes playerBtnShine {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.07); filter: brightness(1.3); }
    100% { transform: scale(1); filter: brightness(1); }
}

.player-style-flat .btn-play {
    border-radius: 4px;
}

.player-style-dark .btn-play {
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
}

.player-style-light .btn-play {
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.player-style-gradient .btn-play {
    border-radius: 50%;
    animation: playerBtnPulse 2.4s infinite;
}

.player-style-retro .btn-play {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: playerBtnPulse 2.2s infinite;
}

.player-style-vapor .btn-play {
    border-radius: 18px;
}

.player-style-hologram .btn-play {
    border-radius: 50%;
    animation: playerBtnShine 3s infinite;
}

.player-style-bubblegum .btn-play {
    border-radius: 50%;
    box-shadow: 0 0 0 4px #fff, 0 0 22px rgba(236, 64, 122, 0.5) !important;
    animation: playerBtnPulse 2s infinite;
}

.player-style-golden .btn-play {
    border-radius: 50%;
    animation: playerBtnShine 3.5s infinite;
}

.player-style-ocean .btn-play {
    border-radius: 12px;
}

.player-style-aurora .btn-play {
    border-radius: 12px 32px;
}

.player-style-sunset .btn-play {
    border-radius: 50%;
}

.player-style-midnight .btn-play {
    border-radius: 6px;
}

.player-style-coffee .btn-play {
    border-radius: 14px;
}

.player-style-matrix .btn-play {
    border-radius: 2px;
    animation: playerBtnPulse 2s infinite;
}

.player-style-space .btn-play {
    border-radius: 12px;
}

.player-style-mono .btn-play {
    border-radius: 50%;
    filter: grayscale(1);
}

.player-style-rose .btn-play {
    border-radius: 50%;
    animation: playerBtnShine 2.5s infinite;
}

.player-style-sakura .btn-play {
    border-radius: 22px 4px;
    animation: playerBtnShine 3s infinite;
}

.player-style-lavender .btn-play {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: playerBtnPulse 2.4s infinite;
}

.player-style-mint .btn-play {
    border-radius: 12px;
    animation: playerBtnShine 2.8s infinite;
}

.player-style-peach .btn-play {
    border-radius: 50%;
    animation: playerBtnPulse 2s infinite;
}

.player-style-fire .btn-play {
    border-radius: 10px;
    animation: playerBtnShine 1.8s infinite;
}

.player-style-ice .btn-play {
    border-radius: 999px;
    animation: playerBtnPulse 2.2s infinite;
}

.player-style-royal .btn-play {
    border-radius: 6px;
    animation: playerBtnShine 3.2s infinite;
}

.player-style-glitch .btn-play {
    border-radius: 2px;
    animation: playerBtnPulse 1.8s infinite;
}

.player-style-prism .btn-play {
    border-radius: 50%;
    animation: playerBtnShine 2s infinite;
}

/* ===== Cover Equalizer (ring of bars inside the album circle, runs while playing) ===== */
.cover-eq {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    --eq-radius: 46px;
}

.player-cover.playing .cover-eq {
    opacity: 1;
    animation: spin 8s linear infinite reverse;
}

.cover-eq span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.5);
    transform: translate(-50%, -100%) rotate(var(--a)) translateY(calc(var(--eq-radius) * -1));
    transform-origin: 50% 100%;
    animation: coverEqBeat 0.9s ease-in-out infinite;
    animation-play-state: paused;
}

.player-cover.playing .cover-eq span {
    animation-play-state: running;
}

.cover-eq::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px 4px rgba(255, 193, 7, 0.5);
}

@keyframes coverEqBeat {
    0%, 100% { transform: translate(-50%, -100%) rotate(var(--a)) translateY(calc(var(--eq-radius) * -1)) scaleY(0.35); }
    50% { transform: translate(-50%, -100%) rotate(var(--a)) translateY(calc(var(--eq-radius) * -1)) scaleY(1.15); }
}

.cover-eq span:nth-child(6n+1) { animation-delay: 0s; animation-duration: 0.8s; }
.cover-eq span:nth-child(6n+2) { animation-delay: 0.08s; animation-duration: 0.65s; }
.cover-eq span:nth-child(6n+3) { animation-delay: 0.16s; animation-duration: 0.9s; }
.cover-eq span:nth-child(6n+4) { animation-delay: 0.24s; animation-duration: 0.7s; }
.cover-eq span:nth-child(6n+5) { animation-delay: 0.32s; animation-duration: 0.6s; }
.cover-eq span:nth-child(6n+0) { animation-delay: 0.4s; animation-duration: 0.85s; }

/* Equalizer colors per player style */
.player-style-glass .cover-eq span {
    background: rgba(255, 193, 7, 0.85);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

.player-style-neon .cover-eq span {
    background: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}

.player-style-flat .cover-eq span {
    background: var(--primary);
    border-radius: 0;
}

.player-style-dark .cover-eq span {
    background: #fff;
}

.player-style-light .cover-eq span {
    background: #111;
    box-shadow: none;
}

.player-style-gradient .cover-eq span {
    background: #fff;
}

.player-style-retro .cover-eq span:nth-child(odd) {
    background: #ff2e9a;
    box-shadow: 0 0 8px rgba(255, 46, 154, 0.7);
}

.player-style-retro .cover-eq span:nth-child(even) {
    background: #01d8ff;
    box-shadow: 0 0 8px rgba(1, 216, 255, 0.7);
}

.player-style-vapor .cover-eq span {
    background: #a855f7;
}

.player-style-hologram .cover-eq span:nth-child(3n+1) { background: #f093fb; }
.player-style-hologram .cover-eq span:nth-child(3n+2) { background: #f5576c; }
.player-style-hologram .cover-eq span:nth-child(3n+0) { background: #4facfe; }

.player-style-bubblegum .cover-eq span {
    background: #ec407a;
}

.player-style-golden .cover-eq span {
    background: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.player-style-ocean .cover-eq span {
    background: #00d2ff;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

.player-style-aurora .cover-eq span:nth-child(odd) {
    background: #2ed573;
    box-shadow: 0 0 8px rgba(46, 213, 115, 0.6);
}

.player-style-aurora .cover-eq span:nth-child(even) {
    background: #6f42c1;
    box-shadow: 0 0 8px rgba(111, 66, 193, 0.6);
}

.player-style-sunset .cover-eq span {
    background: #fff;
}

.player-style-midnight .cover-eq span {
    background: #818cf8;
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.6);
}

.player-style-coffee .cover-eq span {
    background: #e8c9a0;
}

.player-style-matrix .cover-eq span {
    background: #00ff41;
    border-radius: 0;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.7);
}

.player-style-space .cover-eq span {
    background: #a855f7;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.player-style-mono .cover-eq span {
    background: #fff;
}

.player-style-rose .cover-eq span {
    background: #b76e79;
    box-shadow: 0 0 8px rgba(183, 110, 121, 0.5);
}

.player-style-sakura .cover-eq span {
    background: #c2185b;
    box-shadow: 0 0 8px rgba(194, 24, 91, 0.5);
}

.player-style-lavender .cover-eq span {
    background: #ede7f6;
    box-shadow: 0 0 8px rgba(209, 196, 233, 0.6);
}

.player-style-mint .cover-eq span {
    background: #00695c;
    box-shadow: 0 0 8px rgba(0, 105, 92, 0.5);
}

.player-style-peach .cover-eq span {
    background: #e65100;
    box-shadow: 0 0 8px rgba(230, 81, 0, 0.5);
}

.player-style-fire .cover-eq span {
    background: #ffcc80;
    box-shadow: 0 0 8px rgba(255, 145, 0, 0.7);
}

.player-style-ice .cover-eq span {
    background: #e0f7fa;
    box-shadow: 0 0 8px rgba(129, 212, 250, 0.7);
}

.player-style-royal .cover-eq span {
    background: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.player-style-glitch .cover-eq span:nth-child(odd) {
    background: #ff2ef4;
    box-shadow: 0 0 8px rgba(255, 46, 244, 0.6);
}

.player-style-glitch .cover-eq span:nth-child(even) {
    background: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.player-style-prism .cover-eq span {
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* ===== Time / Clock ===== */
.time-frame {
    color: #fff;
    width: 100%;
    text-align: center;
    font-family: var(--brand-font);
    padding: 15px 0;
    position: relative;
}

.time-frame .clock-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}

.time-frame #date-part,
.time-frame #time-part {
    position: relative;
    z-index: 1;
}

#date-part {
    font-size: 1.4em;
    background: linear-gradient(180deg, rgb(190, 40, 118) 0%, rgb(143, 62, 136) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--brand-font);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

#time-part {
    font-size: 2.8em;
    font-family: var(--brand-font);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0px 0px 15px rgb(250 232 98), 0 0 6px rgba(0, 0, 0, 0.9);
}

/* ===== Clock styles (set in Station Settings) ===== */

/* Neon Glow */
.time-frame.clock-style-neon #date-part {
    font-size: 1.4em;
    color: #00e5ff;
    text-shadow: 0 0 8px #00e5ff, 0 0 20px #00b8d4;
}
.time-frame.clock-style-neon #time-part {
    color: #ff2ef4;
    text-shadow: 0 0 8px #ff2ef4, 0 0 25px #ff2ef4, 0 0 50px #ff00aa;
}

/* Golden / Luxury */
.time-frame.clock-style-golden #date-part {
    font-size: 1.4em;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}
.time-frame.clock-style-golden #time-part {
    color: #ffd700;
    background: linear-gradient(180deg, #fff7cc 0%, #ffd700 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

/* Rainbow */
.time-frame.clock-style-rainbow #date-part {
    font-size: 1.4em;
    background: linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.time-frame.clock-style-rainbow #time-part {
    background: linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff, #ff0000);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: clockRainbow 4s linear infinite;
    text-shadow: none;
}
@keyframes clockRainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Matrix */
.time-frame.clock-style-matrix #date-part {
    font-size: 1.4em;
    color: #7fff00;
    text-shadow: 0 0 6px rgba(127, 255, 0, 0.7);
}
.time-frame.clock-style-matrix #time-part {
    color: #00ff41;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.8), 0 0 25px rgba(0, 255, 65, 0.4);
}

/* Ocean */
.time-frame.clock-style-ocean #date-part {
    font-size: 1.4em;
    background: linear-gradient(180deg, #81d4fa 0%, #0277bd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.time-frame.clock-style-ocean #time-part {
    color: #b3e5fc;
    text-shadow: 0 0 10px rgba(3, 169, 244, 0.8), 0 0 30px rgba(3, 169, 244, 0.4);
}

/* Fire / Ember */
.time-frame.clock-style-fire #date-part {
    font-size: 1.4em;
    background: linear-gradient(180deg, #ffcc80 0%, #ff6d00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.time-frame.clock-style-fire #time-part {
    color: #ff8a3d;
    text-shadow: 0 0 8px #ff6d00, 0 0 30px rgba(255, 61, 0, 0.7);
}

/* Minimal */
.time-frame.clock-style-minimal #date-part {
    font-size: 1.1em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    background: none;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
}
.time-frame.clock-style-minimal #time-part {
    font-size: 2.4em;
    font-weight: 300;
    color: #fff;
    text-shadow: none;
}

/* Retro / Synthwave */
.time-frame.clock-style-retro #date-part {
    font-size: 1.4em;
    color: #ff6ec7;
    text-shadow: 0 0 8px rgba(255, 110, 199, 0.8), 3px 3px 0 #5e35b1;
}
.time-frame.clock-style-retro #time-part {
    color: #ff2f8f;
    text-shadow: 0 0 10px rgba(255, 47, 143, 0.9), 4px 4px 0 #5e35b1, 8px 8px 0 rgba(94, 53, 177, 0.5);
}

/* Holographic */
.time-frame.clock-style-hologram #date-part {
    font-size: 1.4em;
    background: linear-gradient(135deg, #ff6ec7 0%, #7873f5 33%, #4adede 66%, #ff6ec7 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: clockHolo 6s ease-in-out infinite;
}
.time-frame.clock-style-hologram #time-part {
    background: linear-gradient(135deg, #7873f5 0%, #4adede 50%, #ff6ec7 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: clockHolo 6s ease-in-out infinite;
    text-shadow: none;
}
@keyframes clockHolo {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== Schedule ===== */
.schedule-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    color: #fff;
}

.schedule-tab {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
    transition: all 0.15s ease;
}

.schedule-tab:hover {
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 7px 0 rgba(0, 0, 0, 0.35);
}

.schedule-tab:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.schedule-tab.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 7px 0 rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 193, 7, 0.25);
}

.schedule-panel {
    display: none;
}

.schedule-panel.active {
    display: block;
    transform-style: preserve-3d;
    animation: schedulePanelFlip 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes schedulePanelFlip {
    from {
        transform: perspective(800px) rotateX(-32deg);
        opacity: 0;
        transform-origin: 50% -20%;
    }
    to {
        transform: perspective(800px) rotateX(0deg);
        opacity: 1;
        transform-origin: 50% -20%;
    }
}

.schedule-header {
    margin-bottom: 15px;
}

.section-title {
    font-size: 18px;
    font-family: var(--brand-font);
    color: #fff;
    font-weight: 800;
    margin-bottom: 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    display: block;
    flex: 1;
    height: 3px;
    background: var(--primary);
    margin-left: 12px;
}

.schedule-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-top: 4px;
    margin-bottom: 0;
}

.schedule-clock {
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.schedule-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
    border-left-color: rgba(255, 255, 255, 0.35);
}

.schedule-item.has-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--dj-bg);
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 50%, transparent 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 50%, transparent 100%);
    opacity: 0.5;
    pointer-events: none;
}

.schedule-item > * {
    position: relative;
    z-index: 1;
}

.schedule-item.active {
    background: rgba(255, 193, 7, 0.12);
    border-left: 3px solid var(--primary);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.22);
    animation: scheduleLiveGlow 2s ease-in-out infinite;
}

@keyframes scheduleLiveGlow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(255, 193, 7, 0.22), 0 0 0 0 rgba(255, 193, 7, 0.45);
    }
    50% {
        box-shadow: 0 8px 20px rgba(255, 193, 7, 0.35), 0 0 18px 4px rgba(255, 193, 7, 0.35);
    }
}

.schedule-time {
    color: #0d3a8b;
    font-size: 11px;
    font-weight: 600;
    min-width: 140px;
    font-family: var(--brand-font);
    text-shadow: 0 0 6px rgba(255, 193, 7, 0.9), 0 0 12px rgba(255, 193, 7, 0.6);
}

.schedule-dj {
    flex: 0 0 auto;
    order: -1;
    width: 46px;
    height: 46px;
    margin-right: 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 193, 7, 0.55);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.schedule-dj img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.schedule-details {
    flex: 1;
}

.schedule-details h4 {
    color: #fff;
    font-family: var(--brand-font);
    font-size: 1rem;
    margin-bottom: 2px;
}

.schedule-details p {
    color: #fff;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.schedule-status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-status.live {
    background: #e63946;
    color: #fff;
    animation: pulse 1.5s ease infinite;
}

.schedule-status.upcoming {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.schedule-list::-webkit-scrollbar {
    width: 6px;
}

.schedule-list::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.3);
    border-radius: 3px;
}

.schedule-item.schedule-empty {
    justify-content: center;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-left: 1px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    padding: 28px 15px;
}

.schedule-item.schedule-empty .schedule-details h4 {
    color: #fff;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .schedule-item {
        flex-wrap: wrap;
        padding: 10px 12px;
    }
    .schedule-time {
        min-width: 0;
        flex: 0 0 100%;
        margin-bottom: 6px;
    }
    .schedule-tab {
        padding: 5px 10px;
    }
    .schedule-status {
        font-size: 9px;
        padding: 2px 8px;
    }
}

/* ===== DJ Card ===== */
.dj-card {
    padding: 0 !important;
}

.dj-profile {
    position: relative;
    text-align: center;
    padding: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle fill="%23fae862" cx="100" cy="100" r="80" opacity="0.05"/></svg>') repeat;
    background-size: 200px;
}

.dj-image-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
}

.dj-profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255, 193, 7, 0.5);
    object-fit: cover;
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.3);
}

.live-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.flash-dot {
    animation: flash 1s linear infinite;
    color: #e63946;
}

.ob-djname {
    display: block;
    color: #fff !important;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.15;
    font-size: 1.9rem;
    font-family: var(--brand-font);
    margin-bottom: 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 0, 0, 0.4);
}

.ob-djprog {
    display: block;
    font-size: 12px;
    color: var(--primary) !important;
    text-transform: uppercase;
    font-family: var(--brand-font);
    letter-spacing: 1px;
}

/* ===== DJ Card Styles ===== */
.dj-style-glass .dj-profile {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dj-style-glass .dj-profile-img {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.dj-style-neon .dj-profile {
    background: linear-gradient(180deg, #0d0221, #170b34);
    border: 1px solid #00e5ff;
}

.dj-style-neon .dj-profile-img {
    border-color: #00e5ff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.dj-style-neon .ob-djname {
    color: #00e5ff !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.dj-style-neon .ob-djprog {
    color: #ff2ef4 !important;
}

.dj-style-retro .dj-profile {
    background: linear-gradient(180deg, #1a0b2e, #0d0221);
    border-top: 3px solid #ff2e9a;
    border-bottom: 3px solid #01d8ff;
}

.dj-style-retro .dj-profile-img {
    border-color: #ff2e9a;
    box-shadow: 0 0 25px rgba(255, 46, 154, 0.6);
}

.dj-style-retro .ob-djname {
    color: #01d8ff !important;
    text-shadow: 0 0 10px rgba(1, 216, 255, 0.7);
}

.dj-style-retro .ob-djprog {
    color: #ff2e9a !important;
}

.dj-style-golden .dj-profile {
    background: linear-gradient(180deg, #2a2113, #1b150c);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.dj-style-golden .dj-profile-img {
    border-color: #d4af37;
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.5);
}

.dj-style-golden .ob-djname {
    color: #d4af37 !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.dj-style-golden .ob-djprog {
    color: #e8c9a0 !important;
}

.dj-style-golden .live-badge {
    background: #d4af37;
    color: #1b150c;
}

.dj-style-dark .dj-profile {
    background: #111;
}

.dj-style-dark .dj-profile-img {
    border-color: #333;
    box-shadow: none;
}

.dj-style-gradient .dj-profile {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.3), rgba(255, 143, 0, 0.3));
}

.dj-style-gradient .dj-profile-img {
    border-color: #ffc107;
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.4);
}

.dj-style-vapor .dj-profile {
    background: linear-gradient(180deg, #2a1a4a, #0f0c29);
}

.dj-style-vapor .dj-profile-img {
    border-color: #ff71ce;
    box-shadow: 0 0 30px rgba(255, 113, 206, 0.5);
}

.dj-style-vapor .ob-djname {
    color: #ff71ce !important;
    text-shadow: 0 0 10px rgba(255, 113, 206, 0.6);
}

.dj-style-vapor .ob-djprog {
    color: #01cdfe !important;
}

.dj-style-hologram .dj-profile {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.15), rgba(245, 87, 108, 0.15), rgba(79, 172, 254, 0.15), rgba(67, 233, 123, 0.15));
}

.dj-style-hologram .dj-profile-img {
    border: 4px solid transparent;
    background: linear-gradient(#1b1b1b, #1b1b1b) padding-box, linear-gradient(135deg, #f093fb, #f5576c, #4facfe, #43e97b) border-box;
    box-shadow: 0 0 30px rgba(240, 147, 251, 0.4);
}

.dj-style-hologram .ob-djname {
    background: linear-gradient(90deg, #f093fb, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dj-style-ocean .dj-profile {
    background: linear-gradient(180deg, #0a2a3a, #081c28);
}

.dj-style-ocean .dj-profile-img {
    border-color: #00d2ff;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
}

.dj-style-ocean .ob-djname {
    color: #00d2ff !important;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

.dj-style-ocean .ob-djprog {
    color: #7fffd4 !important;
}

/* ----- Shared effects keyframes ----- */
@keyframes djBgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes djPulseGlow {
    0%, 100% { box-shadow: 0 0 12px var(--dj-glow, rgba(255, 255, 255, 0.35)); }
    50% { box-shadow: 0 0 45px var(--dj-glow, rgba(255, 255, 255, 0.65)); }
}

@keyframes djShine {
    0% { transform: translateX(-130%) rotate(20deg); }
    100% { transform: translateX(320%) rotate(20deg); }
}

@keyframes djSpinRing {
    to { transform: rotate(360deg); }
}

@keyframes djScan {
    0% { top: -8%; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { top: 108%; opacity: 0; }
}

@keyframes djTwinkle {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

/* ----- Sunset ----- */
.dj-style-sunset .dj-profile {
    background: linear-gradient(135deg, #ff6b35, #ff2e63, #6a0572);
    background-size: 200% 200%;
    animation: djBgMove 8s ease infinite;
}

.dj-style-sunset .dj-profile-img {
    border-color: #ffd166;
    --dj-glow: rgba(255, 209, 102, 0.7);
    animation: djPulseGlow 2.2s ease-in-out infinite;
}

/* ----- Midnight Indigo (twinkling stars) ----- */
.dj-style-midnight .dj-profile {
    background: radial-gradient(circle at 25% 30%, #1e1b4b, #0f172a);
}

.dj-style-midnight .dj-profile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1.5px 1.5px at 20% 25%, #fff, transparent),
                radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent),
                radial-gradient(1.5px 1.5px at 85% 60%, #fff, transparent),
                radial-gradient(1.5px 1.5px at 40% 80%, #fff, transparent);
    background-size: 200px 200px;
    background-position: 0 0, 60px 40px, 120px 90px, 30px 130px;
    opacity: 0.35;
    animation: djTwinkle 3s ease-in-out infinite;
    pointer-events: none;
}

.dj-style-midnight .dj-profile-img {
    border-color: #818cf8;
    --dj-glow: rgba(129, 140, 248, 0.7);
    animation: djPulseGlow 2.4s ease-in-out infinite;
}

/* ----- Aurora Borealis ----- */
.dj-style-aurora .dj-profile {
    background: linear-gradient(135deg, #0f0c29, #2ed573, #0f0c29, #6f42c1, #0f0c29);
    background-size: 300% 300%;
    animation: djBgMove 10s ease infinite;
}

.dj-style-aurora .dj-profile-img {
    border-color: #2ed573;
    --dj-glow: rgba(46, 213, 115, 0.7);
    animation: djPulseGlow 2.3s ease-in-out infinite;
}

.dj-style-aurora .ob-djname { color: #7fffd4 !important; }
.dj-style-aurora .ob-djprog { color: #b39ddb !important; }

/* ----- Coffee / Warm ----- */
.dj-style-coffee .dj-profile {
    background: linear-gradient(180deg, #3e2723, #241813);
}

.dj-style-coffee .dj-profile-img {
    border-color: #e8c9a0;
    --dj-glow: rgba(232, 201, 160, 0.6);
    animation: djPulseGlow 2.6s ease-in-out infinite;
}

.dj-style-coffee .ob-djname { color: #e8c9a0 !important; }

/* ----- Matrix (scan line) ----- */
.dj-style-matrix .dj-profile {
    background: linear-gradient(180deg, #010b01, #0a1f0a);
}

.dj-style-matrix .dj-profile::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: djScan 2.4s linear infinite;
    pointer-events: none;
}

.dj-style-matrix .dj-profile-img {
    border: 4px solid #00ff41;
    border-radius: 0;
    --dj-glow: rgba(0, 255, 65, 0.7);
    animation: djPulseGlow 1.8s ease-in-out infinite;
}

.dj-style-matrix .ob-djname { color: #00ff41 !important; text-shadow: 0 0 8px rgba(0, 255, 65, 0.8); }
.dj-style-matrix .ob-djprog { color: #7fff00 !important; }

/* ----- Deep Space (orbiting ring) ----- */
.dj-style-space .dj-profile {
    background: radial-gradient(circle at 50% 30%, #2d1b69, #0b0617);
}

.dj-style-space .dj-image-wrapper::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, #a855f7 80deg, transparent 160deg);
    z-index: 0;
    animation: djSpinRing 3.5s linear infinite;
}

.dj-style-space .dj-profile-img {
    border-color: #a855f7;
    --dj-glow: rgba(168, 85, 247, 0.8);
    animation: djPulseGlow 2.4s ease-in-out infinite;
}

.dj-style-space .ob-djname { color: #d8b4fe !important; }
.dj-style-space .ob-djprog { color: #a855f7 !important; }

/* ----- Monochrome (grayscale) ----- */
.dj-style-mono .dj-profile {
    background: linear-gradient(180deg, #2b2b2b, #171717);
    filter: grayscale(1);
}

.dj-style-mono .dj-profile-img {
    border-color: #fff;
    --dj-glow: rgba(255, 255, 255, 0.4);
    animation: djPulseGlow 3s ease-in-out infinite;
}

/* ----- Flat Minimal ----- */
.dj-style-flat .dj-profile {
    background: #242424;
}

.dj-style-flat .dj-profile-img {
    border: 4px solid var(--primary);
    border-radius: 0;
    box-shadow: none;
    --dj-glow: rgba(255, 193, 7, 0.5);
    animation: djPulseGlow 2.8s ease-in-out infinite;
}

.dj-style-flat .ob-djname { color: var(--primary) !important; }

/* ----- Light & Clean ----- */
.dj-style-light .dj-profile {
    background: linear-gradient(180deg, #fafafa, #e8e8e8);
}

.dj-style-light .dj-profile-img {
    border-color: #1b1b1b;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
}

.dj-style-light .ob-djname { color: #1b1b1b !important; }
.dj-style-light .ob-djprog { color: #555 !important; }
.dj-style-light .live-badge { background: rgba(0, 0, 0, 0.85); }

/* ----- Bubblegum ----- */
.dj-style-bubblegum .dj-profile {
    background: linear-gradient(135deg, #ff9a9e, #fecfef, #ff9a9e);
    background-size: 300% 300%;
    animation: djBgMove 7s ease infinite;
}

.dj-style-bubblegum .dj-profile-img {
    border-color: #ec407a;
    --dj-glow: rgba(236, 64, 122, 0.7);
    animation: djPulseGlow 2s ease-in-out infinite;
}

.dj-style-bubblegum .ob-djname { color: #880e4f !important; }
.dj-style-bubblegum .ob-djprog { color: #ec407a !important; }

/* ----- Fire / Ember ----- */
.dj-style-fire .dj-profile {
    background: linear-gradient(90deg, #ff3d00, #ff6d00, #b71c1c);
    background-size: 300% 100%;
    animation: djBgMove 5s ease infinite;
}

.dj-style-fire .dj-profile-img {
    border-color: #ff9100;
    --dj-glow: rgba(255, 61, 0, 0.8);
    animation: djPulseGlow 1.6s ease-in-out infinite;
}

.dj-style-fire .ob-djname { color: #ffcc80 !important; text-shadow: 0 0 10px rgba(255, 145, 0, 0.8); }

/* ----- Ice / Frost ----- */
.dj-style-ice .dj-profile {
    background: linear-gradient(90deg, #0d47a1, #26c6da, #e0f7fa, #26c6da);
    background-size: 300% 100%;
    animation: djBgMove 7s ease infinite;
}

.dj-style-ice .dj-profile-img {
    border-color: #81d4fa;
    --dj-glow: rgba(38, 198, 218, 0.8);
    animation: djPulseGlow 2.1s ease-in-out infinite;
}

.dj-style-ice .ob-djname { color: #e0f7fa !important; text-shadow: 0 0 10px rgba(129, 212, 250, 0.8); }
.dj-style-ice .ob-djprog { color: #81d4fa !important; }

/* ----- Royal Purple (shimmer sweep) ----- */
.dj-style-royal .dj-profile {
    background: radial-gradient(circle at 50% 20%, #4a148c, #1a0933);
}

.dj-style-royal .dj-image-wrapper {
    overflow: hidden;
}

.dj-style-royal .dj-image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.35), transparent);
    animation: djShine 3.2s ease-in-out infinite;
}

.dj-style-royal .dj-profile-img {
    border-color: #ffd700;
    --dj-glow: rgba(255, 215, 0, 0.6);
    animation: djPulseGlow 2.5s ease-in-out infinite;
}

.dj-style-royal .ob-djname { color: #ffd700 !important; }
.dj-style-royal .ob-djprog { color: #b388ff !important; }

/* ----- Forest ----- */
.dj-style-forest .dj-profile {
    background: linear-gradient(90deg, #1b4332, #2d6a4f, #40916c);
    background-size: 300% 100%;
    animation: djBgMove 9s ease infinite;
}

.dj-style-forest .dj-profile-img {
    border-color: #95d5b2;
    --dj-glow: rgba(64, 145, 108, 0.8);
    animation: djPulseGlow 2s ease-in-out infinite;
}

.dj-style-forest .ob-djname { color: #d8f3dc !important; }
.dj-style-forest .ob-djprog { color: #95d5b2 !important; }

/* ----- Disco Fever (rotating lights) ----- */
.dj-style-disco .dj-profile {
    background: linear-gradient(90deg, #f093fb, #f5576c, #4facfe, #43e97b, #f093fb);
    background-size: 300% 100%;
    animation: djBgMove 4s linear infinite;
}

.dj-style-disco .dj-image-wrapper::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, #fff 30deg, transparent 90deg, #ffc107 210deg, transparent 270deg);
    z-index: 0;
    animation: djSpinRing 2.5s linear infinite;
}

.dj-style-disco .ob-djname { color: #fff !important; text-shadow: 0 0 12px rgba(255, 255, 255, 0.8); }

/* ----- Tropical ----- */
.dj-style-tropical .dj-profile {
    background: linear-gradient(90deg, #00796b, #00c853, #64dd17);
    background-size: 300% 100%;
    animation: djBgMove 8s ease infinite;
}

.dj-style-tropical .dj-profile-img {
    border-color: #aeea00;
    --dj-glow: rgba(0, 200, 83, 0.7);
    animation: djPulseGlow 2.2s ease-in-out infinite;
}

.dj-style-tropical .ob-djname { color: #b2ff59 !important; }
.dj-style-tropical .ob-djprog { color: #e0f7fa !important; }

/* ----- Candy Land (rotating pinwheel) ----- */
.dj-style-candy .dj-profile {
    background: linear-gradient(135deg, #f8bbd0, #b39ddb, #f8bbd0);
    background-size: 300% 300%;
    animation: djBgMove 6s ease infinite;
}

.dj-style-candy .dj-image-wrapper::before {
    content: "";
    position: absolute;
    top: -7px;
    left: -7px;
    right: -7px;
    bottom: -7px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff80ab, #7c4dff, #ff80ab);
    z-index: 0;
    animation: djSpinRing 3.5s linear infinite;
}

.dj-style-candy .ob-djname { color: #880e4f !important; }
.dj-style-candy .ob-djprog { color: #7c4dff !important; }

/* ----- Cyber Grid (scan line) ----- */
.dj-style-cyber .dj-profile {
    background-color: #00101f;
    background-image: linear-gradient(rgba(0, 229, 255, 0.14) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 229, 255, 0.14) 1px, transparent 1px);
    background-size: 24px 24px;
}

.dj-style-cyber .dj-profile::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    animation: djScan 2s linear infinite;
    pointer-events: none;
}

.dj-style-cyber .dj-profile-img {
    border: 4px solid #00e5ff;
    border-radius: 4px;
    --dj-glow: rgba(0, 229, 255, 0.8);
    animation: djPulseGlow 1.9s ease-in-out infinite;
}

.dj-style-cyber .ob-djname { color: #00e5ff !important; text-shadow: 0 0 10px rgba(0, 229, 255, 0.8); }
.dj-style-cyber .ob-djprog { color: #ff2ef4 !important; }

/* ----- Emerald ----- */
.dj-style-emerald .dj-profile {
    background: linear-gradient(90deg, #004d40, #009688, #004d40);
    background-size: 300% 100%;
    animation: djBgMove 9s ease infinite;
}

.dj-style-emerald .dj-profile-img {
    border-color: #26a69a;
    --dj-glow: rgba(38, 166, 154, 0.8);
    animation: djPulseGlow 2s ease-in-out infinite;
}

.dj-style-emerald .ob-djname { color: #b2dfdb !important; }
.dj-style-emerald .ob-djprog { color: #80cbc4 !important; }

/* ----- Crimson ----- */
.dj-style-crimson .dj-profile {
    background: linear-gradient(180deg, #4a0000, #1a0000);
}

.dj-style-crimson .dj-profile-img {
    border-color: #e63946;
    --dj-glow: rgba(230, 57, 70, 0.85);
    animation: djPulseGlow 1.7s ease-in-out infinite;
}

.dj-style-crimson .ob-djname { color: #ff5252 !important; text-shadow: 0 0 12px rgba(255, 82, 82, 0.8); }
.dj-style-crimson .ob-djprog { color: #e57373 !important; }

/* ===== DJ Photo Effects (distinct animation per style) ===== */
@keyframes djPhotoBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes djPhotoBreatheFast {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}

@keyframes djPhotoBreatheSlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes djPhotoBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes djPhotoRock {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes djPhotoHue {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}

@keyframes djPhotoFlicker {
    0%, 100% { opacity: 1; }
    20% { opacity: 0.82; }
    40% { opacity: 0.95; }
    60% { opacity: 0.78; }
    80% { opacity: 1; }
}

@keyframes djPhotoHeartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.06); }
    40% { transform: scale(1); }
    60% { transform: scale(1.08); }
    75% { transform: scale(1); }
}

.dj-style-classic .dj-profile-img { animation: djPhotoBreathe 4s ease-in-out infinite; }
.dj-style-glass .dj-profile-img { animation: djPhotoBreathe 5s ease-in-out infinite; }
.dj-style-neon .dj-profile-img { animation: djPhotoHue 6s linear infinite; }
.dj-style-retro .dj-profile-img { animation: djPulseGlow 2.5s ease-in-out infinite, djPhotoRock 3s ease-in-out infinite; }
.dj-style-golden .dj-profile-img { animation: djPulseGlow 2.5s ease-in-out infinite, djPhotoBreathe 4.5s ease-in-out infinite; }
.dj-style-dark .dj-profile-img { animation: djPhotoBob 3.5s ease-in-out infinite; }
.dj-style-gradient .dj-profile-img { animation: djPulseGlow 2s ease-in-out infinite, djPhotoBreathe 3.5s ease-in-out infinite; }
.dj-style-vapor .dj-profile-img { animation: djPulseGlow 2.2s ease-in-out infinite, djPhotoBob 3.5s ease-in-out infinite; }
.dj-style-hologram .dj-profile-img { animation: djPhotoHue 5s linear infinite; }
.dj-style-ocean .dj-profile-img { animation: djPulseGlow 2.2s ease-in-out infinite, djPhotoBob 4s ease-in-out infinite; }
.dj-style-sunset .dj-profile-img { animation: djPulseGlow 2.2s ease-in-out infinite, djPhotoBreathe 4s ease-in-out infinite; }
.dj-style-midnight .dj-profile-img { animation: djPulseGlow 2.4s ease-in-out infinite, djPhotoBreatheSlow 6s ease-in-out infinite; }
.dj-style-aurora .dj-profile-img { animation: djPulseGlow 2.3s ease-in-out infinite, djPhotoHue 8s linear infinite; }
.dj-style-coffee .dj-profile-img { animation: djPulseGlow 2.6s ease-in-out infinite, djPhotoBreatheSlow 6s ease-in-out infinite; }
.dj-style-matrix .dj-profile-img { animation: djPulseGlow 1.8s ease-in-out infinite, djPhotoFlicker 2s linear infinite; }
.dj-style-space .dj-profile-img { animation: djPulseGlow 2.4s ease-in-out infinite, djPhotoBreathe 5s ease-in-out infinite; }
.dj-style-mono .dj-profile-img { animation: djPulseGlow 3s ease-in-out infinite, djPhotoBreatheSlow 7s ease-in-out infinite; }
.dj-style-flat .dj-profile-img { animation: djPulseGlow 2.8s ease-in-out infinite, djPhotoBreathe 5s ease-in-out infinite; }
.dj-style-light .dj-profile-img { animation: djPhotoBob 4s ease-in-out infinite; }
.dj-style-bubblegum .dj-profile-img { animation: djPulseGlow 2s ease-in-out infinite, djPhotoBreatheFast 2.5s ease-in-out infinite; }
.dj-style-fire .dj-profile-img { animation: djPulseGlow 1.6s ease-in-out infinite, djPhotoFlicker 1.5s linear infinite; }
.dj-style-ice .dj-profile-img { animation: djPulseGlow 2.1s ease-in-out infinite, djPhotoBreathe 4s ease-in-out infinite; }
.dj-style-royal .dj-profile-img { animation: djPulseGlow 2.5s ease-in-out infinite, djPhotoBreathe 4.5s ease-in-out infinite; }
.dj-style-forest .dj-profile-img { animation: djPulseGlow 2s ease-in-out infinite, djPhotoBreatheSlow 6s ease-in-out infinite; }
.dj-style-disco .dj-profile-img { animation: djPhotoRock 2.5s ease-in-out infinite; }
.dj-style-tropical .dj-profile-img { animation: djPulseGlow 2.2s ease-in-out infinite, djPhotoBob 4s ease-in-out infinite; }
.dj-style-candy .dj-profile-img { animation: djPhotoBreatheFast 3s ease-in-out infinite; }
.dj-style-cyber .dj-profile-img { animation: djPulseGlow 1.9s ease-in-out infinite, djPhotoFlicker 2.5s linear infinite; }
.dj-style-emerald .dj-profile-img { animation: djPulseGlow 2s ease-in-out infinite, djPhotoBreathe 5s ease-in-out infinite; }
.dj-style-crimson .dj-profile-img { animation: djPulseGlow 1.7s ease-in-out infinite, djPhotoHeartbeat 1.5s ease-in-out infinite; }

/* ===== Extra DJ Card Styles (30 more) ===== */
@keyframes djStripes {
    to { background-position: 80px 0; }
}

@keyframes djPhotoSway {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-5px); }
}

/* ----- Rose Gold ----- */
.dj-style-rose .dj-profile {
    background: linear-gradient(135deg, #e8b4b8, #f4c6c6, #d8a7a0);
    background-size: 200% 200%;
    animation: djBgMove 8s ease infinite;
}
.dj-style-rose .dj-profile-img {
    border: 4px solid #e8b4b8;
    --dj-glow: rgba(216, 167, 160, 0.8);
    animation: djPulseGlow 2.5s ease-in-out infinite, djPhotoBreathe 4.5s ease-in-out infinite;
}
.dj-style-rose .ob-djname { color: #6d3b3b !important; }
.dj-style-rose .ob-djprog { color: #a25b5b !important; }

/* ----- Cherry Blossom (falling petals) ----- */
.dj-style-sakura .dj-profile {
    background: linear-gradient(180deg, #fdeff2, #f9c7d0);
}
.dj-style-sakura .dj-profile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(3px 3px at 15% 20%, #f06292, transparent 80%),
                radial-gradient(3px 3px at 50% 45%, #f48fb1, transparent 80%),
                radial-gradient(3px 3px at 80% 25%, #f06292, transparent 80%),
                radial-gradient(3px 3px at 65% 75%, #f8bbd0, transparent 80%),
                radial-gradient(3px 3px at 30% 65%, #f48fb1, transparent 80%);
    background-size: 120px 120px;
    opacity: 0.5;
    animation: djTwinkle 3.5s ease-in-out infinite;
    pointer-events: none;
}
.dj-style-sakura .dj-profile-img {
    border: 4px solid #f06292;
    --dj-glow: rgba(240, 98, 146, 0.7);
    animation: djPulseGlow 2.2s ease-in-out infinite, djPhotoBreathe 4s ease-in-out infinite;
}
.dj-style-sakura .ob-djname { color: #ad1457 !important; }
.dj-style-sakura .ob-djprog { color: #c2185b !important; }

/* ----- Lavender ----- */
.dj-style-lavender .dj-profile {
    background: linear-gradient(135deg, #b39ddb, #9575cd, #7e57c2);
    background-size: 200% 200%;
    animation: djBgMove 9s ease infinite;
}
.dj-style-lavender .dj-profile-img {
    border: 4px solid #d1c4e9;
    --dj-glow: rgba(149, 117, 205, 0.8);
    animation: djPulseGlow 2.3s ease-in-out infinite, djPhotoBreathe 5s ease-in-out infinite;
}
.dj-style-lavender .ob-djname { color: #311b92 !important; }
.dj-style-lavender .ob-djprog { color: #4527a0 !important; }

/* ----- Mint ----- */
.dj-style-mint .dj-profile {
    background: linear-gradient(135deg, #b2dfdb, #80cbc4, #4db6ac);
    background-size: 200% 200%;
    animation: djBgMove 8s ease infinite;
}
.dj-style-mint .dj-profile-img {
    border: 4px solid #e0f2f1;
    --dj-glow: rgba(77, 182, 172, 0.8);
    animation: djPulseGlow 2s ease-in-out infinite, djPhotoBob 4s ease-in-out infinite;
}
.dj-style-mint .ob-djname { color: #004d40 !important; }
.dj-style-mint .ob-djprog { color: #00695c !important; }

/* ----- Peach ----- */
.dj-style-peach .dj-profile {
    background: linear-gradient(135deg, #ffe0b2, #ffcc80, #ffb74d);
    background-size: 200% 200%;
    animation: djBgMove 8s ease infinite;
}
.dj-style-peach .dj-profile-img {
    border: 4px solid #ffe0b2;
    --dj-glow: rgba(255, 183, 77, 0.8);
    animation: djPulseGlow 2.2s ease-in-out infinite, djPhotoBreathe 4s ease-in-out infinite;
}
.dj-style-peach .ob-djname { color: #e65100 !important; }
.dj-style-peach .ob-djprog { color: #ef6c00 !important; }

/* ----- Chocolate ----- */
.dj-style-chocolate .dj-profile {
    background: linear-gradient(180deg, #4e342e, #3e2723);
}
.dj-style-chocolate .dj-profile-img {
    border: 4px solid #8d6e63;
    --dj-glow: rgba(141, 110, 99, 0.7);
    animation: djPulseGlow 2.6s ease-in-out infinite, djPhotoBreatheSlow 6s ease-in-out infinite;
}
.dj-style-chocolate .ob-djname { color: #d7ccc8 !important; }
.dj-style-chocolate .ob-djprog { color: #a1887f !important; }

/* ----- Lemon Zest ----- */
.dj-style-lemon .dj-profile {
    background: linear-gradient(135deg, #fff9c4, #ffee58, #ffd54f);
    background-size: 200% 200%;
    animation: djBgMove 6s ease infinite;
}
.dj-style-lemon .dj-profile-img {
    border: 4px solid #fbc02d;
    --dj-glow: rgba(255, 238, 88, 0.9);
    animation: djPulseGlow 1.8s ease-in-out infinite, djPhotoBob 3.5s ease-in-out infinite;
}
.dj-style-lemon .ob-djname { color: #f57f17 !important; }
.dj-style-lemon .ob-djprog { color: #f9a825 !important; }

/* ----- Tangerine ----- */
.dj-style-tangerine .dj-profile {
    background: linear-gradient(135deg, #ffb300, #ff6f00, #e65100);
    background-size: 200% 200%;
    animation: djBgMove 7s ease infinite;
}
.dj-style-tangerine .dj-profile-img {
    border: 4px solid #ffd180;
    --dj-glow: rgba(255, 111, 0, 0.8);
    animation: djPulseGlow 2s ease-in-out infinite, djPhotoRock 3.5s ease-in-out infinite;
}
.dj-style-tangerine .ob-djname { color: #fff3e0 !important; }
.dj-style-tangerine .ob-djprog { color: #ffe0b2 !important; }

/* ----- Grape ----- */
.dj-style-grape .dj-profile {
    background: radial-gradient(circle at 50% 25%, #4a148c, #12005e);
}
.dj-style-grape .dj-profile-img {
    border: 4px solid #b388ff;
    --dj-glow: rgba(179, 136, 255, 0.8);
    animation: djPulseGlow 2.2s ease-in-out infinite, djPhotoBreathe 4.5s ease-in-out infinite;
}
.dj-style-grape .ob-djname { color: #d1c4e9 !important; }
.dj-style-grape .ob-djprog { color: #b388ff !important; }

/* ----- Berry ----- */
.dj-style-berry .dj-profile {
    background: linear-gradient(135deg, #d81b60, #880e4f);
    background-size: 200% 200%;
    animation: djBgMove 7s ease infinite;
}
.dj-style-berry .dj-profile-img {
    border: 4px solid #f48fb1;
    --dj-glow: rgba(216, 27, 96, 0.85);
    animation: djPulseGlow 1.8s ease-in-out infinite, djPhotoHeartbeat 1.8s ease-in-out infinite;
}
.dj-style-berry .ob-djname { color: #fce4ec !important; }

/* ----- Seafoam ----- */
.dj-style-seafoam .dj-profile {
    background: linear-gradient(135deg, #a7ffeb, #64ffda, #1de9b6);
    background-size: 200% 200%;
    animation: djBgMove 8s ease infinite;
}
.dj-style-seafoam .dj-profile-img {
    border: 4px solid #e0f7fa;
    --dj-glow: rgba(29, 233, 182, 0.8);
    animation: djPulseGlow 2s ease-in-out infinite, djPhotoBob 4s ease-in-out infinite;
}
.dj-style-seafoam .ob-djname { color: #00695c !important; }
.dj-style-seafoam .ob-djprog { color: #00897b !important; }

/* ----- Lagoon ----- */
.dj-style-lagoon .dj-profile {
    background: linear-gradient(135deg, #006064, #00838f, #0097a7);
    background-size: 200% 200%;
    animation: djBgMove 9s ease infinite;
}
.dj-style-lagoon .dj-profile-img {
    border: 4px solid #80deea;
    --dj-glow: rgba(0, 151, 167, 0.8);
    animation: djPulseGlow 2.1s ease-in-out infinite, djPhotoBob 4.5s ease-in-out infinite;
}
.dj-style-lagoon .ob-djname { color: #e0f7fa !important; }
.dj-style-lagoon .ob-djprog { color: #80deea !important; }

/* ----- Glacier ----- */
.dj-style-glacier .dj-profile {
    background: linear-gradient(180deg, #e0f7fa, #b3e5fc, #e1f5fe);
}
.dj-style-glacier .dj-profile-img {
    border: 4px solid #81d4fa;
    box-shadow: 0 0 25px rgba(129, 212, 250, 0.5);
    animation: djPhotoBreatheSlow 6s ease-in-out infinite;
}
.dj-style-glacier .ob-djname { color: #01579b !important; }
.dj-style-glacier .ob-djprog { color: #0288d1 !important; }

/* ----- Steel / Industrial ----- */
.dj-style-steel .dj-profile {
    background: linear-gradient(180deg, #616161, #37474f);
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 22px), linear-gradient(#616161, #37474f);
    background-size: 22px 100%, cover;
}
.dj-style-steel .dj-profile-img {
    border: 4px solid #9e9e9e;
    --dj-glow: rgba(158, 158, 158, 0.6);
    animation: djPulseGlow 2.8s ease-in-out infinite, djPhotoRock 5s ease-in-out infinite;
}
.dj-style-steel .ob-djname { color: #eceff1 !important; }
.dj-style-steel .ob-djprog { color: #b0bec5 !important; }

/* ----- Graphite ----- */
.dj-style-graphite .dj-profile {
    background: linear-gradient(180deg, #2f2f2f, #1a1a1a);
}
.dj-style-graphite .dj-profile-img {
    border: 4px solid #757575;
    --dj-glow: rgba(117, 117, 117, 0.6);
    animation: djPulseGlow 3s ease-in-out infinite, djPhotoBreathe 5s ease-in-out infinite;
}
.dj-style-graphite .ob-djname { color: #f5f5f5 !important; }
.dj-style-graphite .ob-djprog { color: #bdbdbd !important; }

/* ----- Obsidian ----- */
.dj-style-obsidian .dj-profile {
    background: linear-gradient(180deg, #0a0a0f, #000);
}
.dj-style-obsidian .dj-profile-img {
    border: 4px solid #424242;
    --dj-glow: rgba(66, 66, 66, 0.6);
    animation: djPulseGlow 3.2s ease-in-out infinite, djPhotoBreatheSlow 7s ease-in-out infinite;
}
.dj-style-obsidian .ob-djname { color: #eee !important; text-shadow: 0 0 8px rgba(255,255,255,0.3); }

/* ----- Bronze ----- */
.dj-style-bronze .dj-profile {
    background: linear-gradient(180deg, #6d4c41, #4e342e);
}
.dj-style-bronze .dj-profile-img {
    border: 4px solid #cd7f32;
    --dj-glow: rgba(205, 127, 50, 0.8);
    animation: djPulseGlow 2.4s ease-in-out infinite, djPhotoBreathe 4.5s ease-in-out infinite;
}
.dj-style-bronze .ob-djname { color: #ffcc80 !important; }
.dj-style-bronze .ob-djprog { color: #d7a86e !important; }

/* ----- Platinum ----- */
.dj-style-platinum .dj-profile {
    background: linear-gradient(180deg, #eceff1, #cfd8dc);
}
.dj-style-platinum .dj-profile-img {
    border: 4px solid #fafafa;
    box-shadow: 0 0 30px rgba(236, 239, 241, 0.6);
    --dj-glow: rgba(236, 239, 241, 0.8);
    animation: djPulseGlow 2.5s ease-in-out infinite, djPhotoBreathe 5s ease-in-out infinite;
}
.dj-style-platinum .ob-djname { color: #37474f !important; }
.dj-style-platinum .ob-djprog { color: #607d8b !important; }

/* ----- Silver ----- */
.dj-style-silver .dj-profile {
    background: linear-gradient(135deg, #b0bec5, #90a4ae, #cfd8dc);
    background-size: 200% 200%;
    animation: djBgMove 8s ease infinite;
}
.dj-style-silver .dj-profile-img {
    border: 4px solid #eceff1;
    --dj-glow: rgba(144, 164, 174, 0.8);
    animation: djPulseGlow 2.4s ease-in-out infinite, djPhotoBob 4s ease-in-out infinite;
}
.dj-style-silver .ob-djname { color: #263238 !important; }
.dj-style-silver .ob-djprog { color: #455a64 !important; }

/* ----- Copper ----- */
.dj-style-copper .dj-profile {
    background: linear-gradient(180deg, #8d6e63, #5d4037);
}
.dj-style-copper .dj-profile-img {
    border: 4px solid #b87333;
    --dj-glow: rgba(184, 115, 51, 0.8);
    animation: djPulseGlow 2.3s ease-in-out infinite, djPhotoBreathe 4.5s ease-in-out infinite;
}
.dj-style-copper .ob-djname { color: #ffe0b2 !important; }
.dj-style-copper .ob-djprog { color: #d7a86e !important; }

/* ----- Bumblebee (stripes) ----- */
.dj-style-bumblebee .dj-profile {
    background: repeating-linear-gradient(45deg, #3d3d3d 0 20px, #f5c518 20px 40px);
    animation: djStripes 6s linear infinite;
}
.dj-style-bumblebee .dj-profile-img {
    border: 4px solid #f5c518;
    --dj-glow: rgba(245, 197, 24, 0.9);
    animation: djPulseGlow 1.9s ease-in-out infinite, djPhotoRock 3s ease-in-out infinite;
}
.dj-style-bumblebee .ob-djname { color: #fff !important; text-shadow: 0 0 8px rgba(0,0,0,0.8); }
.dj-style-bumblebee .ob-djprog { color: #f5c518 !important; }

/* ----- Watermelon ----- */
.dj-style-watermelon .dj-profile {
    background: linear-gradient(180deg, #c62828, #e53935, #2e7d32);
}
.dj-style-watermelon .dj-profile-img {
    border: 4px solid #66bb6a;
    --dj-glow: rgba(198, 40, 40, 0.8);
    animation: djPulseGlow 2s ease-in-out infinite, djPhotoBob 4s ease-in-out infinite;
}
.dj-style-watermelon .ob-djname { color: #ffcdd2 !important; }
.dj-style-watermelon .ob-djprog { color: #a5d6a7 !important; }

/* ----- Kiwi ----- */
.dj-style-kiwi .dj-profile {
    background: linear-gradient(135deg, #8bc34a, #689f38, #33691e);
    background-size: 200% 200%;
    animation: djBgMove 7s ease infinite;
}
.dj-style-kiwi .dj-profile-img {
    border: 4px solid #dcedc8;
    --dj-glow: rgba(139, 195, 74, 0.8);
    animation: djPulseGlow 1.9s ease-in-out infinite, djPhotoBreatheFast 3s ease-in-out infinite;
}
.dj-style-kiwi .ob-djname { color: #f1f8e9 !important; }
.dj-style-kiwi .ob-djprog { color: #dcedc8 !important; }

/* ----- Blueberry ----- */
.dj-style-blueberry .dj-profile {
    background: linear-gradient(180deg, #283593, #1a237e);
}
.dj-style-blueberry .dj-profile-img {
    border: 4px solid #7986cb;
    --dj-glow: rgba(121, 134, 203, 0.8);
    animation: djPulseGlow 2.2s ease-in-out infinite, djPhotoBreathe 5s ease-in-out infinite;
}
.dj-style-blueberry .ob-djname { color: #c5cae9 !important; }
.dj-style-blueberry .ob-djprog { color: #9fa8da !important; }

/* ----- Mojito ----- */
.dj-style-mojito .dj-profile {
    background: linear-gradient(135deg, #dce775, #aed581, #43a047);
    background-size: 200% 200%;
    animation: djBgMove 8s ease infinite;
}
.dj-style-mojito .dj-profile-img {
    border: 4px solid #dcedc8;
    --dj-glow: rgba(174, 213, 129, 0.9);
    animation: djPulseGlow 2.1s ease-in-out infinite, djPhotoBob 4.5s ease-in-out infinite;
}
.dj-style-mojito .ob-djname { color: #1b5e20 !important; }
.dj-style-mojito .ob-djprog { color: #2e7d32 !important; }

/* ----- Soap Bubbles ----- */
.dj-style-bubble .dj-profile {
    background-color: #1a2a3a;
}
.dj-style-bubble .dj-profile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(6px 6px at 20% 25%, rgba(255,255,255,0.5), transparent 70%),
                radial-gradient(4px 4px at 60% 40%, rgba(255,255,255,0.4), transparent 70%),
                radial-gradient(7px 7px at 80% 70%, rgba(255,255,255,0.45), transparent 70%),
                radial-gradient(5px 5px at 35% 80%, rgba(255,255,255,0.35), transparent 70%);
    background-size: 160px 160px;
    opacity: 0.5;
    animation: djTwinkle 3s ease-in-out infinite;
    pointer-events: none;
}
.dj-style-bubble .dj-profile-img {
    border: 4px solid rgba(255, 255, 255, 0.6);
    --dj-glow: rgba(255, 255, 255, 0.5);
    animation: djPulseGlow 2.4s ease-in-out infinite, djPhotoBreathe 4.5s ease-in-out infinite;
}
.dj-style-bubble .ob-djname { color: #fff !important; }
.dj-style-bubble .ob-djprog { color: #80deea !important; }

/* ----- Prism ----- */
.dj-style-prism .dj-profile {
    background: linear-gradient(90deg, #ff1744, #ff9100, #ffea00, #00e676, #2979ff, #d500f9, #ff1744);
    background-size: 300% 100%;
    animation: djBgMove 5s linear infinite;
}
.dj-style-prism .dj-profile-img {
    border: 4px solid transparent;
    background: linear-gradient(#1b1b1b, #1b1b1b) padding-box, linear-gradient(90deg, #ff1744, #ffea00, #00e676, #2979ff, #d500f9) border-box;
    animation: djPhotoHue 6s linear infinite;
}
.dj-style-prism .ob-djname { color: #fff !important; text-shadow: 0 0 12px rgba(255,255,255,0.8); }

/* ----- Pixel / 8-bit ----- */
.dj-style-pixel .dj-profile {
    background-color: #101820;
    background-image: linear-gradient(rgba(57, 255, 20, 0.25) 2px, transparent 2px),
                      linear-gradient(90deg, rgba(57, 255, 20, 0.25) 2px, transparent 2px);
    background-size: 12px 12px;
}
.dj-style-pixel .dj-profile-img {
    border: 4px solid #39ff14;
    border-radius: 0;
    image-rendering: pixelated;
    --dj-glow: rgba(57, 255, 20, 0.7);
    animation: djPulseGlow 1.8s ease-in-out infinite, djPhotoFlicker 2.2s linear infinite;
}
.dj-style-pixel .ob-djname { color: #39ff14 !important; text-shadow: 0 0 8px rgba(57, 255, 20, 0.8); }
.dj-style-pixel .ob-djprog { color: #76ff03 !important; }

/* ----- Glitch ----- */
.dj-style-glitch .dj-profile {
    background: linear-gradient(180deg, #0f0f1a, #1a0b2e);
}
.dj-style-glitch .dj-profile::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ff2ef4, #00e5ff, transparent);
    animation: djScan 1.8s linear infinite;
    pointer-events: none;
}
.dj-style-glitch .dj-profile-img {
    border: 4px solid #ff2ef4;
    --dj-glow: rgba(255, 46, 244, 0.8);
    animation: djPulseGlow 1.6s ease-in-out infinite, djPhotoFlicker 1.8s linear infinite, djPhotoRock 4s ease-in-out infinite;
}
.dj-style-glitch .ob-djname {
    color: #fff !important;
    text-shadow: 2px 0 #ff2ef4, -2px 0 #00e5ff;
}
.dj-style-glitch .ob-djprog { color: #00e5ff !important; }

/* ----- Comet (orbiting ring) ----- */
.dj-style-comet .dj-profile {
    background: radial-gradient(circle at 50% 30%, #0b1d3a, #040a18);
}
.dj-style-comet .dj-image-wrapper::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, #7ec8ff 50deg, #ffffff 80deg, transparent 130deg);
    animation: djSpinRing 2.8s linear infinite;
}
.dj-style-comet .dj-profile-img {
    border: 4px solid #64b5f6;
    --dj-glow: rgba(100, 181, 246, 0.8);
    animation: djPulseGlow 2.2s ease-in-out infinite, djPhotoBreatheSlow 6s ease-in-out infinite;
}
.dj-style-comet .ob-djname { color: #bfe3ff !important; }
.dj-style-comet .ob-djprog { color: #64b5f6 !important; }

/* ===== Unique DJ Photo Effect (one-of-a-kind animation per style) ===== */
@keyframes djImgClassic { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes djImgGlass { 0%,100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(1.03) rotate(1deg); opacity: 0.9; } }
@keyframes djImgNeon { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
@keyframes djImgRetro { 0%,100% { transform: rotate(-3deg); filter: hue-rotate(0deg); } 50% { transform: rotate(3deg); filter: hue-rotate(90deg); } }
@keyframes djImgGolden { 0%,100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.04); filter: brightness(1.35); } }
@keyframes djImgDark { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes djImgGradient { 0%,100% { transform: scale(1); filter: hue-rotate(0deg); } 50% { transform: scale(1.06); filter: hue-rotate(180deg); } }
@keyframes djImgVapor { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes djImgHologram { 0%,100% { filter: hue-rotate(0deg) brightness(1); } 25% { filter: hue-rotate(120deg) brightness(1.2); } 50% { filter: hue-rotate(240deg) brightness(0.9); } 75% { filter: hue-rotate(300deg) brightness(1.15); } }
@keyframes djImgOcean { 0%,100% { transform: translateY(0); } 25% { transform: translateY(-6px); } 50% { transform: translateY(0); } 75% { transform: translateY(-3px); } }
@keyframes djImgSunset { 0%,100% { transform: scale(1); filter: saturate(1); } 50% { transform: scale(1.05); filter: saturate(1.6); } }
@keyframes djImgMidnight { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.04); opacity: 0.85; } }
@keyframes djImgAurora { 0%,100% { transform: rotate(0deg); filter: hue-rotate(0deg); } 33% { transform: rotate(2deg); filter: hue-rotate(120deg); } 66% { transform: rotate(-2deg); filter: hue-rotate(240deg); } }
@keyframes djImgCoffee { 0%,100% { transform: translateY(0); filter: sepia(0.2); } 50% { transform: translateY(-4px); filter: sepia(0.4); } }
@keyframes djImgMatrix { 0%,100% { opacity: 1; } 30% { opacity: 0.7; } 45% { opacity: 0.95; } 60% { opacity: 0.75; } 80% { opacity: 1; } }
@keyframes djImgSpace { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes djImgMono { 0%,100% { transform: scale(1); filter: contrast(1); } 50% { transform: scale(1.06); filter: contrast(1.2); } }
@keyframes djImgFlat { 0%,100% { transform: scale(0.99); } 50% { transform: scale(1.03); } }
@keyframes djImgLight { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes djImgBubblegum { 0%,100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-8px) scale(1.05); } 60% { transform: translateY(-2px) scale(0.98); } }
@keyframes djImgFire { 0%,100% { opacity: 1; filter: brightness(1); } 25% { opacity: 0.8; filter: brightness(1.4); } 50% { opacity: 1; filter: brightness(1); } 75% { opacity: 0.85; filter: brightness(1.3); } }
@keyframes djImgIce { 0%,100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.04); filter: brightness(1.25) saturate(1.4); } }
@keyframes djImgRoyal { 0%,100% { transform: translateY(0); filter: brightness(1); } 50% { transform: translateY(-5px); filter: brightness(1.25); } }
@keyframes djImgForest { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes djImgDisco { 0%,100% { transform: rotate(-5deg); filter: hue-rotate(0deg); } 25% { transform: rotate(5deg); filter: hue-rotate(90deg); } 50% { transform: rotate(-5deg); filter: hue-rotate(180deg); } 75% { transform: rotate(5deg); filter: hue-rotate(270deg); } }
@keyframes djImgTropical { 0%,100% { transform: translateY(0) rotate(-2deg); filter: saturate(1); } 50% { transform: translateY(-6px) rotate(2deg); filter: saturate(1.5); } }
@keyframes djImgCandy { 0%,100% { transform: scale(1); filter: hue-rotate(0deg); } 30% { transform: scale(1.07); filter: hue-rotate(120deg); } 60% { transform: scale(0.97); filter: hue-rotate(240deg); } }
@keyframes djImgCyber { 0%,100% { opacity: 1; transform: translateX(0); } 20% { opacity: 0.8; transform: translateX(-2px); } 40% { opacity: 1; transform: translateX(2px); } 60% { opacity: 0.85; transform: translateX(-1px); } }
@keyframes djImgEmerald { 0%,100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.05); filter: brightness(1.2); } }
@keyframes djImgCrimson { 0%,100% { transform: scale(1); } 25% { transform: scale(1.06); } 40% { transform: scale(1); } 60% { transform: scale(1.08); } 75% { transform: scale(1); } }
@keyframes djImgRose { 0%,100% { transform: scale(1); filter: saturate(1); } 50% { transform: scale(1.04); filter: saturate(1.3); } }
@keyframes djImgSakura { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes djImgLavender { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes djImgMint { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-6px); } 70% { transform: translateY(-2px); } }
@keyframes djImgPeach { 0%,100% { transform: scale(1); filter: sepia(0.1); } 50% { transform: scale(1.05); filter: sepia(0.3); } }
@keyframes djImgChocolate { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes djImgLemon { 0%,100% { transform: translateY(0) scale(1); } 25% { transform: translateY(-9px) scale(1.05); } 50% { transform: translateY(0) scale(1); } 75% { transform: translateY(-4px); } }
@keyframes djImgTangerine { 0%,100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-5px) rotate(-4deg); } 50% { transform: translateY(0) rotate(4deg); } 75% { transform: translateY(-3px) rotate(-2deg); } }
@keyframes djImgGrape { 0%,100% { transform: scale(1); filter: brightness(0.9); } 50% { transform: scale(1.05); filter: brightness(1.1); } }
@keyframes djImgBerry { 0%,100% { transform: scale(1); } 20% { transform: scale(1.07); } 35% { transform: scale(1); } 55% { transform: scale(1.09); } 70% { transform: scale(1); } }
@keyframes djImgSeafoam { 0%,100% { transform: translateY(0); filter: saturate(1); } 50% { transform: translateY(-5px); filter: saturate(1.4); } }
@keyframes djImgLagoon { 0%,100% { transform: translateY(0) rotate(-2deg); } 33% { transform: translateY(-4px) rotate(0deg); } 66% { transform: translateY(2px) rotate(2deg); } }
@keyframes djImgGlacier { 0%,100% { transform: scale(1); filter: brightness(1.1); } 50% { transform: scale(1.03); filter: brightness(1.3); } }
@keyframes djImgSteel { 0%,100% { transform: rotate(0deg) skewX(0deg); } 50% { transform: rotate(3deg) skewX(2deg); } }
@keyframes djImgGraphite { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes djImgObsidian { 0%,100% { transform: scale(1); filter: brightness(0.85); } 50% { transform: scale(1.03); filter: brightness(1.05); } }
@keyframes djImgBronze { 0%,100% { transform: scale(1); filter: sepia(0.15); } 50% { transform: scale(1.05); filter: sepia(0.35); } }
@keyframes djImgPlatinum { 0%,100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.03); filter: brightness(1.35); } }
@keyframes djImgSilver { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes djImgCopper { 0%,100% { transform: scale(1); filter: sepia(0.2) saturate(1.1); } 50% { transform: scale(1.04); filter: sepia(0.4) saturate(1.3); } }
@keyframes djImgBumblebee { 0%,100% { transform: translate(0, 0); } 25% { transform: translate(2px, -2px); } 50% { transform: translate(-2px, 2px); } 75% { transform: translate(2px, 2px); } }
@keyframes djImgWatermelon { 0%,100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-8px) scale(1.06); } 60% { transform: translateY(-3px) scale(0.98); } }
@keyframes djImgKiwi { 0%,100% { transform: scale(1); filter: saturate(1); } 40% { transform: scale(1.07); filter: saturate(1.6); } 70% { transform: scale(0.97); } }
@keyframes djImgBlueberry { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes djImgMojito { 0%,100% { transform: translateY(0) rotate(-2deg); filter: saturate(1); } 50% { transform: translateY(-4px) rotate(2deg); filter: saturate(1.4); } }
@keyframes djImgBubble { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-8px); opacity: 0.8; } }
@keyframes djImgPrism { 0%,100% { transform: scale(1); filter: hue-rotate(0deg); } 50% { transform: scale(1.04); filter: hue-rotate(180deg); } }
@keyframes djImgPixel { 0%,100% { opacity: 1; transform: translateY(0); } 25% { opacity: 0.6; transform: translateY(-2px); } 50% { opacity: 1; transform: translateY(0); } 75% { opacity: 0.7; transform: translateY(2px); } }
@keyframes djImgGlitch { 0%,100% { transform: translate(0, 0); opacity: 1; } 20% { transform: translate(-3px, 2px); opacity: 0.85; } 40% { transform: translate(3px, -2px); opacity: 1; } 60% { transform: translate(-2px, -3px); opacity: 0.9; } 80% { transform: translate(2px, 3px); opacity: 1; } }
@keyframes djImgComet { 0%,100% { transform: scale(1); filter: brightness(1); } 30% { transform: scale(1.08); filter: brightness(1.3); } 60% { transform: scale(0.96); } }

.dj-style-classic .dj-profile-img { animation: djImgClassic 4s ease-in-out infinite; }
.dj-style-glass .dj-profile-img { animation: djImgGlass 4.5s ease-in-out infinite; }
.dj-style-neon .dj-profile-img { animation: djImgNeon 6s linear infinite; }
.dj-style-retro .dj-profile-img { animation: djImgRetro 3s ease-in-out infinite; }
.dj-style-golden .dj-profile-img { animation: djImgGolden 3.5s ease-in-out infinite; }
.dj-style-dark .dj-profile-img { animation: djImgDark 3.5s ease-in-out infinite; }
.dj-style-gradient .dj-profile-img { animation: djImgGradient 5s ease-in-out infinite; }
.dj-style-vapor .dj-profile-img { animation: djImgVapor 3.5s ease-in-out infinite; }
.dj-style-hologram .dj-profile-img { animation: djImgHologram 5s linear infinite; }
.dj-style-ocean .dj-profile-img { animation: djImgOcean 4s ease-in-out infinite; }
.dj-style-sunset .dj-profile-img { animation: djImgSunset 2.2s ease-in-out infinite; }
.dj-style-midnight .dj-profile-img { animation: djImgMidnight 3.5s ease-in-out infinite; }
.dj-style-aurora .dj-profile-img { animation: djImgAurora 8s ease-in-out infinite; }
.dj-style-coffee .dj-profile-img { animation: djImgCoffee 5s ease-in-out infinite; }
.dj-style-matrix .dj-profile-img { animation: djImgMatrix 2s linear infinite; }
.dj-style-space .dj-profile-img { animation: djImgSpace 12s linear infinite; }
.dj-style-mono .dj-profile-img { animation: djImgMono 4.5s ease-in-out infinite; }
.dj-style-flat .dj-profile-img { animation: djImgFlat 5s ease-in-out infinite; }
.dj-style-light .dj-profile-img { animation: djImgLight 4s ease-in-out infinite; }
.dj-style-bubblegum .dj-profile-img { animation: djImgBubblegum 2.5s ease-in-out infinite; }
.dj-style-fire .dj-profile-img { animation: djImgFire 1.6s linear infinite; }
.dj-style-ice .dj-profile-img { animation: djImgIce 2.1s ease-in-out infinite; }
.dj-style-royal .dj-profile-img { animation: djImgRoyal 3.2s ease-in-out infinite; }
.dj-style-forest .dj-profile-img { animation: djImgForest 6s ease-in-out infinite; }
.dj-style-disco .dj-profile-img { animation: djImgDisco 2.5s linear infinite; }
.dj-style-tropical .dj-profile-img { animation: djImgTropical 3s ease-in-out infinite; }
.dj-style-candy .dj-profile-img { animation: djImgCandy 2.8s ease-in-out infinite; }
.dj-style-cyber .dj-profile-img { animation: djImgCyber 1.9s linear infinite; }
.dj-style-emerald .dj-profile-img { animation: djImgEmerald 3.5s ease-in-out infinite; }
.dj-style-crimson .dj-profile-img { animation: djImgCrimson 1.5s ease-in-out infinite; }
.dj-style-rose .dj-profile-img { animation: djImgRose 3.2s ease-in-out infinite; }
.dj-style-sakura .dj-profile-img { animation: djImgSakura 3.5s ease-in-out infinite; }
.dj-style-lavender .dj-profile-img { animation: djImgLavender 4s ease-in-out infinite; }
.dj-style-mint .dj-profile-img { animation: djImgMint 3s ease-in-out infinite; }
.dj-style-peach .dj-profile-img { animation: djImgPeach 3.5s ease-in-out infinite; }
.dj-style-chocolate .dj-profile-img { animation: djImgChocolate 5s ease-in-out infinite; }
.dj-style-lemon .dj-profile-img { animation: djImgLemon 2.5s ease-in-out infinite; }
.dj-style-tangerine .dj-profile-img { animation: djImgTangerine 3s ease-in-out infinite; }
.dj-style-grape .dj-profile-img { animation: djImgGrape 4s ease-in-out infinite; }
.dj-style-berry .dj-profile-img { animation: djImgBerry 1.8s ease-in-out infinite; }
.dj-style-seafoam .dj-profile-img { animation: djImgSeafoam 3.2s ease-in-out infinite; }
.dj-style-lagoon .dj-profile-img { animation: djImgLagoon 4s ease-in-out infinite; }
.dj-style-glacier .dj-profile-img { animation: djImgGlacier 4.5s ease-in-out infinite; }
.dj-style-steel .dj-profile-img { animation: djImgSteel 3.5s ease-in-out infinite; }
.dj-style-graphite .dj-profile-img { animation: djImgGraphite 5s ease-in-out infinite; }
.dj-style-obsidian .dj-profile-img { animation: djImgObsidian 6s ease-in-out infinite; }
.dj-style-bronze .dj-profile-img { animation: djImgBronze 4s ease-in-out infinite; }
.dj-style-platinum .dj-profile-img { animation: djImgPlatinum 3s ease-in-out infinite; }
.dj-style-silver .dj-profile-img { animation: djImgSilver 5s ease-in-out infinite; }
.dj-style-copper .dj-profile-img { animation: djImgCopper 4.5s ease-in-out infinite; }
.dj-style-bumblebee .dj-profile-img { animation: djImgBumblebee 0.9s linear infinite; }
.dj-style-watermelon .dj-profile-img { animation: djImgWatermelon 2.5s ease-in-out infinite; }
.dj-style-kiwi .dj-profile-img { animation: djImgKiwi 2.5s ease-in-out infinite; }
.dj-style-blueberry .dj-profile-img { animation: djImgBlueberry 4s ease-in-out infinite; }
.dj-style-mojito .dj-profile-img { animation: djImgMojito 3.2s ease-in-out infinite; }
.dj-style-bubble .dj-profile-img { animation: djImgBubble 3.5s ease-in-out infinite; }
.dj-style-prism .dj-profile-img { animation: djImgPrism 5s ease-in-out infinite; }
.dj-style-pixel .dj-profile-img { animation: djImgPixel 2.2s steps(2, end) infinite; }
.dj-style-glitch .dj-profile-img { animation: djImgGlitch 1.6s steps(2, end) infinite; }
.dj-style-comet .dj-profile-img { animation: djImgComet 2.8s ease-in-out infinite; }

/* ===== Recent Tracks ===== */
.track-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.track-item.now {
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.4), rgba(230, 57, 70, 0.1));
    border-left: 3px solid #e63946;
    animation: pulse 2s ease infinite;
}

.track-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: rgba(230, 57, 70, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e63946;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
}

.track-item.now .track-icon {
    background: #e63946;
    color: #fff;
}

.track-icon.has-art {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    display: block;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#recent-tracks::-webkit-scrollbar {
    width: 6px;
}

#recent-tracks::-webkit-scrollbar-thumb {
    background: rgba(230, 57, 70, 0.3);
    border-radius: 3px;
}

/* ===== Staff Slider (3D coverflow) ===== */
.staff-slider {
    margin-top: 0;
    padding: 14px 15px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.staff-slider-title {
    font-family: var(--brand-font);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: #fff;
}

.staff-slider-title i {
    color: var(--primary);
    margin-right: 6px;
}

.staff-slider-nav {
    display: flex;
    gap: 6px;
}

.staff-slider-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.staff-slider-btn:hover {
    background: var(--primary);
    color: #1b1b1b;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35);
}

.staff-slider-stage {
    position: relative;
    height: 235px;
    perspective: 950px;
    overflow: hidden;
}

.staff-slide {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 185px;
    height: 215px;
    margin-left: -92.5px;
    margin-top: -107.5px;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transform: translateZ(-120px) scale(0.55);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease, visibility 0.7s, z-index 0s linear 0s;
}

.staff-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    transform: translateX(0) rotateY(0) scale(1);
}

.staff-slide.before-1 {
    opacity: 0.45;
    visibility: visible;
    z-index: 6;
    transform: translateX(-122px) rotateY(38deg) scale(0.82);
}

.staff-slide.before-2 {
    opacity: 0.16;
    visibility: visible;
    z-index: 4;
    transform: translateX(-210px) rotateY(50deg) scale(0.62);
}

.staff-slide.after-1 {
    opacity: 0.45;
    visibility: visible;
    z-index: 6;
    transform: translateX(122px) rotateY(-38deg) scale(0.82);
}

.staff-slide.after-2 {
    opacity: 0.16;
    visibility: visible;
    z-index: 4;
    transform: translateX(210px) rotateY(-50deg) scale(0.62);
}

.staff-slide-inner {
    position: relative;
    height: 100%;
    background: linear-gradient(165deg, var(--surface-2), var(--surface));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    text-align: center;
    cursor: grab;
    user-select: none;
    transition: border-color 0.3s ease;
}

.staff-slide-inner:hover {
    border-color: rgba(var(--primary-rgb), 0.55);
}

.staff-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    display: block;
    background: var(--surface-2);
}

.staff-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.staff-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 34px 12px 12px;
    text-align: center;
}

.staff-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.staff-bio {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.staff-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    min-height: 10px;
}

.staff-slider-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.staff-slider-dots .dot.active {
    width: 20px;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

/* ===== Photo Carousel (4 across) ===== */
.photo-carousel {
    position: relative;
}

.photo-carousel-stage {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.photo-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px;
}

.photo-carousel-track::-webkit-scrollbar {
    display: none;
}

.photo-slide {
    flex: 0 0 calc((100% - 24px) / 3);
}

.photo-slide-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    user-select: none;
    background: var(--surface-2);
}

.photo-slide-inner:hover {
    border-color: rgba(var(--primary-rgb), 0.6);
}

.photo-slide-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 14px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
    text-align: left;
}

.photo-slide-caption strong {
    display: block;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.25;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.photo-slide-caption small {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    line-height: 1.4;
    margin-top: 3px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.photo-carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.photo-carousel-btn:hover {
    background: var(--primary);
    color: #1b1b1b;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.4);
}

.photo-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    min-height: 10px;
}

.photo-carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-carousel-dots .dot.active {
    width: 22px;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

@media (max-width: 600px) {
    .photo-slide {
        flex: 0 0 calc((100% - 12px) / 2);
    }
    .photo-slide-caption {
        padding: 20px 10px 7px;
    }
    .photo-slide-caption strong {
        font-size: 0.8rem;
    }
    .photo-slide-caption small {
        font-size: 0.64rem;
    }
}

/* ===== Chat ===== */
.chat-card {
    padding: 0 !important;
}

.chat-card-header {
    position: relative;
}

.btn-chat-fullscreen {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    z-index: 6;
}

.btn-chat-fullscreen:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

.btn-chat-back {
    left: 12px;
    right: auto;
    display: none;
}

body.chat-fullscreen-open .btn-chat-back {
    display: flex;
}

/*
 * Z-INDEX NOTE — LIVE CHAT FULL SCREEN
 * Stacking order when body.chat-fullscreen-open is set:
 *   2147483000  .modal / .modal-backdrop        (all chat modals, incl. chat-note modals when clicked)
 *   2147482999  #chatProfileModal ~ .modal-backdrop (wall modal's own backdrop; kept below
 *                                                    the modal floor so the wall stays clickable)
 *   20001       .chat-fs-balloon
 *   20000       .chat-fullscreen-card           (position: fixed overlay)
 *   1080        .onair2-bottom-bar              (fixed bottom player bar, hidden below the card)
 *   1020        .site-header
 * The full screen card must stay above the player bar/header, while every
 * chat modal (note edit + note view) must stay above the card.
 */
body.chat-fullscreen-open {
    overflow: hidden;
}

body.chat-fullscreen-open .chat-fullscreen-card,
body.chat-fullscreen-open .chat-fullscreen-card:hover {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none;
    box-shadow: none !important;
    transform: none;
    display: flex;
    flex-direction: column;
    max-height: var(--kb-h, 100dvh);
    max-height: 100vh;
    background: var(--surface);
    transition: none;
}

body.chat-fullscreen-open .chat-fullscreen-card .card-header {
    flex: none;
}

body.chat-fullscreen-open .chat-fullscreen-card .card-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.chat-fullscreen-open .chat-fullscreen-card .chat-container {
    flex: 1;
    min-height: 0;
    height: auto;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

body.chat-fullscreen-open .chat-fullscreen-card .chat-auth {
    position: absolute;
}

body.chat-fullscreen-open .modal,
body.chat-fullscreen-open .modal.show,
body.chat-fullscreen-open .modal-backdrop,
body.chat-fullscreen-open .modal-backdrop.show {
    z-index: 2147483000 !important;
}

/* The wall/feed lives inside #chatProfileModal. The shared rule above forces
   the profile modal AND its own backdrop to the same 2147483000, and since
   Bootstrap appends the backdrop AFTER the modal it would paint on top and
   cover the wall, blocking the comment + photo-comment buttons. Keep this
   modal's backdrop just below that floor (above the 20000 card, below every
   other modal) so the wall is always clickable. */
body.chat-fullscreen-open #chatProfileModal ~ .modal-backdrop,
body.chat-fullscreen-open #chatProfileModal ~ .modal-backdrop.show {
    z-index: 2147482999 !important;
}

/* Note modals must stack on top of the private message modal in fullscreen
   (both are forced above 2147483000 there; the PM modal is pushed to 3005,
   which later appears above the notes since it is later in the DOM) */
/* Note modals must stack above the chat/PM modals (2147483001/3005) in ALL states */
#chatNoteModal.show,
#chatNoteViewModal.show {
    z-index: 2147483006 !important;
}
body.chat-fullscreen-open #chatNoteModal.show,
body.chat-fullscreen-open #chatNoteViewModal.show {
    z-index: 2147483006 !important;
}

/* Store modals must stay above the forced fullscreen z-index (and above the profile modal) */
body.chat-fullscreen-open #frameStoreModal,
body.chat-fullscreen-open #frameStoreModal.show,
body.chat-fullscreen-open #itemStoreModal,
body.chat-fullscreen-open #itemStoreModal.show {
    z-index: 2147483001 !important;
}

/* Delete-chat + feed/comment modals: keep the modal above its own backdrop.
   Applied in ALL states (not just fullscreen) so the modal is always
   clickable. In fullscreen the shared rule forces .modal/.modal-backdrop to
   the same 2147483000, and since the backdrop is appended AFTER the modal in
   the DOM it would otherwise cover it; this ID rule with !important wins over
   both Bootstrap's 1050/1040 and the fullscreen !important rule. */
#pmDeleteModal,
#pmDeleteModal.show,
#feedGalleryModal,
#feedGalleryModal.show,
#feedCommentsModal,
#feedCommentsModal.show,
#feedReactionsModal,
#feedReactionsModal.show,
#feedPhotoModal,
#feedPhotoModal.show,
#chatNotifModal,
#chatNotifModal.show,
#chatPmModal,
#chatPmModal.show {
    z-index: 2147483001 !important;
}
body.chat-fullscreen-open #pmDeleteModal,
body.chat-fullscreen-open #pmDeleteModal.show,
body.chat-fullscreen-open #feedGalleryModal,
body.chat-fullscreen-open #feedGalleryModal.show,
body.chat-fullscreen-open #feedCommentsModal,
body.chat-fullscreen-open #feedCommentsModal.show,
body.chat-fullscreen-open #feedReactionsModal,
body.chat-fullscreen-open #feedReactionsModal.show,
body.chat-fullscreen-open #feedPhotoModal,
body.chat-fullscreen-open #feedPhotoModal.show,
body.chat-fullscreen-open #chatNotifModal,
body.chat-fullscreen-open #chatNotifModal.show,
body.chat-fullscreen-open #chatPmModal,
body.chat-fullscreen-open #chatPmModal.show {
    z-index: 2147483002 !important;
}

/* Delete-chat confirm must stack above the still-open PM modal (2147483001) */
#pmDeleteModal,
#pmDeleteModal.show {
    z-index: 2147483005 !important;
}
#pmDeleteModal.show ~ .modal-backdrop.show {
    z-index: 2147483004 !important;
}

.chat-fs-balloon {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20001;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
    white-space: nowrap;
}

.chat-fs-balloon.is-visible {
    opacity: 1;
    visibility: visible;
    animation: chatBalloonFloat 3.5s ease-in-out infinite;
}

.chat-fs-balloon-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.chat-fs-balloon-bubble {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e63946, #ff8f00);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.chat-fs-balloon-tail {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid #ff8f00;
}

.chat-fs-balloon.is-below .chat-fs-balloon-tail {
    border-top: none;
    border-bottom: 8px solid #ff8f00;
}

@keyframes chatBalloonFloat {
    0%   { transform: translateY(0) rotate(-1.5deg); }
    50%  { transform: translateY(-6px) rotate(1.5deg); }
    100% { transform: translateY(0) rotate(-1.5deg); }
}

.chat-container {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 900px;
}

/* Chatbox effect overlay */
.chat-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.chat-effects .header-float-heart,
.chat-effects .header-float-snow,
.chat-effects .header-float-note,
.chat-effects .header-float-confetti,
.chat-effects .header-float-bubble,
.chat-effects .header-float-rain,
.chat-effects .header-float-star,
.chat-effects .header-float-sparkle,
.chat-effects .header-float-firefly,
.chat-effects .header-float-leaf,
.chat-effects .header-float-butterfly,
.chat-effects .header-float-bat,
.chat-effects .header-float-occ {
    position: absolute;
    z-index: 2;
    animation-name: chatFloat;
}

.chat-effects .header-float-note,
.chat-effects .header-float-bubble {
    animation-name: chatRise;
}

.chat-effects .header-fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

@keyframes chatFloat {
    0% {
        top: -35px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    100% {
        top: 100%;
        transform: translateX(30px) rotate(220deg);
        opacity: 0;
    }
}

@keyframes chatRise {
    0% {
        bottom: -40px;
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    100% {
        bottom: 100%;
        transform: translateX(20px) rotate(30deg);
        opacity: 0;
    }
}

.chat-container .chat-topbar { order: -1; }
.chat-container .chat-messages { order: 1; }
.chat-container .chat-seen-bar { order: 2; }
.chat-container .reply-indicator { order: 3; }
.chat-container .chat-input-area { order: 4; }
.chat-container .chat-auth { order: 5; }

.chat-container.chat-input-top .chat-input-area { order: 1; }
.chat-container.chat-input-top .chat-topbar { order: 2; }
.chat-container.chat-input-top .reply-indicator { order: 3; }
.chat-container.chat-input-top .chat-notes { order: 4; }
.chat-container.chat-input-top .chat-messages { order: 5; }
.chat-container.chat-input-top .chat-seen-bar { order: 6; }

.chat-container.chat-input-top .chat-input-area {
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Input on top -> smiley picker must open downward */
.chat-container.chat-input-top .smiley-picker {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 6px;
}

/* Note to self â€” Messenger own-message bubble style */
.chat-container .chat-notes {
    order: 0;
}

.chat-notes {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    margin: 8px 10px 0;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

#chatPmInbox .chat-pm-search {
    order: -2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 10px;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
}
#chatPmInbox .chat-pm-search-icon {
    color: #6b7280;
    font-size: 0.8rem;
}
#chatPmInbox .chat-pm-search-input {
    flex: 1;
    min-width: 0;
    display: block;
    resize: none;
    overflow: hidden;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.8rem;
    font-family: inherit;
    line-height: 1.4;
    color: #000;
}
#chatPmInbox .chat-pm-search-input::placeholder {
    color: #9aa3af;
}
#chatPmInbox .chat-pm-search-clear {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px 4px;
}
#chatPmInbox .chat-pm-search-clear:hover {
    color: #e53e3e;
}

#chatPmInbox .chat-notes {
    order: -1;
    flex-shrink: 0;
    margin: 0;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-notes.dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

.chat-note {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.chat-note-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 80%;
}

.chat-note-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-note-body {
    position: relative;
    background: #fff;
    color: #000;
    padding: 8px 12px;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
    max-width: 100%;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.chat-note-body::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 12px;
    width: 14px;
    height: 12px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.chat-note-view-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
}

.chat-note-view-name {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0 0 4px;
    word-break: break-word;
}

.chat-note-view-text {
    text-align: center;
    font-size: 16px;
    color: #000;
    word-break: break-word;
    margin: 0;
}

.chat-note-view-bubble {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 90%;
    padding: 20px 26px;
    background: #fff;
    color: #000;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    position: relative;
}

.chat-note-view-bubble::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 14px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.chat-note-view-bubble .chat-note-avatar {
    width: 56px;
    height: 56px;
    margin-top: 0;
    order: -1;
    background: none;
    cursor: default;
}

.chat-note-view {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-note-view-reply {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
}

.chat-note-view-reply .form-control {
    flex: 1;
    min-width: 0;
}

.chat-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 4px 16px;
}

.chat-profile-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
}

.chat-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 193, 7, 0.6);
}

.chat-profile-info {
    min-width: 0;
}

.chat-profile-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000;
    word-break: break-word;
}

.chat-profile-role {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark, #b8860b);
    margin-top: 2px;
}

.chat-profile-uname {
    font-size: 0.78rem;
    color: #666;
    margin-top: 2px;
    word-break: break-word;
}

.chat-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    border-top: 1px solid #eee;
    padding-top: 14px;
}

.chat-profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    font-size: 0.72rem;
    color: #666;
    padding: 8px;
    border-radius: 10px;
    background: #f5f5f5;
}

.chat-profile-stat i {
    color: var(--primary-dark, #b8860b);
    font-size: 0.95rem;
}

.chat-profile-note {
    margin: 12px 0;
    padding: 11px 14px;
    border-radius: 12px;
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
}
.chat-profile-note-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px;
}
.chat-profile-note-label i { color: var(--primary-dark, #b8860b); }
.chat-profile-note-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #333;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.chat-profile-stat span {
    color: #000;
    font-weight: 600;
}

.chat-profile-stat small {
    display: block;
    color: #888;
}

.chat-profile-settings {
    margin-top: 14px;
    border-top: 1px solid #eee;
    padding-top: 14px;
}

.chat-profile-settings-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.chat-profile-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-profile-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-profile-logout-btn:hover {
    color: var(--red, #dc2626);
    border-color: var(--red, #dc2626);
    background: #fef2f2;
}

.chat-profile-settings-title i {
    color: var(--primary-dark, #b8860b);
    margin-right: 6px;
}

.chat-profile-setting-row {
    margin-bottom: 12px;
}

.chat-profile-setting {
    margin-bottom: 8px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.chat-profile-setting-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f8f8;
    border: none;
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.chat-profile-setting-toggle:hover {
    background: #efefef;
}

.chat-profile-setting-toggle i:first-child {
    color: var(--primary-dark, #b8860b);
    width: 16px;
    text-align: center;
}

.chat-profile-setting-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    color: #999;
    transition: transform 0.2s;
}

.chat-profile-setting.open .chat-profile-setting-arrow {
    transform: rotate(180deg);
}

.chat-profile-setting-body {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.chat-profile-setting-body .form-control {
    flex: 1;
    min-width: 120px;
    border-radius: 8px;
    font-size: 0.82rem;
}

.chat-profile-setting-body .btn {
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 0.8rem;
}

.chat-profile-settings-msg {
    font-size: 0.78rem;
    margin-top: 8px;
}

.chat-profile-settings-msg.success {
    color: #15803d;
}

.chat-profile-settings-msg.error {
    color: #dc2626;
}

.animal-picker-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 6px;
    width: 100%;
}

.animal-picker-tabs {
    grid-column: 1 / -1;
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
    padding: 3px;
    background: var(--bg-deep);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.animal-picker-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 4px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    transition: background 0.2s, color 0.2s;
}

.animal-picker-tab:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

.animal-picker-tab.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(15, 35, 70, 0.12), inset 0 0 0 1px rgba(var(--primary-rgb), 0.35);
}

.animal-picker-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.animal-picker-item:hover {
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.animal-picker-item.selected {
    border-color: #bbe51e;
    background: #f4fbd6;
    box-shadow: 0 0 8px rgba(187, 229, 30, 0.35);
}

.animal-picker-item.none i {
    color: #9ca3af;
    font-size: 15px;
}

.animal-picker-item img {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
}

.chat-profile-bg-body .btn {
    flex-shrink: 0;
}

.chat-profile {
    border-radius: 12px;
    background: #f5f5f5;
    transition: background 0.3s;
}

.chat-profile.chat-profile-has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-profile.chat-profile-has-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 22, var(--profile-bg-overlay, 0.72));
    border-radius: inherit;
    z-index: 0;
}

.chat-profile.chat-profile-has-bg .chat-profile-avatar-wrap,
.chat-profile.chat-profile-has-bg .chat-profile-info {
    position: relative;
    z-index: 1;
}

.chat-profile.chat-profile-has-bg .chat-profile-name {
    color: #fff;
}

.chat-profile.chat-profile-has-bg .chat-profile-role {
    color: #fde68a;
}

.chat-profile.chat-profile-has-bg .chat-profile-uname {
    color: rgba(255, 255, 255, 0.75);
}

.chat-note-text {
    color: #000;
    font-size: 8px;
    line-height: 1.35;
    overflow-wrap: break-word;
    text-align: center;
    width: 100%;
}

.btn-chat-note-edit {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    color: #333;
    font-size: 0.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.btn-chat-note-edit:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
}

.chatters-count {
    background: var(--primary);
    color: #1b1b1b;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 8px;
    line-height: 1.5;
}

.chatters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 78px;
    overflow-y: auto;
}

.chatter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 20px;
    padding: 3px 10px 3px 4px;
    font-size: 0.72rem;
}

.chatter-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #1b1b1b;
    font-weight: 800;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chatter-avatar-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}

.chatter-name {
    color: #fff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chatter-chip.empty {
    background: transparent;
    border: none;
    color: #000;
    font-size: 0.75rem;
    font-style: italic;
    padding: 2px 4px;
}

/* Facebook-style online avatars row */
.chatter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 60px;
    cursor: default;
}

.chatter-avatar-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 193, 7, 0.55);
    background: #1c1c2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatter-avatar-btn .chatter-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    cursor: pointer;
}

.chatter-avatar-btn .chatter-avatar-wrap {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

.chatter-avatar-btn .avatar-frame-overlay {
    border-radius: 50%;
}

.chatter-online-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #0f0c29;
    z-index: 3;
}

.chatter-item-name {
    max-width: 60px;
    font-size: 0.56rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chatter-item .chat-role-badge {
    max-width: 60px;
    font-size: 0.46rem;
    padding: 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Top 10 chatters sliding leaderboard */
.top-chatters {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.top-chatters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.top-chatters-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 193, 7, 0.9);
}

.top-chatters-title i {
    font-size: 0.9rem;
}

.top-chatters-nav {
    display: inline-flex;
    gap: 6px;
}

.top-chatters-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.6rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.top-chatters-btn:hover {
    background: rgba(255, 193, 7, 0.25);
    color: #fff;
}

.top-chatters-viewport {
    overflow: hidden;
}

.top-chatters-track {
    display: flex;
    will-change: transform;
}

.top-chatter-card {
    flex: 0 0 calc(100% / 3);
    padding-right: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.top-chatter-rank {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.top-chatter-rank.rank-1 {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #3b2d00;
    animation: rank1Blink 1.2s ease-in-out infinite;
}

@keyframes rank1Blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.65);
    }
    50% {
        opacity: 0.55;
        box-shadow: 0 0 14px 5px rgba(255, 215, 0, 0.55);
    }
}

.top-chatter-medal {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.95rem;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 4;
}

.top-chatter-medal.medal-silver {
    color: #cbd5e1;
    text-shadow: 0 0 8px rgba(203, 213, 225, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.top-chatter-medal.medal-bronze {
    color: #cd7f32;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.75), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.top-chatter-rank.rank-2 {
    background: linear-gradient(135deg, #e5e7eb, #94a3b8);
    color: #1e293b;
}

.top-chatter-rank.rank-3 {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #fff8ec;
}

.top-chatter-avatar-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 193, 7, 0.45);
    background: #1c1c2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-chatter-avatar-btn .top-chatter-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    cursor: pointer;
}

.top-chatter-avatar-btn .chatter-avatar-wrap {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

.top-chatter-avatar-btn .avatar-frame-overlay {
    border-radius: 50%;
}

.top-chatter-name {
    max-width: 100%;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-chatter-card.top-chatter-rank-4 .top-chatter-name,
.top-chatter-card.top-chatter-rank-5 .top-chatter-name,
.top-chatter-card.top-chatter-rank-6 .top-chatter-name,
.top-chatter-card.top-chatter-rank-7 .top-chatter-name,
.top-chatter-card.top-chatter-rank-8 .top-chatter-name,
.top-chatter-card.top-chatter-rank-9 .top-chatter-name,
.top-chatter-card.top-chatter-rank-10 .top-chatter-name {
    color: #fff;
}

.top-chatter-card.top-chatter-rank-4 .top-chatter-rank,
.top-chatter-card.top-chatter-rank-5 .top-chatter-rank,
.top-chatter-card.top-chatter-rank-6 .top-chatter-rank,
.top-chatter-card.top-chatter-rank-7 .top-chatter-rank,
.top-chatter-card.top-chatter-rank-8 .top-chatter-rank,
.top-chatter-card.top-chatter-rank-9 .top-chatter-rank,
.top-chatter-card.top-chatter-rank-10 .top-chatter-rank {
    color: #fff;
}

.top-chatter-count {
    font-size: 0.54rem;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .top-chatter-card {
        flex-basis: 100%;
        padding-right: 0;
    }
}

/* ===== Quiz Scoreboard ===== */
.quiz-scoreboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    color: #fff;
}

.quiz-score-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-score-list.has-more {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.quiz-score-list.has-more::-webkit-scrollbar {
    width: 6px;
}

.quiz-score-list.has-more::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.quiz-score-list.has-more::-webkit-scrollbar-track {
    background: transparent;
}

.quiz-score-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.2s, transform 0.2s;
}

.quiz-score-item:hover {
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-1px);
}

.quiz-score-rank {
    position: relative;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.quiz-score-rank.rank-1 {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #3b2d00;
    animation: rank1Blink 1.2s ease-in-out infinite;
}

.quiz-score-rank.rank-2 {
    background: linear-gradient(135deg, #e5e7eb, #94a3b8);
    color: #1e293b;
}

.quiz-score-rank.rank-3 {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #fff8ec;
}

.quiz-score-medal {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 4;
}

.quiz-score-avatar-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 193, 7, 0.45);
    background: #1c1c2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quiz-score-avatar-btn .chatter-avatar-wrap,
.quiz-score-avatar-btn .chatter-avatar-wrap .quiz-score-avatar {
    width: 32px;
    height: 32px;
}

.quiz-score-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.quiz-score-name {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quiz-score-meta {
    font-size: 0.68rem;
    color: #fff;
    white-space: nowrap;
}

.quiz-score-meta b {
    color: #fff;
}

.chatters-site {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

.chatters-site-count {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0 0 12px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.chatters-site-count .chatters-count {
    font-size: 1.15rem;
    padding: 2px 14px;
    border-radius: 16px;
}

.chatters-site-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
}

.chatters-site .chatters-list {
    gap: 8px 6px;
    max-height: 250px;
    overflow-y: auto;
    padding: 4px 2px;
    align-content: flex-start;
}

.chat-messages {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0 10px 10px;
}

.chat-has-bg-image {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.chat-message {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    max-width: 92%;
    position: relative;
}

.chat-msg-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    padding-left: 0;
    width: 100%;
    order: 1;
}

.chat-message.system {
    position: relative;
    background: rgba(255, 165, 0, 0.15);
    max-width: 100%;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
}

.chat-msg-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.12), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.chat-msg-avatar-initial {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-msg-body {
    position: relative;
    background: rgba(16, 16, 24, 0.72);
    padding: 8px 13px;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    max-width: calc(100% - 60px);
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    backdrop-filter: blur(2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.chat-msg-body::after {
    content: "";
    position: absolute;
    top: 10px;
    left: -7px;
    width: 12px;
    height: 14px;
    background: rgba(16, 16, 24, 0.72);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.chat-msg-body.image-only {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    display: inline-flex;
    flex-direction: column;
    width: auto;
    max-width: 100%;
    justify-content: center;
    align-items: center;
}
.chat-msg-body.image-only::after { display: none; }
.chat-msg-body.image-only .chat-msg-image {
    margin: 0;
    max-width: min(100%, 320px);
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: cover;
    padding: 3px;
    border: none;
    border-radius: 12px;
    background: rgba(16, 16, 24, 0.72);
}
.chat-message.mine .chat-msg-body.image-only .chat-msg-image { background: var(--primary, rgba(30, 144, 255, 0.85)); }
.chat-msg-body.image-only.has-user-bg .chat-msg-image,
.chat-message.mine .chat-msg-body.image-only.has-user-bg .chat-msg-image { background: rgba(15, 15, 22, 0.45); }
.chat-msg-body.image-only .chat-msg-name { display: none; }
.chat-msg-body.image-only .chat-text { display: none; }
.chat-message.mine .chat-msg-body.image-only .chat-msg-sticker { margin-left: auto; margin-right: 0; }
.chat-msg-body.image-only:has(.chat-msg-sticker) { padding: 0; }
.chat-msg-body.image-only .chat-msg-sticker { padding: 5px; min-width: 0; min-height: 0; }
.chat-message.mine:has(.chat-msg-body.image-only .chat-msg-sticker) { justify-content: flex-end; margin-left: auto; margin-right: 0; }
.chat-message.mine:has(.chat-msg-body.image-only .chat-msg-sticker) .chat-msg-actions { padding-left: 0; justify-content: flex-end; }
.chat-message:has(.chat-msg-body.image-only) + .chat-message:has(.chat-msg-body.image-only) { margin-top: -12px; }

.chat-container .chat-msg-body.has-user-bg {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
}

.chat-container .chat-msg-body.has-user-bg::after {
    display: none;
}

.chat-system-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-style: italic;
}

.chat-username {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 2px;
    display: block;
}

.chat-msg-name {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 3px;
    padding-left: 4px;
    max-width: 100%;
    overflow: hidden;
}
.chat-msg-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
.chat-message.mine .chat-msg-name { display: none; }

.chat-msg-name .chat-username {
    margin-bottom: 0;
}

.chat-username.has-bg {
    display: inline-block;
    padding: 1px 7px;
    margin-bottom: 3px;
    border-radius: 9px;
    line-height: 1.5;
}

.chat-role-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: middle;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.chat-role-badge.vip {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.chat-role-badge.dj {
    background: rgba(236, 72, 153, 0.16);
    color: #f472b6;
    border-color: rgba(236, 72, 153, 0.4);
}

.chat-role-badge.moderator {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

.chat-role-badge.station_manager {
    background: rgba(59, 130, 246, 0.16);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.4);
}

.chat-role-badge.station_owner,
.chat-role-badge.owner {
    background: rgba(168, 85, 247, 0.16);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.4);
}

.chat-role-badge.admin {
    background: rgba(99, 102, 241, 0.16);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.4);
}

.chat-role-badge.developer {
    background: rgba(14, 165, 233, 0.16);
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.4);
}

.chat-role-badge.custom {
    background: rgba(217, 70, 239, 0.16);
    color: #e879f9;
    border-color: rgba(217, 70, 239, 0.4);
}

/* ---------- Chat name text effects ---------- */
.text-effect-rainbow {
    background: linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0080ff, #8000ff, #ff00ff, #ff0000) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: text-effect-rainbow-move 2s linear infinite;
}

@keyframes text-effect-rainbow-move {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.text-effect-glitter {
    background-image:
        radial-gradient(circle, #ffffff 1.5px, transparent 2px),
        radial-gradient(circle, #ffe066 1.5px, transparent 2px),
        linear-gradient(135deg, #f9d423, #ff4e50, #f9d423) !important;
    background-size: 30px 30px, 45px 45px, 300% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: text-effect-glitter-move 2.2s linear infinite;
}

@keyframes text-effect-glitter-move {
    0% { background-position: 0 0, 0 0, 0% 50%; }
    100% { background-position: 30px 30px, 45px 45px, 300% 50%; }
}

.text-effect-shimmer {
    background: linear-gradient(90deg, #b8b8c4 0%, #ffffff 25%, #b8b8c4 50%, #ffffff 75%, #b8b8c4 100%) !important;
    background-size: 200% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: text-effect-shimmer-move 2s linear infinite;
}

@keyframes text-effect-shimmer-move {
    0% { background-position: 0% 0; }
    100% { background-position: -200% 0; }
}

.text-effect-glow {
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(255, 193, 7, 0.9), 0 0 14px rgba(255, 193, 7, 0.7), 0 0 28px rgba(255, 193, 7, 0.5);
    animation: text-effect-glow-pulse 1.6s ease-in-out infinite;
}

@keyframes text-effect-glow-pulse {
    0%, 100% { text-shadow: 0 0 6px rgba(255, 193, 7, 0.55), 0 0 14px rgba(255, 193, 7, 0.35), 0 0 28px rgba(255, 193, 7, 0.2); }
    50% { text-shadow: 0 0 10px rgba(255, 193, 7, 1), 0 0 26px rgba(255, 193, 7, 0.85), 0 0 46px rgba(255, 193, 7, 0.6); }
}

.text-effect-neon {
    color: #ffffff !important;
    text-shadow: 0 0 4px #ffffff, 0 0 10px #00e5ff, 0 0 22px #00e5ff, 0 0 40px #ff00ff;
    animation: text-effect-neon-flicker 2.4s linear infinite;
}

@keyframes text-effect-neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { text-shadow: 0 0 4px #ffffff, 0 0 10px #00e5ff, 0 0 22px #00e5ff, 0 0 40px #ff00ff; opacity: 1; }
    20%, 24%, 55% { text-shadow: 0 0 2px #ffffff, 0 0 5px #00e5ff; opacity: 0.8; }
}

.text-effect-flicker {
    color: #ffffff !important;
    animation: text-effect-flicker-anim 1.5s linear infinite;
}

@keyframes text-effect-flicker-anim {
    0%, 100% { opacity: 1; }
    41% { opacity: 1; }
    42% { opacity: 0.3; }
    43% { opacity: 1; }
    45% { opacity: 0.2; }
    46% { opacity: 1; }
    70% { opacity: 1; }
    71% { opacity: 0.4; }
    72% { opacity: 1; }
}

.chat-text {
    display: block;
    color: white;
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 2px 0 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: left;
}

.chat-text.chat-text-short {
    font-size: 16px;
    line-height: 1.4;
}

.chat-time {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.62rem;
    letter-spacing: 0.2px;
    margin-right: auto;
    transition: color 0.2s;
}

.chat-message:hover .chat-time {
    color: rgba(255, 255, 255, 0.5);
}

.chat-msg-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding-left: 2px;
}

.btn-msg-reply {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 999px;
    transition: all 0.2s;
    user-select: none;
}

.btn-msg-reply:hover {
    color: var(--primary-2);
    background: rgba(255, 255, 255, 0.08);
}

.btn-msg-react {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
    background: rgba(16, 16, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 999px;
    transition: opacity 0.2s, background 0.2s, border-color 0.2s;
    user-select: none;
    backdrop-filter: blur(2px);
    z-index: 4;
    opacity: 0;
    pointer-events: none;
}

.chat-message:hover .btn-msg-react,
.chat-message:focus-within .btn-msg-react,
.chat-message.show-react .btn-msg-react,
.btn-msg-react:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

.btn-msg-react:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-msg-react.reacted {
    background: rgba(var(--primary-rgb), 0.16);
    border-color: rgba(var(--primary-rgb), 0.4);
}

.btn-msg-react.reacted i {
    animation: react-pop 0.3s ease;
}

/* Force color emoji presentation for the default react smiley */
.react-default-emoji {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
    font-weight: 400;
    font-style: normal;
    animation: emoji-pulse 2s ease-in-out infinite;
}

/* Other users: react button hangs off the bubble's outer-right edge */
.chat-message:not(.mine) .btn-msg-react {
    right: auto;
    left: 100%;
    margin-right: 0;
    margin-left: 6px;
}

.btn-msg-delete {
    background: transparent;
    border: none;
    color: rgba(255, 93, 108, 0.85);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 999px;
    transition: all 0.2s;
    user-select: none;
}

.btn-msg-delete:hover {
    color: #ff5d6c;
    background: rgba(255, 93, 108, 0.12);
}

.btn-msg-delete.system {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes react-pop {
    0% { transform: scale(0.6); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes emoji-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.15) rotate(-5deg); }
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(1.15) rotate(5deg); }
}

/* Reaction chips overlap the bubble's bottom corner (Messenger style) */
.chat-reactions {
    position: absolute;
    bottom: -9px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 200px;
}

.chat-message:not(.mine) .chat-reactions {
    left: 0;
    right: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: 100%;
}

.chat-message.mine .chat-reactions {
    right: 0;
    left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    max-width: 100%;
}

/* Keep the bubble tall enough so overlaid chips never clip it */
.chat-message.has-reactions .chat-msg-body {
    margin-bottom: 6px;
}

/* Seen bar (users who have seen the last message) â€” Messenger style */
.chat-seen-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 12px 5px;
    background: transparent;
    border: none;
    flex-shrink: 0;
    min-height: 24px;
}

.chat-seen-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.chat-seen-label i {
    color: var(--primary-2);
}

.chat-seen-list {
    display: flex;
    align-items: center;
    padding-left: 8px;
    flex-wrap: nowrap;
}

.chat-seen-user {
    position: relative;
    cursor: pointer;
    line-height: 0;
    margin-left: -9px;
    transition: margin-left 0.25s ease, transform 0.25s ease;
}

.chat-seen-user:first-child {
    margin-left: 0;
}

.chat-seen-user:nth-child(2) { z-index: 2; }
.chat-seen-user:nth-child(3) { z-index: 3; }
.chat-seen-user:nth-child(4) { z-index: 4; }
.chat-seen-user:nth-child(n+5) { z-index: 5; }

.chat-seen-user .chat-seen-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
    transition: transform 0.15s ease;
    background: transparent;
}

.chat-seen-user:hover .chat-seen-avatar {
    transform: scale(1.2);
}

.chat-seen-more {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6rem;
    font-weight: 700;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chat-seen-more:hover {
    transform: scale(1.15);
}

.chat-seen-list:hover .chat-seen-user {
    margin-left: 3px;
}

.chat-seen-list:hover .chat-seen-user:first-child {
    margin-left: 0;
}

.chat-seen-name {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 12px;
    background: rgba(0, 0, 0, 0.88);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.chat-seen-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 12px;
    min-width: 180px;
    max-width: 240px;
    background: rgba(10, 10, 25, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 50;
    overflow: hidden;
}

.chat-seen-popup-header {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-seen-popup-header i {
    color: var(--primary-2);
}

.chat-seen-popup-list {
    max-height: 160px;
    overflow-y: auto;
}

.chat-seen-popup-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    cursor: default;
}

.chat-seen-popup-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.chat-seen-popup-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-seen-popup-name {
    font-size: 0.75rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.react-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0 solid transparent;
    border-radius: 999px;
    padding: 2px 8px 2px 6px;
    font-size: 0.72rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    user-select: none;
}

.react-pill-emoji {
    display: inline-block;
    animation: emoji-wiggle 2.5s ease-in-out infinite;
}

@keyframes emoji-wiggle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.2) rotate(-8deg); }
    40% { transform: scale(1) rotate(0deg); }
    60% { transform: scale(1.2) rotate(8deg); }
    80% { transform: scale(1) rotate(0deg); }
}

.react-pill:hover {
    transform: translateY(-1px);
}

.react-pill.active {
    color: #fff;
}

.react-pill-count {
    font-size: 11px;
    font-weight: 700;
    color: inherit;
}

#chatProfileModal .react-pill {
    background: rgba(0, 0, 0, 0.06);
    color: #374151;
}

#chatProfileModal .react-pill.active {
    background: var(--primary, #1e90ff);
    color: #fff;
}

@keyframes react-pill-in {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Floating FB-style reaction picker */
.react-picker {
    display: none;
    position: fixed;
    z-index: 2147483010;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    background: #2b2530;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 6px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    max-width: calc(100vw - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: none;
}

.react-picker-emoji {
    font-size: 1.5rem;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s;
    user-select: none;
    pointer-events: auto;
    flex-shrink: 0;
}

.react-picker-emoji:hover {
    transform: scale(1.4);
    background: rgba(255, 255, 255, 0.12);
}

/* Oval popup listing who reacted to a message (shown when clicking a react pill) */
.reactors-oval {
    display: none;
    position: fixed;
    z-index: 2147483011;
    align-items: center;
    gap: 8px;
    background: #2b2530;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 6px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
    max-width: calc(100vw - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
    user-select: none;
}

.reactors-oval-emoji {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

.reactors-oval-names {
    font-size: 0.82rem;
    color: #fff;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-reply-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    color: var(--primary-2);
    margin-bottom: 3px;
}

.chat-reply-tag span {
    font-weight: 700;
}

.chat-msg-body.is-reply {
    margin-left: 8px;
    border-left: 2px solid rgba(30, 144, 255, 0.5);
    border-radius: 10px 10px 10px 2px;
}

.reply-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(30, 144, 255, 0.12);
    border-top: 1px solid rgba(30, 144, 255, 0.25);
    font-size: 0.75rem;
    color: #fff;
}

.reply-indicator-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.reply-indicator-text i {
    color: var(--primary-2);
    margin-right: 4px;
}

.reply-indicator-text b {
    color: var(--primary);
}

.btn-cancel-reply {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
    flex-shrink: 0;
}

.btn-cancel-reply:hover {
    color: #ff7b8c;
}

.chat-input-area {
    position: relative;
    display: flex;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.chat-input {
    width: 100%;
    background: #02283e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 10px 80px 10px 18px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
    display: block;
    height: 42px;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.35;
    resize: none;
    overflow-x: hidden;
    overflow-y: hidden;
    font-family: inherit;
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #e63946, #ff8f00);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.chat-input-row {
    display: flex;
    align-items: flex-end;
    flex: 1;
}

.chat-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

@media (max-width: 767px) {
    .chat-input {
        font-size: 16px;
    }
}

.btn-chat-attach {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-chat-attach:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-chat-attach.has-image {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-chat-smiley {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0;
}

.btn-chat-smiley:hover,
.btn-chat-smiley.active {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-chat-gif {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0;
}

.btn-chat-gif:hover,
.btn-chat-gif.active {
    color: var(--primary);
    border-color: var(--primary);
}

.smiley-picker {
    position: absolute;
    bottom: 100%;
    right: 0;
    left: auto;
    margin-bottom: 6px;
    width: 280px;
    max-height: 220px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(35, 35, 35, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.smiley-picker-head {
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.smiley-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 10px 12px;
    overflow-y: auto;
}

.smiley-item {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.smiley-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.08);
}

.smiley-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.smiley-picker-empty {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px;
}

.smiley-section-label {
    grid-column: 1 / -1;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    padding: 6px 0 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.smiley-section-label:first-child {
    border-top: none;
    padding-top: 0;
}

.gif-picker {
    position: absolute;
    bottom: 100%;
    right: 0;
    left: auto;
    margin-bottom: 6px;
    width: 300px;
    max-height: 280px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(35, 35, 35, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gif-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.gif-picker-credit {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.35);
}

.gif-picker-search {
    padding: 8px 12px;
    flex-shrink: 0;
}

.gif-picker-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

.gif-picker-search input:focus {
    border-color: var(--primary);
}

.gif-picker-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.gif-picker-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 12px 12px;
    overflow-y: auto;
    flex: 1;
}

.gif-item {
    border: none;
    background: rgba(255, 255, 255, 0.06);
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gif-item:hover {
    transform: scale(1.05);
}

.gif-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gif-picker-empty {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 18px 8px;
}

.gif-picker-credit.full {
    grid-column: 1 / -1;
    text-align: right;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    padding-top: 4px;
}

.chat-container.chat-input-top .gif-picker {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 6px;
}

.chat-msg-sticker {
    display: block;
    min-width: 90px;
    min-height: 90px;
    max-width: min(100%, 140px);
    max-height: 140px;
    margin-top: 6px;
    border-radius: 12px;
    cursor: pointer;
    object-fit: contain;
}

.chat-msg-sticker.sticker-sharp {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Private-message stickers auto-resize to fit their box (no forced min size) */
#chatPmMessages .chat-msg-sticker,
.chat-pm-bubble .chat-msg-sticker {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    margin-top: 6px;
}

/* ============================================
   Video Gallery
============================================ */
.video-gallery-body {
    --vs-accent: var(--primary);
    --vs-frame-bg: #000;
    --vs-frame-border: rgba(255, 255, 255, 0.12);
    --vs-ph-grad: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(40, 40, 40, 0.9));
    --vs-ph-text: rgba(255, 255, 255, 0.6);
    --vs-title: #fff;
    --vs-desc: rgba(255, 255, 255, 0.55);
    --vs-head: rgba(255, 255, 255, 0.55);
    --vs-item-bg: rgba(255, 255, 255, 0.04);
    --vs-item-border: rgba(255, 255, 255, 0.1);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.08);
    --vs-item-active-bg: rgba(255, 255, 255, 0.1);
    --vs-item-active-shadow: rgba(255, 255, 255, 0.06);
    --vs-item-text: rgba(255, 255, 255, 0.85);
    --vs-item-title: #fff;
    --vs-item-meta: rgba(255, 255, 255, 0.4);
    --vs-comments-border: rgba(255, 255, 255, 0.1);
    --vs-comments-head: rgba(255, 255, 255, 0.7);
    --vs-count-bg: rgba(255, 255, 255, 0.1);
    --vs-count-text: rgba(255, 255, 255, 0.6);
    --vs-user-text: rgba(255, 255, 255, 0.85);
    --vs-avatar-border: rgba(255, 255, 255, 0.2);
    --vs-input-bg: rgba(255, 255, 255, 0.08);
    --vs-input-border: rgba(255, 255, 255, 0.15);
    --vs-input-text: #fff;
    --vs-input-ph: rgba(255, 255, 255, 0.4);
    --vs-send-bg: rgba(255, 255, 255, 0.1);
    --vs-send-border: rgba(255, 255, 255, 0.15);
    --vs-send-text: rgba(255, 255, 255, 0.7);
    --vs-login-bg: rgba(255, 255, 255, 0.05);
    --vs-login-border: rgba(255, 255, 255, 0.18);
    --vs-login-text: rgba(255, 255, 255, 0.6);
    --vs-comment-bg: rgba(255, 255, 255, 0.04);
    --vs-comment-border: rgba(255, 255, 255, 0.07);
    --vs-author: #fff;
    --vs-comment-time: rgba(255, 255, 255, 0.4);
    --vs-comment-text: rgba(255, 255, 255, 0.85);
    --vs-empty: rgba(255, 255, 255, 0.45);
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.video-gallery-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: var(--vs-frame-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--vs-frame-border);
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--vs-ph-text);
    background: var(--vs-ph-grad);
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--vs-accent);
}

.video-placeholder p {
    font-size: 0.9rem;
    margin: 0;
}

.video-placeholder.video-poster {
    background: #000;
    cursor: pointer;
}

.video-placeholder.video-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    padding-left: 4px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-poster-play i {
    margin: 0;
    color: #fff;
}

.video-placeholder.video-poster:hover .video-poster-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(255, 193, 7, 0.8);
}

.video-now {
    margin-top: 12px;
    font-weight: 700;
    font-family: var(--brand-font);
    color: var(--vs-title);
    font-size: 1.05rem;
}

.video-desc {
    margin-top: 4px;
    color: var(--vs-desc);
    font-size: 0.85rem;
}

.video-playlist-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.video-playlist-head {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vs-head);
    padding: 4px 2px 10px;
}

.video-playlist {
    max-height: 340px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.video-playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--vs-item-border);
    background: var(--vs-item-bg);
    color: var(--vs-item-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.video-playlist-item:hover {
    border-color: var(--vs-accent);
    background: var(--vs-item-hover-bg);
}

.video-playlist-item.active {
    border-color: var(--vs-accent);
    background: var(--vs-item-active-bg);
    box-shadow: 0 0 12px var(--vs-item-active-shadow) inset;
}

.video-load-more {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 2px;
    border-radius: 10px;
    border: 1px dashed var(--vs-item-border);
    background: transparent;
    color: var(--vs-item-meta);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.2s ease;
}

.video-load-more:hover {
    border-color: var(--vs-accent);
    color: var(--vs-accent);
}

.video-playlist-item.loading {
    justify-content: center;
    color: var(--vs-item-meta);
    font-size: 0.85rem;
    cursor: default;}

.video-playlist-thumb {
    width: 90px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.video-playlist-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.video-playlist-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--vs-item-title);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-playlist-meta {
    font-size: 0.7rem;
    color: var(--vs-item-meta);
}

.video-comments {
    margin-top: 18px;
    border-top: 1px solid var(--vs-comments-border);
    padding-top: 14px;
    position: relative;
    z-index: 1;
}

.video-comments-head {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vs-comments-head);
    margin-bottom: 12px;
}

.video-comments-count {
    display: inline-block;
    margin-left: 8px;
    background: var(--vs-count-bg);
    color: var(--vs-count-text);
    font-size: 0.7rem;
    border-radius: 20px;
    padding: 2px 10px;
    vertical-align: middle;
}

.video-comment-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.video-comment-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--vs-user-text);
    font-size: 0.85rem;
    font-weight: 600;
}

.video-comment-user img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--vs-avatar-border);
}

.video-comment-input-row {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 220px;
}

.video-comment-input {
    flex: 1;
    background: var(--vs-input-bg);
    border: 1px solid var(--vs-input-border);
    border-radius: 22px;
    padding: 8px 16px;
    color: var(--vs-input-text);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
}

.video-comment-input:focus {
    border-color: var(--vs-accent);
}

.video-comment-input::placeholder {
    color: var(--vs-input-ph);
}

.video-comment-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--vs-send-border);
    background: var(--vs-send-bg);
    color: var(--vs-send-text);
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.video-comment-send:hover:not(:disabled) {
    color: var(--vs-accent);
    border-color: var(--vs-accent);
}

.video-comment-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.video-comment-login {
    background: var(--vs-login-bg);
    border: 1px dashed var(--vs-login-border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    text-align: center;
    color: var(--vs-login-text);
    font-size: 0.85rem;
}

.video-comment-login p {
    margin: 0;
}

.video-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
}

.video-comments-empty {
    color: var(--vs-empty);
    font-size: 0.85rem;
    text-align: center;
    padding: 16px 0;
}

.video-comment-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: var(--vs-comment-bg);
    border: 1px solid var(--vs-comment-border);
}

.video-comment-avatar {
    flex-shrink: 0;
}

.video-comment-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--vs-avatar-border);
    cursor: pointer;
}

.video-comment-content {
    min-width: 0;
}

.video-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.video-comment-author {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--vs-author);
}

.video-comment-time {
    font-size: 0.7rem;
    color: var(--vs-comment-time);
}

.video-comment-text {
    font-size: 0.85rem;
    color: var(--vs-comment-text);
    word-wrap: break-word;
}

.video-comment-replyto {
    color: var(--vs-accent);
    font-weight: 700;
    cursor: default;
}

.video-comment-actions {
    margin-left: auto;
    display: inline-flex;
    gap: 4px;
}

.video-comment-btn {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vs-comment-border);
    border-radius: 50%;
    background: transparent;
    color: var(--vs-comment-time);
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-comment-btn:hover:not(:disabled) {
    color: var(--vs-accent);
    border-color: var(--vs-accent);
}

.video-comment-btn[data-act="delete"]:hover:not(:disabled) {
    color: #ff5d6c;
    border-color: #ff5d6c;
}

.video-comment-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.video-comment-edit-input {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    border-radius: 8px;
    border: 1px solid var(--vs-input-border, rgba(255, 255, 255, 0.25));
    background: var(--vs-input-bg, rgba(255, 255, 255, 0.08));
    color: #fff;
    padding: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    box-sizing: border-box;
    outline: none;
}

.video-comment-edit-input:focus {
    border-color: var(--vs-accent);
}

.video-comment-edit-btns {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.video-comment-save,
.video-comment-cancel {
    padding: 4px 12px;
    border-radius: 14px;
    border: 1px solid var(--vs-comment-border);
    background: var(--vs-comment-bg);
    color: var(--vs-comment-text);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-comment-save {
    background: var(--vs-accent);
    border-color: var(--vs-accent);
    color: #111;
}

.video-comment-save:hover:not(:disabled) {
    opacity: 0.85;
}

.video-comment-save:disabled {
    opacity: 0.5;
    cursor: default;
}

.video-comment-cancel:hover {
    color: #fff;
}

.video-comment-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.video-comment-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--vs-comment-time);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
    font-family: inherit;
}

.video-comment-like-btn:hover {
    color: var(--vs-accent);
}

.video-comment-like-btn:active {
    transform: scale(1.2);
}

.video-comment-like-btn.liked {
    color: var(--vs-accent);
}

.video-comment-reply-toggle {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--vs-comment-time);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: inherit;
}

.video-comment-reply-toggle:hover {
    color: var(--vs-accent);
}

.video-comment-reply {
    margin-top: 6px;
}

.video-comment-reply .video-comment-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-comment-reply .video-comment-reply-input {
    flex: 1;
}

.video-comment-reply-send,
.video-comment-reply-cancel {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--vs-comment-border);
    background: var(--vs-comment-bg);
    color: var(--vs-comment-time);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-comment-reply-send {
    color: var(--vs-accent);
    border-color: var(--vs-accent);
}

.video-comment-reply-send:hover:not(:disabled) {
    background: var(--vs-accent);
    color: #111;
}

.video-comment-reply-cancel:hover {
    color: #ff5d6c;
    border-color: #ff5d6c;
}

.video-comment-reply-send:disabled {
    opacity: 0.5;
    cursor: default;
}

.video-comment-replies {
    margin-top: 8px;
    padding-left: 14px;
    border-left: 2px solid var(--vs-comment-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-comment-replies .video-comment-item {
    margin: 0;
}

.video-comment-replies .video-comment-replies {
    padding-left: 10px;
}

@media (max-width: 991px) {
    .video-gallery-wrap {
        grid-template-columns: 1fr;
    }
    .video-playlist {
        max-height: 260px;
    }
}

/* ===== Video Gallery Skins (30) ===== */
.video-skin-glass {
    --vs-accent: #ffc107;
    --vs-frame-bg: rgba(255, 255, 255, 0.06);
    --vs-frame-border: rgba(255, 255, 255, 0.35);
    --vs-ph-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    --vs-item-bg: rgba(255, 255, 255, 0.08);
    --vs-item-border: rgba(255, 255, 255, 0.22);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.14);
    --vs-item-active-bg: rgba(255, 255, 255, 0.18);
    --vs-input-bg: rgba(255, 255, 255, 0.1);
    --vs-input-border: rgba(255, 255, 255, 0.3);
    --vs-comment-bg: rgba(255, 255, 255, 0.07);
    --vs-comment-border: rgba(255, 255, 255, 0.16);
    --vs-author: #ffc107;
}

.video-skin-neon {
    --vs-accent: #00e5ff;
    --vs-frame-bg: #0a0a18;
    --vs-frame-border: #00e5ff;
    --vs-ph-grad: linear-gradient(135deg, #0a0a18, #150a30);
    --vs-ph-text: rgba(0, 229, 255, 0.6);
    --vs-title: #00e5ff;
    --vs-desc: rgba(0, 229, 255, 0.55);
    --vs-head: rgba(0, 229, 255, 0.7);
    --vs-item-bg: rgba(0, 229, 255, 0.06);
    --vs-item-border: rgba(0, 229, 255, 0.25);
    --vs-item-hover-bg: rgba(0, 229, 255, 0.12);
    --vs-item-active-bg: rgba(0, 229, 255, 0.16);
    --vs-item-meta: rgba(0, 229, 255, 0.5);
    --vs-input-bg: rgba(0, 229, 255, 0.08);
    --vs-input-border: rgba(0, 229, 255, 0.3);
    --vs-input-ph: rgba(0, 229, 255, 0.45);
    --vs-comment-bg: rgba(0, 229, 255, 0.05);
    --vs-comment-border: rgba(0, 229, 255, 0.16);
    --vs-author: #00e5ff;
    --vs-comment-time: rgba(0, 229, 255, 0.5);
    --vs-comments-head: rgba(0, 229, 255, 0.75);
    --vs-count-bg: rgba(0, 229, 255, 0.12);
    --vs-count-text: #00e5ff;
    --vs-empty: rgba(0, 229, 255, 0.45);
}

.video-skin-flat {
    --vs-accent: var(--primary);
    --vs-frame-bg: var(--surface);
    --vs-frame-border: rgba(255, 255, 255, 0.1);
    --vs-ph-grad: linear-gradient(135deg, var(--surface-2), var(--bg-deep));
    --vs-item-bg: rgba(255, 255, 255, 0.06);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.1);
    --vs-item-active-bg: rgba(255, 255, 255, 0.14);
}

.video-skin-dark {
    --vs-accent: #fff;
    --vs-frame-bg: #0d0d0d;
    --vs-frame-border: rgba(255, 255, 255, 0.14);
    --vs-ph-grad: linear-gradient(135deg, #0d0d0d, #1c1c1c);
    --vs-item-bg: rgba(255, 255, 255, 0.05);
    --vs-item-border: rgba(255, 255, 255, 0.12);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.09);
    --vs-item-active-bg: rgba(255, 255, 255, 0.12);
    --vs-comment-bg: rgba(255, 255, 255, 0.04);
    --vs-comment-border: rgba(255, 255, 255, 0.1);
}

.video-skin-light {
    --vs-accent: #111111;
    --vs-frame-bg: #eaeaea;
    --vs-frame-border: #ddd;
    --vs-ph-grad: linear-gradient(135deg, #f7f7f7, #e2e2e2);
    --vs-ph-text: rgba(0, 0, 0, 0.55);
    --vs-title: #222;
    --vs-desc: rgba(0, 0, 0, 0.6);
    --vs-head: rgba(0, 0, 0, 0.6);
    --vs-item-bg: rgba(0, 0, 0, 0.05);
    --vs-item-border: rgba(0, 0, 0, 0.15);
    --vs-item-hover-bg: rgba(0, 0, 0, 0.09);
    --vs-item-active-bg: rgba(0, 0, 0, 0.12);
    --vs-item-active-shadow: rgba(0, 0, 0, 0.08);
    --vs-item-text: rgba(0, 0, 0, 0.8);
    --vs-item-title: #111;
    --vs-item-meta: rgba(0, 0, 0, 0.5);
    --vs-comments-border: rgba(0, 0, 0, 0.12);
    --vs-comments-head: rgba(0, 0, 0, 0.7);
    --vs-count-bg: rgba(0, 0, 0, 0.08);
    --vs-count-text: rgba(0, 0, 0, 0.6);
    --vs-user-text: rgba(0, 0, 0, 0.85);
    --vs-avatar-border: rgba(0, 0, 0, 0.2);
    --vs-input-bg: rgba(0, 0, 0, 0.06);
    --vs-input-border: rgba(0, 0, 0, 0.2);
    --vs-input-text: #111;
    --vs-input-ph: rgba(0, 0, 0, 0.45);
    --vs-send-bg: rgba(0, 0, 0, 0.08);
    --vs-send-border: rgba(0, 0, 0, 0.2);
    --vs-send-text: rgba(0, 0, 0, 0.7);
    --vs-login-bg: rgba(0, 0, 0, 0.04);
    --vs-login-border: rgba(0, 0, 0, 0.16);
    --vs-login-text: rgba(0, 0, 0, 0.6);
    --vs-comment-bg: rgba(0, 0, 0, 0.04);
    --vs-comment-border: rgba(0, 0, 0, 0.12);
    --vs-author: #111;
    --vs-comment-time: rgba(0, 0, 0, 0.5);
    --vs-comment-text: rgba(0, 0, 0, 0.8);
    --vs-empty: rgba(0, 0, 0, 0.45);
}

.video-skin-gradient {
    --vs-accent: #ffffff;
    --vs-frame-bg: #667eea;
    --vs-frame-border: #fff;
    --vs-ph-grad: linear-gradient(135deg, #667eea, #764ba2);
    --vs-ph-text: rgba(255, 255, 255, 0.8);
    --vs-title: #fff;
    --vs-desc: rgba(255, 255, 255, 0.75);
    --vs-head: rgba(255, 255, 255, 0.85);
    --vs-item-bg: rgba(255, 255, 255, 0.16);
    --vs-item-border: rgba(255, 255, 255, 0.4);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.26);
    --vs-item-active-bg: rgba(255, 255, 255, 0.3);
    --vs-item-text: rgba(255, 255, 255, 0.95);
    --vs-item-title: #fff;
    --vs-item-meta: rgba(255, 255, 255, 0.7);
    --vs-input-bg: rgba(255, 255, 255, 0.18);
    --vs-input-border: rgba(255, 255, 255, 0.45);
    --vs-input-ph: rgba(255, 255, 255, 0.7);
    --vs-comment-bg: rgba(255, 255, 255, 0.14);
    --vs-comment-border: rgba(255, 255, 255, 0.3);
    --vs-author: #fff;
    --vs-comment-time: rgba(255, 255, 255, 0.65);
    --vs-comment-text: rgba(255, 255, 255, 0.95);
}

.video-skin-retro {
    --vs-accent: #01d8ff;
    --vs-frame-bg: #2b0a4d;
    --vs-frame-border: #ff2e9a;
    --vs-ph-grad: linear-gradient(180deg, #2b0a4d, #1a0533);
    --vs-title: #ff2e9a;
    --vs-desc: rgba(255, 46, 154, 0.65);
    --vs-head: rgba(1, 216, 255, 0.75);
    --vs-item-bg: rgba(255, 46, 154, 0.1);
    --vs-item-border: rgba(255, 46, 154, 0.3);
    --vs-item-hover-bg: rgba(1, 216, 255, 0.12);
    --vs-item-active-bg: rgba(1, 216, 255, 0.16);
    --vs-item-text: #e7d7f7;
    --vs-item-title: #01d8ff;
    --vs-item-meta: rgba(1, 216, 255, 0.55);
    --vs-input-bg: rgba(1, 216, 255, 0.1);
    --vs-input-border: rgba(1, 216, 255, 0.35);
    --vs-input-ph: rgba(1, 216, 255, 0.5);
    --vs-comment-bg: rgba(255, 46, 154, 0.08);
    --vs-comment-border: rgba(1, 216, 255, 0.22);
    --vs-author: #01d8ff;
    --vs-comment-time: rgba(255, 46, 154, 0.5);
    --vs-comment-text: rgba(230, 215, 247, 0.95);
}

.video-skin-vapor {
    --vs-accent: #a855f7;
    --vs-frame-bg: #c9b8f0;
    --vs-frame-border: #ffffff;
    --vs-ph-grad: linear-gradient(135deg, #e0c3fc, #8ec5fc);
    --vs-ph-text: rgba(60, 30, 90, 0.7);
    --vs-title: #6b21a8;
    --vs-desc: rgba(30, 58, 138, 0.7);
    --vs-head: rgba(107, 33, 168, 0.75);
    --vs-item-bg: rgba(255, 255, 255, 0.55);
    --vs-item-border: rgba(255, 255, 255, 0.9);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.8);
    --vs-item-active-bg: rgba(255, 255, 255, 0.9);
    --vs-item-text: rgba(60, 30, 90, 0.85);
    --vs-item-title: #6b21a8;
    --vs-item-meta: rgba(60, 30, 90, 0.55);
    --vs-comments-border: rgba(107, 33, 168, 0.25);
    --vs-comments-head: rgba(107, 33, 168, 0.75);
    --vs-count-bg: rgba(255, 255, 255, 0.7);
    --vs-count-text: rgba(76, 29, 149, 0.8);
    --vs-user-text: rgba(60, 30, 90, 0.9);
    --vs-avatar-border: rgba(255, 255, 255, 0.9);
    --vs-input-bg: rgba(255, 255, 255, 0.6);
    --vs-input-border: rgba(168, 85, 247, 0.5);
    --vs-input-text: #4c1d95;
    --vs-input-ph: rgba(76, 29, 149, 0.5);
    --vs-send-bg: rgba(168, 85, 247, 0.15);
    --vs-send-border: rgba(168, 85, 247, 0.5);
    --vs-send-text: #6b21a8;
    --vs-login-bg: rgba(255, 255, 255, 0.5);
    --vs-login-border: rgba(168, 85, 247, 0.4);
    --vs-login-text: rgba(60, 30, 90, 0.7);
    --vs-comment-bg: rgba(255, 255, 255, 0.5);
    --vs-comment-border: rgba(168, 85, 247, 0.3);
    --vs-author: #6b21a8;
    --vs-comment-time: rgba(76, 29, 149, 0.55);
    --vs-comment-text: rgba(40, 20, 60, 0.85);
    --vs-empty: rgba(76, 29, 149, 0.5);
}

.video-skin-hologram {
    --vs-accent: #ffffff;
    --vs-frame-bg: #f5576c;
    --vs-frame-border: #fff;
    --vs-ph-grad: linear-gradient(120deg, #f093fb, #f5576c, #4facfe, #43e97b);
    --vs-ph-text: #fff;
    --vs-title: #fff;
    --vs-desc: rgba(255, 255, 255, 0.85);
    --vs-head: rgba(255, 255, 255, 0.9);
    --vs-item-bg: rgba(255, 255, 255, 0.25);
    --vs-item-border: rgba(255, 255, 255, 0.55);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.4);
    --vs-item-active-bg: rgba(255, 255, 255, 0.5);
    --vs-item-text: #fff;
    --vs-item-title: #fff;
    --vs-item-meta: rgba(255, 255, 255, 0.7);
    --vs-input-bg: rgba(255, 255, 255, 0.3);
    --vs-input-border: rgba(255, 255, 255, 0.6);
    --vs-input-ph: rgba(255, 255, 255, 0.8);
    --vs-comment-bg: rgba(255, 255, 255, 0.2);
    --vs-comment-border: rgba(255, 255, 255, 0.45);
    --vs-author: #fff;
    --vs-comment-time: rgba(255, 255, 255, 0.7);
    --vs-comment-text: #fff;
}

.video-skin-bubblegum {
    --vs-accent: #ec407a;
    --vs-frame-bg: #ffd3e0;
    --vs-frame-border: #fff;
    --vs-ph-grad: linear-gradient(135deg, #ff9a9e, #fecfef);
    --vs-ph-text: rgba(173, 20, 87, 0.7);
    --vs-title: #d81b60;
    --vs-desc: rgba(173, 20, 87, 0.7);
    --vs-head: rgba(173, 20, 87, 0.75);
    --vs-item-bg: rgba(255, 255, 255, 0.6);
    --vs-item-border: rgba(255, 255, 255, 0.95);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.85);
    --vs-item-active-bg: rgba(255, 255, 255, 0.95);
    --vs-item-text: rgba(120, 20, 60, 0.85);
    --vs-item-title: #ad1457;
    --vs-item-meta: rgba(173, 20, 87, 0.55);
    --vs-comments-border: rgba(216, 27, 96, 0.25);
    --vs-comments-head: rgba(173, 20, 87, 0.75);
    --vs-count-bg: rgba(255, 255, 255, 0.7);
    --vs-count-text: rgba(216, 27, 96, 0.8);
    --vs-user-text: rgba(173, 20, 87, 0.9);
    --vs-input-bg: rgba(255, 255, 255, 0.7);
    --vs-input-border: rgba(236, 64, 122, 0.5);
    --vs-input-text: #ad1457;
    --vs-input-ph: rgba(173, 20, 87, 0.5);
    --vs-send-bg: rgba(236, 64, 122, 0.15);
    --vs-send-border: rgba(236, 64, 122, 0.5);
    --vs-send-text: #d81b60;
    --vs-login-bg: rgba(255, 255, 255, 0.55);
    --vs-login-border: rgba(236, 64, 122, 0.4);
    --vs-login-text: rgba(173, 20, 87, 0.7);
    --vs-comment-bg: rgba(255, 255, 255, 0.55);
    --vs-comment-border: rgba(236, 64, 122, 0.3);
    --vs-author: #d81b60;
    --vs-comment-time: rgba(173, 20, 87, 0.55);
    --vs-comment-text: rgba(90, 10, 40, 0.85);
    --vs-empty: rgba(173, 20, 87, 0.5);
}

.video-skin-golden {
    --vs-accent: #d4af37;
    --vs-frame-bg: #2b2111;
    --vs-frame-border: #d4af37;
    --vs-ph-grad: linear-gradient(160deg, #2b2111, #4a3514);
    --vs-title: #f3d97a;
    --vs-desc: rgba(232, 213, 163, 0.7);
    --vs-head: rgba(212, 175, 55, 0.8);
    --vs-item-bg: rgba(212, 175, 55, 0.08);
    --vs-item-border: rgba(212, 175, 55, 0.3);
    --vs-item-hover-bg: rgba(212, 175, 55, 0.16);
    --vs-item-active-bg: rgba(212, 175, 55, 0.2);
    --vs-item-text: rgba(243, 217, 122, 0.9);
    --vs-item-title: #f3d97a;
    --vs-item-meta: rgba(212, 175, 55, 0.5);
    --vs-input-bg: rgba(212, 175, 55, 0.1);
    --vs-input-border: rgba(212, 175, 55, 0.4);
    --vs-input-ph: rgba(232, 213, 163, 0.5);
    --vs-comment-bg: rgba(212, 175, 55, 0.06);
    --vs-comment-border: rgba(212, 175, 55, 0.22);
    --vs-author: #f3d97a;
    --vs-comment-time: rgba(212, 175, 55, 0.5);
    --vs-comment-text: rgba(243, 217, 122, 0.9);
}

.video-skin-ocean {
    --vs-accent: #00d2ff;
    --vs-frame-bg: #0a2a3a;
    --vs-frame-border: rgba(0, 210, 255, 0.4);
    --vs-ph-grad: linear-gradient(180deg, #0a2a3a, #14556b);
    --vs-title: #7ff3ff;
    --vs-desc: rgba(184, 236, 245, 0.7);
    --vs-head: rgba(0, 210, 255, 0.75);
    --vs-item-bg: rgba(0, 180, 216, 0.1);
    --vs-item-border: rgba(0, 210, 255, 0.3);
    --vs-item-hover-bg: rgba(0, 210, 255, 0.16);
    --vs-item-active-bg: rgba(0, 210, 255, 0.2);
    --vs-item-text: rgba(184, 236, 245, 0.9);
    --vs-item-title: #b8ecf5;
    --vs-item-meta: rgba(0, 210, 255, 0.5);
    --vs-input-bg: rgba(0, 210, 255, 0.1);
    --vs-input-border: rgba(0, 210, 255, 0.4);
    --vs-input-ph: rgba(184, 236, 245, 0.5);
    --vs-comment-bg: rgba(0, 210, 255, 0.07);
    --vs-comment-border: rgba(0, 210, 255, 0.22);
    --vs-author: #7ff3ff;
    --vs-comment-time: rgba(0, 210, 255, 0.5);
    --vs-comment-text: rgba(184, 236, 245, 0.9);
}

.video-skin-aurora {
    --vs-accent: #2ed573;
    --vs-frame-bg: #0f2027;
    --vs-frame-border: rgba(46, 213, 115, 0.45);
    --vs-ph-grad: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    --vs-title: #7ff9c2;
    --vs-desc: rgba(185, 230, 255, 0.7);
    --vs-head: rgba(46, 213, 115, 0.8);
    --vs-item-bg: rgba(46, 213, 115, 0.08);
    --vs-item-border: rgba(46, 213, 115, 0.3);
    --vs-item-hover-bg: rgba(46, 213, 115, 0.16);
    --vs-item-active-bg: rgba(46, 213, 115, 0.2);
    --vs-item-title: #b9e6ff;
    --vs-item-meta: rgba(46, 213, 115, 0.5);
    --vs-input-bg: rgba(46, 213, 115, 0.1);
    --vs-input-border: rgba(46, 213, 115, 0.4);
    --vs-input-ph: rgba(185, 230, 255, 0.5);
    --vs-comment-bg: rgba(46, 213, 115, 0.07);
    --vs-comment-border: rgba(46, 213, 115, 0.22);
    --vs-author: #7ff9c2;
    --vs-comment-time: rgba(46, 213, 115, 0.5);
    --vs-comment-text: rgba(185, 230, 255, 0.9);
}

.video-skin-sunset {
    --vs-accent: #f83600;
    --vs-frame-bg: #f9d423;
    --vs-frame-border: #fff;
    --vs-ph-grad: linear-gradient(160deg, #f83600, #f9d423);
    --vs-ph-text: #fff;
    --vs-title: #fff;
    --vs-desc: rgba(255, 255, 255, 0.85);
    --vs-head: rgba(255, 255, 255, 0.9);
    --vs-item-bg: rgba(255, 255, 255, 0.25);
    --vs-item-border: rgba(255, 255, 255, 0.5);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.4);
    --vs-item-active-bg: rgba(255, 255, 255, 0.5);
    --vs-item-text: #fff;
    --vs-item-title: #fff;
    --vs-item-meta: rgba(255, 255, 255, 0.7);
    --vs-input-bg: rgba(255, 255, 255, 0.3);
    --vs-input-border: rgba(255, 255, 255, 0.6);
    --vs-input-ph: rgba(255, 255, 255, 0.8);
    --vs-comment-bg: rgba(255, 255, 255, 0.2);
    --vs-comment-border: rgba(255, 255, 255, 0.45);
    --vs-author: #fff;
    --vs-comment-time: rgba(255, 255, 255, 0.7);
    --vs-comment-text: #fff;
}

.video-skin-midnight {
    --vs-accent: #818cf8;
    --vs-frame-bg: #0f0a2e;
    --vs-frame-border: rgba(129, 140, 248, 0.4);
    --vs-ph-grad: radial-gradient(circle at 30% 20%, #1e1b4b, #0f0a2e, #05020f);
    --vs-title: #c7d2fe;
    --vs-desc: rgba(147, 162, 255, 0.7);
    --vs-head: rgba(129, 140, 248, 0.8);
    --vs-item-bg: rgba(99, 102, 241, 0.12);
    --vs-item-border: rgba(129, 140, 248, 0.3);
    --vs-item-hover-bg: rgba(99, 102, 241, 0.2);
    --vs-item-active-bg: rgba(99, 102, 241, 0.26);
    --vs-item-text: rgba(199, 210, 254, 0.9);
    --vs-item-title: #c7d2fe;
    --vs-item-meta: rgba(129, 140, 248, 0.5);
    --vs-input-bg: rgba(99, 102, 241, 0.12);
    --vs-input-border: rgba(129, 140, 248, 0.4);
    --vs-input-ph: rgba(199, 210, 254, 0.5);
    --vs-comment-bg: rgba(99, 102, 241, 0.1);
    --vs-comment-border: rgba(129, 140, 248, 0.22);
    --vs-author: #c7d2fe;
    --vs-comment-time: rgba(129, 140, 248, 0.5);
    --vs-comment-text: rgba(199, 210, 254, 0.9);
}

.video-skin-coffee {
    --vs-accent: #e8c9a0;
    --vs-frame-bg: #3e2723;
    --vs-frame-border: rgba(200, 160, 120, 0.35);
    --vs-ph-grad: linear-gradient(180deg, #3e2723, #4e342e);
    --vs-title: #e8c9a0;
    --vs-desc: rgba(201, 168, 124, 0.7);
    --vs-head: rgba(200, 160, 120, 0.8);
    --vs-item-bg: rgba(0, 0, 0, 0.25);
    --vs-item-border: rgba(200, 160, 120, 0.3);
    --vs-item-hover-bg: rgba(200, 160, 120, 0.14);
    --vs-item-active-bg: rgba(200, 160, 120, 0.2);
    --vs-item-text: rgba(232, 201, 160, 0.9);
    --vs-item-title: #e8c9a0;
    --vs-item-meta: rgba(200, 160, 120, 0.5);
    --vs-input-bg: rgba(0, 0, 0, 0.3);
    --vs-input-border: rgba(200, 160, 120, 0.4);
    --vs-input-ph: rgba(232, 201, 160, 0.5);
    --vs-comment-bg: rgba(0, 0, 0, 0.25);
    --vs-comment-border: rgba(200, 160, 120, 0.22);
    --vs-author: #e8c9a0;
    --vs-comment-time: rgba(200, 160, 120, 0.5);
    --vs-comment-text: rgba(232, 201, 160, 0.9);
}

.video-skin-matrix {
    --vs-accent: #00ff41;
    --vs-frame-bg: #020d02;
    --vs-frame-border: #00ff41;
    --vs-ph-grad: linear-gradient(135deg, #020d02, #0a1f0a);
    --vs-title: #00ff41;
    --vs-desc: rgba(141, 255, 158, 0.7);
    --vs-head: rgba(0, 255, 65, 0.8);
    --vs-item-bg: rgba(0, 255, 65, 0.06);
    --vs-item-border: rgba(0, 255, 65, 0.35);
    --vs-item-hover-bg: rgba(0, 255, 65, 0.14);
    --vs-item-active-bg: rgba(0, 255, 65, 0.2);
    --vs-item-text: rgba(141, 255, 158, 0.9);
    --vs-item-title: #8dff9e;
    --vs-item-meta: rgba(0, 255, 65, 0.5);
    --vs-input-bg: rgba(0, 255, 65, 0.08);
    --vs-input-border: rgba(0, 255, 65, 0.4);
    --vs-input-ph: rgba(141, 255, 158, 0.5);
    --vs-comment-bg: rgba(0, 255, 65, 0.05);
    --vs-comment-border: rgba(0, 255, 65, 0.2);
    --vs-author: #00ff41;
    --vs-comment-time: rgba(0, 255, 65, 0.5);
    --vs-comment-text: rgba(141, 255, 158, 0.9);
}

.video-skin-space {
    --vs-accent: #a855f7;
    --vs-frame-bg: #1a0b2e;
    --vs-frame-border: rgba(168, 85, 247, 0.45);
    --vs-ph-grad: radial-gradient(circle at 70% 20%, #4a1a7a, #1a0b2e, #05020f);
    --vs-title: #e9d5ff;
    --vs-desc: rgba(196, 181, 253, 0.7);
    --vs-head: rgba(168, 85, 247, 0.8);
    --vs-item-bg: rgba(168, 85, 247, 0.1);
    --vs-item-border: rgba(168, 85, 247, 0.3);
    --vs-item-hover-bg: rgba(168, 85, 247, 0.18);
    --vs-item-active-bg: rgba(168, 85, 247, 0.24);
    --vs-item-title: #e9d5ff;
    --vs-item-meta: rgba(168, 85, 247, 0.5);
    --vs-input-bg: rgba(168, 85, 247, 0.12);
    --vs-input-border: rgba(168, 85, 247, 0.4);
    --vs-input-ph: rgba(233, 213, 255, 0.5);
    --vs-comment-bg: rgba(168, 85, 247, 0.09);
    --vs-comment-border: rgba(168, 85, 247, 0.24);
    --vs-author: #e9d5ff;
    --vs-comment-time: rgba(168, 85, 247, 0.5);
    --vs-comment-text: rgba(233, 213, 255, 0.9);
}

.video-skin-mono {
    --vs-accent: #fff;
    --vs-frame-bg: #171717;
    --vs-frame-border: #333;
    --vs-ph-grad: linear-gradient(135deg, #171717, #262626);
    --vs-title: #fff;
    --vs-desc: #aaa;
    --vs-head: rgba(255, 255, 255, 0.6);
    --vs-item-bg: #1f1f1f;
    --vs-item-border: #3a3a3a;
    --vs-item-hover-bg: #2a2a2a;
    --vs-item-active-bg: #303030;
    --vs-item-text: #ddd;
    --vs-item-title: #fff;
    --vs-item-meta: #888;
    --vs-input-bg: #262626;
    --vs-input-border: #3f3f3f;
    --vs-input-ph: #999;
    --vs-comment-bg: #1f1f1f;
    --vs-comment-border: #333;
    --vs-author: #fff;
    --vs-comment-time: #888;
    --vs-comment-text: #ccc;
}

.video-skin-rose {
    --vs-accent: #b76e79;
    --vs-frame-bg: #f0c9c9;
    --vs-frame-border: #e8b4b8;
    --vs-ph-grad: linear-gradient(135deg, #e8b4b8, #f4c6c6, #d8a7a0);
    --vs-ph-text: rgba(90, 40, 40, 0.7);
    --vs-title: #6d3b3b;
    --vs-desc: rgba(90, 40, 40, 0.7);
    --vs-head: rgba(183, 110, 121, 0.8);
    --vs-item-bg: rgba(255, 255, 255, 0.5);
    --vs-item-border: rgba(216, 167, 160, 0.5);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.75);
    --vs-item-active-bg: rgba(255, 255, 255, 0.85);
    --vs-item-text: rgba(90, 40, 40, 0.85);
    --vs-item-title: #6d3b3b;
    --vs-item-meta: rgba(183, 110, 121, 0.6);
    --vs-comments-border: rgba(183, 110, 121, 0.3);
    --vs-comments-head: rgba(109, 59, 59, 0.75);
    --vs-count-bg: rgba(255, 255, 255, 0.6);
    --vs-count-text: rgba(183, 110, 121, 0.8);
    --vs-user-text: rgba(90, 40, 40, 0.9);
    --vs-input-bg: rgba(255, 255, 255, 0.6);
    --vs-input-border: rgba(183, 110, 121, 0.5);
    --vs-input-text: #6d3b3b;
    --vs-input-ph: rgba(183, 110, 121, 0.5);
    --vs-send-bg: rgba(183, 110, 121, 0.15);
    --vs-send-border: rgba(183, 110, 121, 0.5);
    --vs-send-text: #b76e79;
    --vs-login-bg: rgba(255, 255, 255, 0.5);
    --vs-login-border: rgba(183, 110, 121, 0.4);
    --vs-login-text: rgba(90, 40, 40, 0.7);
    --vs-comment-bg: rgba(255, 255, 255, 0.5);
    --vs-comment-border: rgba(183, 110, 121, 0.3);
    --vs-author: #6d3b3b;
    --vs-comment-time: rgba(183, 110, 121, 0.55);
    --vs-comment-text: rgba(60, 25, 25, 0.85);
    --vs-empty: rgba(109, 59, 59, 0.5);
}

.video-skin-sakura {
    --vs-accent: #f06292;
    --vs-frame-bg: #fbd7de;
    --vs-frame-border: #f8bbd0;
    --vs-ph-grad: linear-gradient(135deg, #fdeff2, #f9c7d0, #f8bbd0);
    --vs-ph-text: rgba(173, 20, 87, 0.7);
    --vs-title: #ad1457;
    --vs-desc: rgba(194, 24, 91, 0.7);
    --vs-head: rgba(194, 24, 91, 0.8);
    --vs-item-bg: rgba(255, 255, 255, 0.55);
    --vs-item-border: rgba(240, 98, 146, 0.5);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.8);
    --vs-item-active-bg: rgba(255, 255, 255, 0.9);
    --vs-item-text: rgba(120, 20, 60, 0.85);
    --vs-item-title: #ad1457;
    --vs-item-meta: rgba(240, 98, 146, 0.6);
    --vs-comments-border: rgba(240, 98, 146, 0.3);
    --vs-comments-head: rgba(173, 20, 87, 0.75);
    --vs-count-bg: rgba(255, 255, 255, 0.65);
    --vs-count-text: rgba(194, 24, 91, 0.8);
    --vs-user-text: rgba(120, 20, 60, 0.9);
    --vs-input-bg: rgba(255, 255, 255, 0.65);
    --vs-input-border: rgba(240, 98, 146, 0.5);
    --vs-input-text: #ad1457;
    --vs-input-ph: rgba(194, 24, 91, 0.5);
    --vs-send-bg: rgba(240, 98, 146, 0.15);
    --vs-send-border: rgba(240, 98, 146, 0.5);
    --vs-send-text: #ad1457;
    --vs-login-bg: rgba(255, 255, 255, 0.5);
    --vs-login-border: rgba(240, 98, 146, 0.4);
    --vs-login-text: rgba(120, 20, 60, 0.7);
    --vs-comment-bg: rgba(255, 255, 255, 0.55);
    --vs-comment-border: rgba(240, 98, 146, 0.3);
    --vs-author: #ad1457;
    --vs-comment-time: rgba(194, 24, 91, 0.55);
    --vs-comment-text: rgba(70, 10, 40, 0.85);
    --vs-empty: rgba(173, 20, 87, 0.5);
}

.video-skin-lavender {
    --vs-accent: #7e57c2;
    --vs-frame-bg: #cbbde4;
    --vs-frame-border: #b39ddb;
    --vs-ph-grad: linear-gradient(135deg, #9575cd, #7e57c2, #b39ddb);
    --vs-ph-text: rgba(255, 255, 255, 0.8);
    --vs-title: #4527a0;
    --vs-desc: rgba(69, 39, 160, 0.7);
    --vs-head: rgba(69, 39, 160, 0.8);
    --vs-item-bg: rgba(255, 255, 255, 0.5);
    --vs-item-border: rgba(126, 87, 194, 0.45);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.75);
    --vs-item-active-bg: rgba(255, 255, 255, 0.85);
    --vs-item-text: rgba(40, 25, 80, 0.85);
    --vs-item-title: #4527a0;
    --vs-item-meta: rgba(126, 87, 194, 0.6);
    --vs-comments-border: rgba(126, 87, 194, 0.3);
    --vs-comments-head: rgba(69, 39, 160, 0.75);
    --vs-count-bg: rgba(255, 255, 255, 0.6);
    --vs-count-text: rgba(69, 39, 160, 0.8);
    --vs-user-text: rgba(40, 25, 80, 0.9);
    --vs-input-bg: rgba(255, 255, 255, 0.6);
    --vs-input-border: rgba(126, 87, 194, 0.5);
    --vs-input-text: #4527a0;
    --vs-input-ph: rgba(126, 87, 194, 0.5);
    --vs-send-bg: rgba(126, 87, 194, 0.15);
    --vs-send-border: rgba(126, 87, 194, 0.5);
    --vs-send-text: #7e57c2;
    --vs-login-bg: rgba(255, 255, 255, 0.5);
    --vs-login-border: rgba(126, 87, 194, 0.4);
    --vs-login-text: rgba(40, 25, 80, 0.7);
    --vs-comment-bg: rgba(255, 255, 255, 0.5);
    --vs-comment-border: rgba(126, 87, 194, 0.3);
    --vs-author: #4527a0;
    --vs-comment-time: rgba(126, 87, 194, 0.55);
    --vs-comment-text: rgba(30, 18, 60, 0.85);
    --vs-empty: rgba(69, 39, 160, 0.5);
}

.video-skin-mint {
    --vs-accent: #00897b;
    --vs-frame-bg: #a9ddd6;
    --vs-frame-border: #80cbc4;
    --vs-ph-grad: linear-gradient(135deg, #b2dfdb, #80cbc4, #4db6ac);
    --vs-ph-text: rgba(0, 77, 64, 0.7);
    --vs-title: #004d40;
    --vs-desc: rgba(0, 105, 92, 0.7);
    --vs-head: rgba(0, 77, 64, 0.8);
    --vs-item-bg: rgba(255, 255, 255, 0.55);
    --vs-item-border: rgba(77, 182, 172, 0.5);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.8);
    --vs-item-active-bg: rgba(255, 255, 255, 0.9);
    --vs-item-text: rgba(0, 50, 40, 0.85);
    --vs-item-title: #004d40;
    --vs-item-meta: rgba(77, 182, 172, 0.6);
    --vs-comments-border: rgba(77, 182, 172, 0.3);
    --vs-comments-head: rgba(0, 77, 64, 0.75);
    --vs-count-bg: rgba(255, 255, 255, 0.6);
    --vs-count-text: rgba(0, 105, 92, 0.8);
    --vs-user-text: rgba(0, 50, 40, 0.9);
    --vs-input-bg: rgba(255, 255, 255, 0.6);
    --vs-input-border: rgba(77, 182, 172, 0.5);
    --vs-input-text: #004d40;
    --vs-input-ph: rgba(0, 105, 92, 0.5);
    --vs-send-bg: rgba(0, 137, 123, 0.15);
    --vs-send-border: rgba(0, 137, 123, 0.5);
    --vs-send-text: #00897b;
    --vs-login-bg: rgba(255, 255, 255, 0.5);
    --vs-login-border: rgba(77, 182, 172, 0.4);
    --vs-login-text: rgba(0, 50, 40, 0.7);
    --vs-comment-bg: rgba(255, 255, 255, 0.55);
    --vs-comment-border: rgba(77, 182, 172, 0.3);
    --vs-author: #004d40;
    --vs-comment-time: rgba(77, 182, 172, 0.55);
    --vs-comment-text: rgba(0, 40, 32, 0.85);
    --vs-empty: rgba(0, 77, 64, 0.5);
}

.video-skin-peach {
    --vs-accent: #ef6c00;
    --vs-frame-bg: #ffe6c2;
    --vs-frame-border: #ffcc80;
    --vs-ph-grad: linear-gradient(135deg, #ffe0b2, #ffcc80, #ffb74d);
    --vs-ph-text: rgba(230, 81, 0, 0.7);
    --vs-title: #e65100;
    --vs-desc: rgba(239, 108, 0, 0.7);
    --vs-head: rgba(230, 81, 0, 0.8);
    --vs-item-bg: rgba(255, 255, 255, 0.55);
    --vs-item-border: rgba(255, 183, 77, 0.55);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.8);
    --vs-item-active-bg: rgba(255, 255, 255, 0.9);
    --vs-item-text: rgba(120, 45, 0, 0.85);
    --vs-item-title: #e65100;
    --vs-item-meta: rgba(239, 108, 0, 0.6);
    --vs-comments-border: rgba(255, 183, 77, 0.35);
    --vs-comments-head: rgba(230, 81, 0, 0.75);
    --vs-count-bg: rgba(255, 255, 255, 0.6);
    --vs-count-text: rgba(230, 81, 0, 0.8);
    --vs-user-text: rgba(120, 45, 0, 0.9);
    --vs-input-bg: rgba(255, 255, 255, 0.6);
    --vs-input-border: rgba(255, 183, 77, 0.55);
    --vs-input-text: #e65100;
    --vs-input-ph: rgba(239, 108, 0, 0.5);
    --vs-send-bg: rgba(239, 108, 0, 0.15);
    --vs-send-border: rgba(239, 108, 0, 0.5);
    --vs-send-text: #ef6c00;
    --vs-login-bg: rgba(255, 255, 255, 0.5);
    --vs-login-border: rgba(255, 183, 77, 0.45);
    --vs-login-text: rgba(120, 45, 0, 0.7);
    --vs-comment-bg: rgba(255, 255, 255, 0.55);
    --vs-comment-border: rgba(255, 183, 77, 0.35);
    --vs-author: #e65100;
    --vs-comment-time: rgba(239, 108, 0, 0.55);
    --vs-comment-text: rgba(80, 30, 0, 0.85);
    --vs-empty: rgba(230, 81, 0, 0.5);
}

.video-skin-fire {
    --vs-accent: #ff9100;
    --vs-frame-bg: #3d0a00;
    --vs-frame-border: #ff9100;
    --vs-ph-grad: linear-gradient(90deg, #ff3d00, #ff6d00, #b71c1c);
    --vs-title: #ffcc80;
    --vs-desc: rgba(255, 224, 178, 0.7);
    --vs-head: rgba(255, 145, 0, 0.85);
    --vs-item-bg: rgba(255, 61, 0, 0.1);
    --vs-item-border: rgba(255, 145, 0, 0.35);
    --vs-item-hover-bg: rgba(255, 145, 0, 0.18);
    --vs-item-active-bg: rgba(255, 145, 0, 0.24);
    --vs-item-text: rgba(255, 224, 178, 0.9);
    --vs-item-title: #ffe0b2;
    --vs-item-meta: rgba(255, 145, 0, 0.55);
    --vs-input-bg: rgba(255, 61, 0, 0.14);
    --vs-input-border: rgba(255, 145, 0, 0.45);
    --vs-input-ph: rgba(255, 224, 178, 0.5);
    --vs-comment-bg: rgba(255, 61, 0, 0.09);
    --vs-comment-border: rgba(255, 145, 0, 0.26);
    --vs-author: #ffcc80;
    --vs-comment-time: rgba(255, 145, 0, 0.55);
    --vs-comment-text: rgba(255, 224, 178, 0.9);
}

.video-skin-ice {
    --vs-accent: #81d4fa;
    --vs-frame-bg: #0d3b66;
    --vs-frame-border: #81d4fa;
    --vs-ph-grad: linear-gradient(90deg, #0d47a1, #26c6da, #e0f7fa, #26c6da);
    --vs-ph-text: rgba(255, 255, 255, 0.8);
    --vs-title: #e0f7fa;
    --vs-desc: rgba(225, 245, 254, 0.75);
    --vs-head: rgba(129, 212, 250, 0.85);
    --vs-item-bg: rgba(38, 198, 218, 0.1);
    --vs-item-border: rgba(129, 212, 250, 0.35);
    --vs-item-hover-bg: rgba(38, 198, 218, 0.2);
    --vs-item-active-bg: rgba(38, 198, 218, 0.26);
    --vs-item-text: rgba(225, 245, 254, 0.9);
    --vs-item-title: #e1f5fe;
    --vs-item-meta: rgba(129, 212, 250, 0.55);
    --vs-input-bg: rgba(38, 198, 218, 0.12);
    --vs-input-border: rgba(129, 212, 250, 0.45);
    --vs-input-ph: rgba(225, 245, 254, 0.55);
    --vs-comment-bg: rgba(38, 198, 218, 0.09);
    --vs-comment-border: rgba(129, 212, 250, 0.26);
    --vs-author: #e0f7fa;
    --vs-comment-time: rgba(129, 212, 250, 0.55);
    --vs-comment-text: rgba(225, 245, 254, 0.9);
}

.video-skin-royal {
    --vs-accent: #ffd700;
    --vs-frame-bg: #1a0933;
    --vs-frame-border: rgba(255, 215, 0, 0.5);
    --vs-ph-grad: radial-gradient(circle at 50% 20%, #4a148c, #1a0933);
    --vs-title: #ffd700;
    --vs-desc: rgba(179, 136, 255, 0.75);
    --vs-head: rgba(255, 215, 0, 0.8);
    --vs-item-bg: rgba(255, 215, 0, 0.08);
    --vs-item-border: rgba(255, 215, 0, 0.3);
    --vs-item-hover-bg: rgba(255, 215, 0, 0.16);
    --vs-item-active-bg: rgba(255, 215, 0, 0.22);
    --vs-item-text: rgba(255, 215, 0, 0.9);
    --vs-item-title: #ffd700;
    --vs-item-meta: rgba(255, 215, 0, 0.5);
    --vs-input-bg: rgba(255, 215, 0, 0.1);
    --vs-input-border: rgba(255, 215, 0, 0.4);
    --vs-input-ph: rgba(255, 215, 0, 0.5);
    --vs-comment-bg: rgba(255, 215, 0, 0.07);
    --vs-comment-border: rgba(255, 215, 0, 0.22);
    --vs-author: #ffd700;
    --vs-comment-time: rgba(255, 215, 0, 0.5);
    --vs-comment-text: rgba(179, 136, 255, 0.9);
}

.video-skin-glitch {
    --vs-accent: #00e5ff;
    --vs-frame-bg: #0f0f1a;
    --vs-frame-border: #ff2ef4;
    --vs-ph-grad: linear-gradient(180deg, #0f0f1a, #1a0b2e);
    --vs-ph-text: rgba(0, 229, 255, 0.6);
    --vs-title: #fff;
    --vs-desc: rgba(179, 157, 219, 0.75);
    --vs-head: rgba(255, 46, 244, 0.8);
    --vs-item-bg: rgba(255, 46, 244, 0.08);
    --vs-item-border: rgba(0, 229, 255, 0.3);
    --vs-item-hover-bg: rgba(255, 46, 244, 0.16);
    --vs-item-active-bg: rgba(0, 229, 255, 0.16);
    --vs-item-text: rgba(200, 190, 230, 0.9);
    --vs-item-title: #b39ddb;
    --vs-item-meta: rgba(0, 229, 255, 0.55);
    --vs-input-bg: rgba(255, 46, 244, 0.1);
    --vs-input-border: rgba(0, 229, 255, 0.4);
    --vs-input-ph: rgba(0, 229, 255, 0.5);
    --vs-comment-bg: rgba(255, 46, 244, 0.07);
    --vs-comment-border: rgba(0, 229, 255, 0.22);
    --vs-author: #fff;
    --vs-comment-time: rgba(0, 229, 255, 0.55);
    --vs-comment-text: rgba(200, 190, 230, 0.9);
}

.video-skin-prism {
    --vs-accent: #2979ff;
    --vs-frame-bg: #9c27b0;
    --vs-frame-border: #fff;
    --vs-ph-grad: linear-gradient(90deg, #ff1744, #ff9100, #ffea00, #00e676, #2979ff, #d500f9);
    --vs-ph-text: #fff;
    --vs-title: #fff;
    --vs-desc: rgba(255, 255, 255, 0.85);
    --vs-head: rgba(255, 255, 255, 0.9);
    --vs-item-bg: rgba(255, 255, 255, 0.25);
    --vs-item-border: rgba(255, 255, 255, 0.5);
    --vs-item-hover-bg: rgba(255, 255, 255, 0.4);
    --vs-item-active-bg: rgba(255, 255, 255, 0.5);
    --vs-item-text: #fff;
    --vs-item-title: #fff;
    --vs-item-meta: rgba(255, 255, 255, 0.7);
    --vs-input-bg: rgba(255, 255, 255, 0.3);
    --vs-input-border: rgba(255, 255, 255, 0.6);
    --vs-input-ph: rgba(255, 255, 255, 0.85);
    --vs-comment-bg: rgba(255, 255, 255, 0.22);
    --vs-comment-border: rgba(255, 255, 255, 0.45);
    --vs-author: #fff;
    --vs-comment-time: rgba(255, 255, 255, 0.7);
    --vs-comment-text: #fff;
}

.chat-image-preview {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    max-width: 160px;
}

.chat-image-preview img {
    max-width: 160px;
    max-height: 90px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.btn-chat-image-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #e63946;
    color: #fff;
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-msg-image {
    display: block;
    max-width: 100%;
    max-height: 240px;
    border-radius: 8px;
    margin-top: 6px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-msg-gif {
    display: block;
    max-width: 220px;
    max-height: 220px;
    width: auto;
    height: auto;
    border-radius: 8px;
    margin-top: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-card {
    position: relative;
}

.chat-auth {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.78), rgba(41, 41, 41, 0.78));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    z-index: 5;
    text-align: center;
}

.chat-auth-head i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.chat-auth-head h4 {
    color: #fff;
    font-family: var(--brand-font);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.chat-auth-head p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.chat-auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: 25px;
}

.chat-auth-tab {
    padding: 7px 22px;
    border-radius: 20px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--nav-font);
}

.chat-auth-tab.active {
    background: linear-gradient(135deg, #e63946, #ff8f00);
    color: #fff;
}

.chat-auth-form {
    width: 100%;
    max-width: 300px;
}

.chat-auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 9px 14px;
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 9px;
    outline: none;
    font-family: var(--nav-font);
    transition: border-color 0.3s;
}

.chat-auth-input:focus {
    border-color: var(--primary);
}

.chat-auth-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-auth-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #e63946, #ff8f00);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--nav-font);
    transition: transform 0.2s, box-shadow 0.3s;
}

.chat-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

.chat-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    margin: 16px 0 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-auth-divider::before,
.chat-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.chat-auth-friendstag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--nav-font);
    transition: all 0.3s;
}

.chat-auth-friendstag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    color: #fff;
    text-decoration: none;
}

.chat-auth-msg {
    margin-top: 12px;
    font-size: 0.8rem;
    display: none;
    padding: 7px 12px;
    border-radius: 8px;
}

.chat-auth-msg.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ff7b8c;
}

.chat-auth-msg.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.chat-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 193, 7, 0.15);
    color: var(--primary);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    padding: 4px 8px 4px 4px;
    font-size: 0.78rem;
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.chat-topbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.chat-chip-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.btn-chat-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 193, 7, 0.4);
    background: rgba(255, 193, 7, 0.12);
    color: var(--primary);
    font-size: 0.6rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s;
}

.btn-chat-avatar:hover {
    background: rgba(255, 193, 7, 0.3);
}

.chat-profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 4px 14px;
    border-bottom: 1px solid #eee;
}

.chat-profile-avatar-body .btn-chat-avatar {
    width: auto;
    height: auto;
    min-height: 38px;
    border-radius: 22px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #000;
    background: #f4f4f4;
}

.chat-profile-avatar-body .btn-chat-avatar i {
    font-size: 0.9rem;
    color: var(--primary-dark, #b8860b);
}

.chat-profile-avatar-body .chat-profile-frame-picker {
    width: 100%;
    margin-top: 6px;
}

.btn-chat-logout {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.15);
    color: #ff7b8c;
    font-size: 0.95rem;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-chat-logout:hover {
    background: #ef4444;
    color: #fff;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.3);
    border-radius: 3px;
}

/* ===== Social Card ===== */
.social-card {
    padding: 15px !important;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    font-weight: 600;
}

.social-link i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.social-link.facebook { background: rgba(66, 103, 178, 0.35); }
.social-link.facebook:hover { background: #4267B2; }
.social-link.twitter { background: rgba(29, 161, 242, 0.35); }
.social-link.twitter:hover { background: #1DA1F2; }
.social-link.instagram { background: rgba(225, 48, 108, 0.35); }
.social-link.instagram:hover { background: #E1306C; }
.social-link.youtube { background: rgba(255, 0, 0, 0.35); }
.social-link.youtube:hover { background: #FF0000; }

.social-feed {
    max-height: 350px;
    overflow-y: auto;
}

.feed-item {
    display: flex;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feed-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.feed-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-right: 10px;
    flex-shrink: 0;
}

.feed-content {
    flex: 1;
    min-width: 0;
}

.feed-text {
    color: #fff;
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.feed-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
}

.feed-time i {
    margin-right: 3px;
}

.social-feed::-webkit-scrollbar {
    width: 6px;
}

.social-feed::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.3);
    border-radius: 3px;
}

/* ===== Sponsor Slider ===== */
/* ===== DJ Gallery (Bootstrap carousel) ===== */
.dj-carousel .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
}

.dj-carousel-row {
    margin: 0;
}

.dj-carousel-col {
    padding: 0 6px;
}

.dj-carousel-card {
    position: relative;
    display: block;
    height: 300px;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.14);
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(15, 76, 129, 0.10);
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dj-card-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: rgba(13, 71, 161, 0.5);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.25);
    transition: all 0.2s ease;
}

.dj-card-heart:hover {
    transform: scale(1.06);
    color: #e63946;
}

.dj-card-heart.liked {
    color: #e63946;
}

.dj-modal-img-wrap {
    position: relative;
}

.dj-modal-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: rgba(13, 71, 161, 0.5);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(15, 76, 129, 0.25);
    transition: all 0.2s ease;
}

.dj-modal-heart:hover {
    transform: scale(1.05);
    color: #e63946;
}

.dj-modal-heart.liked {
    color: #e63946;
}

.dj-modal-img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f2f7fc 100%);
}

.dj-modal-comment {
    margin-top: 14px;
    color: #0d47a1;
    white-space: pre-wrap;
}

/* Keep the DJ modal above the fixed bottom player bar (z-index 1080),
   the fullscreen chat card (z-index 20000), and the page header.
   Same tier as the chat/feed modals (2147483005 / backdrop 2147483004). */
#djModal {
    z-index: 2147483005;
}

#djModal.show ~ .modal-backdrop.show {
    z-index: 2147483004;
}

/* Keep the song request modal above the fixed bottom player bar, the
   fullscreen chat card (z-index 20000), and the page header.
   Same tier as the chat/feed modals (2147483005 / backdrop 2147483004). */
#songRequestModal {
    z-index: 2147483005;
}

#songRequestModal.show ~ .modal-backdrop.show {
    z-index: 2147483004;
}

/* Keep the Friendstag connect modal above the fixed bottom player bar
   (z-index 1080), the fullscreen chat card (z-index 20000), and the page
   header. Same tier as the DJ / song request modals (2147483005 / backdrop
   2147483004) so it stays above its own backdrop. */
#friendstagModal {
    z-index: 2147483005;
}

#friendstagModal.show ~ .modal-backdrop.show {
    z-index: 2147483004;
}

/* Show the on-air DJ's photo faded out as the song request modal background.
   JS sets --dj-bg to the DJ avatar when the modal targets a live DJ. */
#songRequestModal .modal-content {
    position: relative;
    overflow: hidden;
}
#songRequestModal .modal-content.dj-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--dj-bg, none);
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    border-radius: inherit;
}
#songRequestModal .modal-content.dj-bg > * {
    position: relative;
    z-index: 1;
}

/* Keep the chat user profile modal above the fixed bottom player bar too */
#chatProfileModal {
    z-index: 2000;
}

#chatProfileModal ~ .modal-backdrop.show {
    z-index: 1990;
}

/* Frame store opens on top of the chat profile modal (which gets an inline z-index of 2147483000) */
#frameStoreModal {
    z-index: 2147483001;
}

#frameStoreModal ~ .modal-backdrop.show {
    z-index: 2147483000;
}

/* Item store opens on top of the chat profile + note modals, same as the frame store */
#itemStoreModal {
    z-index: 2147483001;
}

#itemStoreModal ~ .modal-backdrop.show {
    z-index: 2147483000;
}

/* Keep the chat note modals above the fixed bottom player bar too */
#chatNoteModal,
#chatNoteViewModal {
    z-index: 2000;
}

#chatNoteModal ~ .modal-backdrop.show,
#chatNoteViewModal ~ .modal-backdrop.show {
    z-index: 1990;
}

.dj-modal-comments {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 76, 129, 0.15);
}

.dj-modal-comments-head {
    font-family: var(--brand-font);
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 12px;
}

.dj-modal-comment-count {
    display: inline-block;
    background: rgba(30, 136, 229, 0.12);
    color: #1e88e5;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 0.8rem;
    margin-left: 4px;
}

.dj-modal-comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.dj-modal-comment-form {
    margin-bottom: 12px;
}

.dj-comments-empty,
.dj-comments-loading {
    color: rgba(13, 71, 161, 0.6);
    font-size: 0.88rem;
    padding: 8px 0;
    text-align: center;
}

/* Latest News comment style - light theme overrides */
.dj-modal-comments .post-comment-item {
    background: rgba(30, 136, 229, 0.06);
    border: 1px solid rgba(15, 76, 129, 0.12);
}

.dj-modal-comments .post-comment-avatar {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    color: #fff;
}

.dj-modal-comments .post-comment-author {
    color: #0d47a1;
}

.dj-modal-comments .post-comment-time {
    color: rgba(13, 71, 161, 0.55);
}

.dj-modal-comments .post-comment-text {
    color: rgba(13, 71, 161, 0.92);
}

.dj-modal-comments .post-comment-like-btn {
    color: rgba(13, 71, 161, 0.45);
}

.dj-modal-comments .post-comment-like-btn:hover,
.dj-modal-comments .post-comment-like-btn.liked {
    color: #e63946;
}

.dj-modal-comments .post-comment-btn {
    color: rgba(230, 57, 70, 0.7);
}

.dj-modal-comments .post-comment-btn:hover {
    color: #e63946;
    background: rgba(230, 57, 70, 0.1);
}

.dj-modal-comments .post-comment-input-row {
    background: rgba(30, 136, 229, 0.06);
    border: 1px solid rgba(30, 136, 229, 0.3);
}

.dj-modal-comments .post-comment-input-row:focus-within {
    border-color: rgba(30, 136, 229, 0.6);
}

.dj-modal-comments .post-comment-input {
    color: #0d47a1;
}

.dj-modal-comments .post-comment-input::placeholder {
    color: rgba(13, 71, 161, 0.45);
}

.dj-modal-comments .post-comment-send {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
}

.dj-modal-comments .post-comment-login p {
    color: rgba(13, 71, 161, 0.6);
    margin: 0;
}

.dj-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(30, 136, 229, 0.20);
    border-color: rgba(30, 136, 229, 0.5);
    text-decoration: none;
}

.dj-carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    background: linear-gradient(180deg, #ffffff 0%, #f2f7fc 100%);
    box-sizing: border-box;
}

.dj-carousel-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #1e88e5;
}

.dj-carousel-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 14px 12px;
    background: linear-gradient(180deg, transparent, rgba(8, 26, 43, 0.78));
    font-family: var(--brand-font);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
}

.dj-carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(13, 71, 161, 0.35);
    border: 0;
    margin: 0 5px;
}

.dj-carousel-indicators li.active {
    background-color: #1e88e5;
}

.dj-carousel-ctrl-icon {
    filter: invert(32%) sepia(89%) saturate(1678%) hue-rotate(197deg) brightness(92%) contrast(90%);
}

.dj-carousel-ctrl {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.dj-carousel-ctrl:hover {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .dj-carousel-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===== Partners (rectangle images with links) ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.partner-card {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.partner-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary, #ffc107);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    text-decoration: none;
}

.partner-image {
    display: block;
    aspect-ratio: 2 / 1;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
}

.partner-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-card:hover .partner-image img {
    transform: scale(1.04);
}

/* ===== Footer ===== */
.footer {
    color: #fff;
    padding: 50px 0 0;
    background: #1b1b1b;
    border-top: 5px solid #ffc107;
    margin-top: auto;
    position: relative;
}

.footer[style*="--footer-bg:"] {
    background-image: var(--footer-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(27, 27, 27, var(--footer-bg-overlay, 0.5));
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-family: var(--brand-font);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: linear-gradient(180deg, rgba(230, 57, 70, 1) 0%, rgba(255, 143, 0, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer p {
    font-size: 0.85rem;
    opacity: 0.75;
}

.footer p.footer-desc {
    color: #ffffff;
    opacity: 1;
}

.footer p.footer-contact {
    color: #ffffff;
    opacity: 1;
}

.footer p i {
    margin-right: 8px;
    color: var(--primary);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: #1b1b1b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.footer-copy {
    color: #ffffff;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.footer-shine {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.footer-legends {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.footer a {
    color: var(--primary);
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* ===== Listeners Worldwide footer globe ===== */
.visitor-globe-row {
    display: flex;
    justify-content: center;
    margin: 34px 0 6px;
    position: relative;
    z-index: 1;
}

.visitor-globe-wrap {
    width: 100%;
    max-width: 760px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 20px 20px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.visitor-globe-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.visitor-globe-head > i {
    font-size: 1.35rem;
    color: var(--primary);
    filter: drop-shadow(0 0 6px rgba(30, 144, 255, 0.6));
}

.visitor-globe-title {
    font-family: var(--brand-font);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
}

.visitor-globe-total {
    margin-left: auto;
    font-family: var(--brand-font);
    font-weight: 700;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.visitor-globe-total small {
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.72rem;
}

.visitor-globe-body {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.visitor-globe-sphere {
    position: relative;
    width: min(320px, 72vw);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: visible;
}

.visitor-globe-sphere::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(30, 144, 255, 0.18), rgba(30, 144, 255, 0) 62%);
    pointer-events: none;
}

.visitor-globe-sphere canvas {
    display: block;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    cursor: grab;
    touch-action: none;
}

.visitor-globe-sphere canvas:active {
    cursor: grabbing;
}

.visitor-globe-pins {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 50%;
    pointer-events: none;
}

.vg-pin {
    position: absolute;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s linear;
    cursor: pointer;
    pointer-events: auto;
}

.vg-pin i {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe27a, #ff9d00 70%);
    box-shadow: 0 0 6px rgba(255, 180, 0, 0.9);
}

.vg-pin .vg-bubble {
    position: absolute;
    bottom: 10px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-direction: row;
    padding: 3px 8px 3px 4px;
    border-radius: 999px;
    background: rgba(10, 16, 30, 0.92);
    border: 1px solid rgba(255, 193, 7, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    transform: translateX(-50%);
    white-space: nowrap;
    backdrop-filter: blur(2px);
}

.vg-pin .vg-bubble::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: calc(50% - 4px);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255, 193, 7, 0.5);
}

.vg-pin .vg-bubble .vg-flag-icon {
    flex-shrink: 0;
    width: 22px;
    height: 17px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.vg-pin .vg-bubble .vg-flag-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vg-pin .vg-bubble .vg-avatar-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(74, 222, 128, 0.85);
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.45);
    background: #0b1526;
}

.vg-pin .vg-bubble .vg-avatar-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vg-pin .vg-bubble .vg-bubble-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
    min-width: 0;
}

.vg-pin .vg-bubble .vg-country-name {
    font-size: 0.6rem;
    font-weight: 600;
    color: #fff;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vg-pin .vg-bubble .vg-member-name {
    font-size: 0.62rem;
    font-weight: 700;
    color: #ffc107;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vg-pin .vg-bubble .vg-member-name::before {
    content: "\f2bd";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 4px;
    color: #4ade80;
}

.vg-pin::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(255, 180, 0, 0.35);
}

@keyframes vgPing {
    0% { transform: scale(0.5); opacity: 0.9; }
    70% { transform: scale(2.6); opacity: 0; }
    100% { transform: scale(2.6); opacity: 0; }
}

.visitor-globe-tip {
    position: absolute;
    z-index: 4;
    display: none;
    flex-direction: column;
    gap: 3px;
    min-width: 148px;
    padding: 8px 12px;
    background: rgba(10, 16, 30, 0.96);
    border: 1px solid rgba(255, 193, 7, 0.55);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: opacity 0.15s ease;
    opacity: 0;
}

.visitor-globe-tip.vg-show {
    display: flex;
    opacity: 1;
}

.visitor-globe-tip .vg-tip-flag {
    align-self: flex-start;
    width: 34px;
    height: 22px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.visitor-globe-tip .vg-tip-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visitor-globe-tip .vg-tip-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.2;
}

.visitor-globe-tip .vg-tip-count {
    font-size: 0.74rem;
    color: #ffc107;
}

.visitor-globe-tip .vg-tip-members-head {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    padding-top: 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.visitor-globe-tip .vg-tip-members {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.visitor-globe-tip .vg-tip-member {
    display: flex;
    align-items: center;
    gap: 7px;
}

.visitor-globe-tip .vg-tip-member-avatar {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(74, 222, 128, 0.85);
}

.visitor-globe-tip .vg-tip-member-name {
    font-size: 0.74rem;
    color: #4ade80;
    font-weight: 600;
}

.visitor-globe-tip .vg-tip-member .vg-tip-member-name::before {
    content: "\f2bd";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
    color: #4ade80;
}

.visitor-globe-legend {
    width: min(300px, 100%);
    flex: 1 1 240px;
}

.vg-legend-head {
    font-family: var(--brand-font);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 9px;
}

.vg-legend-list {
    max-height: 132px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 193, 7, 0.5) transparent;
}

.vg-legend-list::-webkit-scrollbar {
    width: 6px;
}

.vg-legend-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

.vg-legend-list::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.45);
    border-radius: 3px;
}

.vg-legend-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
}

.vg-legend-item img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.vg-legend-name {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.92);
    width: 40%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vg-legend-bar {
    flex: 1;
    height: 7px;
    background: rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    overflow: hidden;
}

.vg-legend-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1e90ff, #ffc107);
}

.vg-legend-count {
    font-family: var(--brand-font);
    font-weight: 700;
    font-size: 0.8rem;
    color: #ffc107;
    min-width: 34px;
    text-align: right;
}

.vg-legend-empty {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 10px 0;
}

.vg-legend-empty i {
    margin-right: 7px;
    color: var(--primary);
}

@media (max-width: 560px) {
    .visitor-globe-body {
        flex-direction: column;
    }
    .visitor-globe-legend {
        width: 100%;
        flex: none;
    }
    .visitor-globe-total {
        margin-left: 0;
    }
}

#radioPlayer {
    display: none;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e63946, #ff8f00);
    border-radius: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .main_header {
        min-height: 70vh;
        padding: 40px 15px;
    }

    .hero-logo {
        max-width: 200px;
        max-height: 200px;
    }

    .logo {
        width: 180px;
        height: 180px;
    }

    .logo-fm {
        font-size: 3.5rem;
    }

    .logo-station {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    .hero-heading-row h2 {
        font-size: 1.1rem;
    }

    .hero-heading-row .shine-text,
    .hero-heading-row .legends-text {
        font-size: 2.2rem;
    }

    .hero-marquee {
        margin-top: 15px;
    }

    .hero-marquee h4 {
        font-size: 0.95rem;
    }

    #time-part {
        font-size: 2em;
    }

    .np-song {
        font-size: 1.3rem;
    }

    .chat-container {
        height: 550px;
    }

    /* dice game box: bounded + scrollable, and raised above the fixed bottom audio bar */
    .colordice-game {
        top: 52px;
        max-height: calc(100% - 126px);
        bottom: auto;
    }

    .social-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .logo {
        width: 140px;
        height: 140px;
    }

    .logo-fm {
        font-size: 2.8rem;
    }

    .logo-station {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .main_header {
        min-height: 60vh;
    }

    .hero-heading-row .shine-text,
    .hero-heading-row .legends-text {
        font-size: 1.8rem;
    }
}

/* ------------------------------------------
   Avatar Frames
------------------------------------------ */
.chat-chip-avatar-wrap {
    position: relative;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.chat-chip-avatar-wrap .chat-chip-avatar {
    width: 100%;
    height: 100%;
    border: none;
}

.chat-msg-avatar-wrap {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    cursor: pointer;
}

.chat-msg-avatar-wrap .chat-msg-avatar {
    width: 100%;
    height: 100%;
}

.chatter-avatar-wrap {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
}

.chatter-avatar-wrap .chatter-avatar,
.chatter-avatar-wrap .chatter-avatar-img {
    width: 100%;
    height: 100%;
}

.avatar-frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
    border-radius: 50%;
}

/* Avatar photo sits centered inside the frame hole so the frame wraps around the outside */
.chat-profile-avatar-wrap.has-frame .chat-profile-avatar,
.chat-chip-avatar-wrap.has-frame .chat-chip-avatar,
.chat-msg-avatar-wrap > .chat-msg-avatar,
.chatter-avatar-wrap > .chatter-avatar-img,
.chatter-avatar-wrap > .top-chatter-avatar-img,
.chatter-avatar-wrap > .quiz-score-avatar,
.chatter-avatar-wrap > .chatter-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54%;
    height: 54%;
    margin: -27% 0 0 -27%;
    border-radius: 50%;
    object-fit: cover;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Chatters online row, top 10 chatters and quiz scoreboard (higher specificity) */
.chatter-avatar-btn .chatter-avatar-wrap > .chatter-avatar-img,
.top-chatter-avatar-btn .chatter-avatar-wrap > .top-chatter-avatar-img,
.quiz-score-avatar-btn .chatter-avatar-wrap > .quiz-score-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54%;
    height: 54%;
    margin: -27% 0 0 -27%;
    border-radius: 50%;
    object-fit: cover;
    box-sizing: border-box;
    flex-shrink: 0;
}

.frame-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 8px;
    width: 240px;
    max-height: 270px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 30;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-profile-frame-picker {
    position: static;
    width: 100%;
    max-height: none;
    margin: 0 0 14px;
}

.frame-picker-head {
    padding: 8px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(255, 193, 7, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.frame-picker-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px;
    overflow-y: auto;
    max-height: 215px;
}

.frame-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s;
}

.frame-option:hover {
    background: rgba(255, 193, 7, 0.1);
}

.frame-option-thumb {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
}

.frame-option-thumb.active {
    box-shadow: 0 0 0 2px var(--primary);
}

.frame-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-check {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: #1b1b1b;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.frame-option-name {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 66px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frame-option-locked .frame-thumb-img {
    opacity: 0.55;
    filter: grayscale(0.5);
}

.frame-price-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    background: #ffb400;
    color: #1b1b1b;
    font-size: 0.52rem;
    font-weight: 700;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.frame-store-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #ffb400;
    background: rgba(255, 180, 0, 0.1);
    border: 1px solid rgba(255, 180, 0, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.frame-store-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.frame-store-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
}

.frame-store-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.frame-store-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.frame-store-info {
    flex: 1;
    min-width: 0;
}

.frame-store-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.frame-store-price {
    font-size: 0.72rem;
    color: #ffb400;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.frame-store-price.free {
    color: #34d399;
}

.frame-store-status {
    font-size: 0.72rem;
    font-weight: 600;
    color: #34d399;
    white-space: nowrap;
}

.frame-store-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 24px 0;
    font-size: 0.82rem;
}

.frame-store-msg {
    margin-top: 12px;
    font-size: 0.78rem;
    color: #34d399;
    min-height: 0;
}

.frame-store-msg.msg-error {
    color: #ff7b8c;
}

/* ===== Item Store (packed, coin price + expiration) ===== */
.item-store-exp .item-exp-countdown {
    font-family: monospace;
    font-weight: 700;
    color: #ffc107;
}
.item-store-exp.expired {
    color: rgba(255, 80, 80, 0.9);
}

.item-store-help {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.item-store-help i {
    color: #ffb400;
    margin-top: 2px;
}

.item-store-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 56vh;
    overflow-y: auto;
    padding-right: 4px;
}

.item-pack {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-pack-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffb400;
    background: rgba(255, 180, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.item-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    padding: 12px;
}

.item-store-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    min-height: 94px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.item-store-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 180, 0, 0.12);
    color: #ffb400;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-store-info {
    flex: 1;
    min-width: 0;
}

.item-store-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.item-store-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.3;
    margin-top: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-store-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.item-store-type {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #7dd3fc;
    background: rgba(125, 211, 252, 0.12);
    border-radius: 6px;
    padding: 2px 6px;
}

.item-store-exp {
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.55);
}

.item-store-exp.never {
    color: rgba(255, 255, 255, 0.35);
}

.item-store-status.owned {
    color: #34d399;
    font-size: 0.75rem;
    white-space: nowrap;
    font-weight: 600;
}

/* ===== Song Request List (modal) ===== */
.song-request-list {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

.song-request-as {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: #000;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.song-request-as i {
    color: var(--primary-2);
    font-size: 1rem;
}

.song-request-as b {
    color: #000;
    font-weight: 700;
}

.song-request-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 22px 16px;
    background: var(--surface-2);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}

.song-request-login i {
    font-size: 1.5rem;
    color: var(--primary-2);
}

.song-request-login p {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
}

.song-request-login .form-hint {
    margin: 0;
}

.song-request-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #fff;
}

.song-request-count {
    background: var(--primary);
    color: #1b1b1b;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.4;
}

.song-request-items {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 210px;
    overflow-y: auto;
}

.song-request-item {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    margin-bottom: 6px;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.song-request-avatar {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.song-request-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 8px;
}

.song-request-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.83rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-request-artist {
    color: var(--primary-2);
    font-size: 0.75rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-request-by {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.68rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-request-status {
    flex: none;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.song-request-status.req-pending {
    background: rgba(239, 68, 68, 0.16);
    color: #ff7b8c;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.song-request-status.req-played {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.song-request-status.req-rejected {
    background: rgba(107, 114, 128, 0.16);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.35);
}

.song-request-empty {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-align: left;
    padding: 16px 10px;
}

/* Advertisement Slider */
.ad-slider-card .card-body {
    padding-top: 14px;
    padding-bottom: 14px;
}

.ad-slider {
    position: relative;
    display: grid;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.ad-slide {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}

.ad-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 18px;
}

.ad-cell {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.ad-cell:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), 0.6);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(var(--primary-rgb), 0.12);
}

.ad-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.ad-cell:hover img {
    transform: scale(1.07);
    filter: brightness(1.05);
}

.ad-cell-caption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.ad-cell-caption i {
    color: var(--primary);
    margin-right: 5px;
}

.ad-slider-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.ad-slider:hover .ad-slider-btn,
.ad-slider-btn:focus-visible {
    opacity: 1;
}

.ad-slider-btn:hover {
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    border-color: transparent;
    color: #111;
}

.ad-slider-prev {
    left: 14px;
}

.ad-slider-next {
    right: 14px;
}

.ad-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.ad-slider-dots .dot {
    width: 22px;
    height: 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.ad-slider-dots .dot.active {
    width: 34px;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.6);
}

@media (max-width: 600px) {
    .ad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ad-slider-btn {
        width: 34px;
        height: 34px;
    }
}

/* Newsfeed Posts */
.post-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-feed-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    padding: 30px 10px;
}

.post-feed-empty i {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 8px;
    opacity: 0.7;
}

.dj-team-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    padding: 24px 10px;
}

.dj-team-empty i {
    margin-right: 6px;
}

.event-gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    padding: 30px 10px;
}

.event-gallery-empty i {
    margin-right: 6px;
}

.post-item {
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 18px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
}

.post-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.post-item-new {
    animation: postNewFlash 2.5s ease-out;
}

@keyframes postNewFlash {
    from {
        background-color: rgba(var(--primary-rgb), 0.16);
        border-color: rgba(var(--primary-rgb), 0.45);
    }
    to {
        background-color: transparent;
        border-color: rgba(255, 255, 255, 0.09);
    }
}

.post-item-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-2), var(--primary-deep));
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-author {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.post-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
}

.post-time i {
    margin-right: 4px;
    font-size: 0.7rem;
}

.post-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-top: 12px;
    word-break: break-word;
    text-align: left;
}

.post-text-short,
.post-text-full {
    white-space: pre-wrap;
}

.post-see-more {
    display: inline;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.post-see-more:hover {
    opacity: 0.8;
}

.post-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.post-load-more:hover {
    background: rgba(var(--primary-rgb), 0.16);
    border-color: rgba(var(--primary-rgb), 0.45);
}

.post-image {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    position: relative;
    height: 520px;
    background: rgba(0, 0, 0, 0.55);
}

.post-image-bg {
    position: absolute;
    inset: 0;
}

.post-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    display: block;
}

.post-image-main {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Post actions & comments (Facebook-style) */
.post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-comment-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.post-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.post-like-btn:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.12);
}

.post-like-btn.liked {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.12);
}

.post-like-btn .post-like-count {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.75rem;
    min-width: 24px;
    text-align: center;
}

.post-like-btn.liked .post-like-count {
    background: rgba(var(--primary-rgb), 0.18);
}

.post-comment-toggle:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.12);
}

.post-comment-toggle .post-comment-count {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.75rem;
    min-width: 24px;
    text-align: center;
}

.post-comments {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-comment-form {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.post-comment-form .post-comment-avatar {
    flex-shrink: 0;
}

.post-comment-input-row {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    transition: border-color 0.25s ease;
}

.post-comment-input-row:focus-within {
    border-color: rgba(var(--primary-rgb), 0.5);
}

.post-comment-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
    padding: 6px 0;
}

.post-comment-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.post-comment-send {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-comment-send:hover:not(:disabled) {
    transform: scale(1.06);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.post-comment-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.post-comment-login {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.83rem;
}

.post-comment-login p {
    margin: 0;
}

.post-comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-comments-empty {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.83rem;
    text-align: center;
    padding: 8px 0;
}

.post-comment-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.post-comment-avatar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-2), var(--primary-deep));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.post-comment-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.post-comment-content {
    min-width: 0;
    flex: 1;
}

.post-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.post-comment-author {
    font-weight: 700;
    font-size: 0.84rem;
    color: #fff;
}

.post-comment-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.post-comment-text {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.92);
    word-wrap: break-word;
    line-height: 1.5;
}

.post-comment-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.post-comment-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.post-comment-like-btn:hover {
    color: var(--primary);
}

.post-comment-like-btn.liked {
    color: var(--primary);
}

.post-comment-actions {
    margin-left: auto;
    display: inline-flex;
    gap: 4px;
}

.post-comment-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-comment-btn:hover:not(:disabled) {
    color: var(--primary);
    border-color: var(--primary);
}

.post-comment-btn[data-act="delete"]:hover:not(:disabled) {
    color: #ff5d6c;
    border-color: #ff5d6c;
}

.post-comment-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.post-comment-loadmore {
    align-self: center;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.post-comment-loadmore:hover {
    background: rgba(var(--primary-rgb), 0.12);
}

/* Post modal (lightbox) */
.post-modal-card {
    display: flex;
    width: min(920px, 96vw);
    height: min(85vh, 700px);
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.post-modal-stage {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.post-modal-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.post-modal-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
}

.post-modal-noimg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    text-align: center;
}

.post-modal-noimg i {
    font-size: 3.2rem;
}

.post-modal-panel {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.post-modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.post-modal-avatar {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
}

.post-modal-content {
    margin-top: 12px;
    max-height: 140px;
    overflow-y: auto;
    flex-shrink: 0;
}

.post-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.post-modal-comment-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 14px;
}

.post-modal-comment-count .post-comment-count {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.75rem;
    min-width: 24px;
    text-align: center;
}

.post-modal-comments {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-modal-comments .post-comments-list {
    flex: 1;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

@media (max-width: 860px) {
    .post-modal-card {
        flex-direction: column;
        height: 92vh;
        height: 100svh;
        height: 100dvh;
        width: 96vw;
    }
    .post-modal-stage {
        flex: 0 0 38%;
        min-height: 0;
    }
    .post-modal-panel {
        width: 100%;
        flex: 1;
        min-height: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

/* Event Gallery */
.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 22px;
}

@media (max-width: 767.98px) {
    .event-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .event-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .event-gallery-caption {
        padding: 10px 8px 8px;
    }
    .event-gallery-date,
    .event-gallery-count {
        font-size: 0.6rem;
        padding: 4px 8px;
        top: 8px;
    }
    .event-gallery-date {
        left: 8px;
    }
    .event-gallery-count {
        right: 8px;
    }
}

.event-gallery-more-wrap {
    text-align: center;
    margin-top: 22px;
}

.event-gallery-loadmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.event-gallery-loadmore:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    border-color: transparent;
    color: #111;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.event-gallery-loadmore:disabled {
    opacity: 0.5;
    cursor: default;
}

.event-gallery-item {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid rgba(255, 255, 255, 0.09);
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
    animation: eventGalleryFadeIn 0.45s ease both;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes eventGalleryFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.event-gallery-item::after {
    content: "\f002";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6) rotate(-10deg);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.event-gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.6);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--primary-rgb), 0.15);
}

.event-gallery-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.event-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.event-gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.event-gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 14px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
    transform: translateY(6px);
    transition: transform 0.3s ease;
}

.event-gallery-item:hover .event-gallery-caption {
    transform: translateY(0);
}

.event-gallery-caption strong {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.event-gallery-caption small {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event-gallery-date,
.event-gallery-count {
    position: absolute;
    top: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.event-gallery-date {
    left: 10px;
}

.event-gallery-date i {
    font-size: 0.62rem;
    color: var(--primary);
}

.event-gallery-count {
    right: 10px;
}

.event-gallery-count i {
    font-size: 0.62rem;
    color: var(--primary);
}

/* Avatar Image Zoom Lightbox */
.avatar-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483010;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
}
.avatar-lightbox.active {
    display: flex;
}
.avatar-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: avatarZoomIn 0.25s ease-out;
}
.avatar-lightbox-img {
    max-width: 85vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    cursor: default;
}
.avatar-lightbox-frame {
    position: relative;
    display: inline-block;
    width: min(64vw, 420px);
    height: min(64vw, 420px);
}
.avatar-lightbox-frame .avatar-lightbox-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54%;
    height: 54%;
    margin: -27% 0 0 -27%;
    border-radius: 50%;
}
.avatar-lightbox-frame .avatar-frame-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
}
@keyframes avatarZoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.avatar-lightbox-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.avatar-lightbox-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}
.avatar-lightbox-role {
    font-size: 0.78rem;
    color: rgba(255, 193, 7, 0.85);
    font-weight: 600;
}
.avatar-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}
.avatar-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* Chat Image Lightbox */
.chat-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483010;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
}
.chat-image-lightbox.active {
    display: flex;
}
.chat-image-lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: avatarZoomIn 0.25s ease-out;
}
.chat-image-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    cursor: default;
}
.chat-image-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}
.chat-image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* Raise chat image lightbox above the fullscreen chat card */
body.chat-fullscreen-open .chat-image-lightbox {
    z-index: 2147483000;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-modal {
    display: flex;
    width: min(1100px, 96vw);
    height: min(85vh, 780px);
    background: rgba(var(--card-rgb, 255, 255, 255), var(--card-opacity, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.ad-lightbox .ad-lightbox-modal,
.photo-lightbox .photo-lightbox-modal {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}

.ad-lightbox .lightbox-stage,
.photo-lightbox .lightbox-stage {
    flex: 1 1 auto;
    position: relative;
}

.photo-lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 20px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.photo-lightbox-caption strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.photo-lightbox-caption small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.lightbox-stage {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 16px;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.lightbox-panel {
    width: 390px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 18px 12px;
    min-height: 0;
}

.lightbox-caption {
    color: #fff;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    pointer-events: none;
}

.lightbox-caption strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.lightbox-caption small {
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

.lightbox-caption em {
    display: block;
    font-style: normal;
    margin-top: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.lightbox-comments {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: 0;
    border-top: none;
    padding-top: 0;
    overflow: hidden;
}

.lightbox-comments .video-comments-head {
    flex-shrink: 0;
}

.lightbox-comments .video-comment-form {
    flex-shrink: 0;
}

.lightbox-comments .video-comments-list {
    flex: 1;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.event-comment-loadmore {
    flex-shrink: 0;
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.event-comment-loadmore:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
}

.event-comment-loadmore:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
    transform: scale(1.08);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    background: #3a3a3a;
    color: #fff;
    opacity: 0.7;
}

.lightbox-close:hover,
.lightbox-close:focus {
    background: #3a3a3a;
    opacity: 1;
}

.modal-header .close {
    color: #3a3a3a;
    text-shadow: none;
    opacity: 0.7;
}

.modal-header .close:hover {
    color: #3a3a3a;
    opacity: 1;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.08);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.08);
}

.lightbox-loading {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

@media (max-width: 900px) {
    .lightbox-modal {
        flex-direction: column;
        height: 92vh;
        height: 100svh;
        height: 100dvh;
        width: 96vw;
    }
    .lightbox-stage {
        flex: 0 0 40%;
    }
    .lightbox-panel {
        width: 100%;
        flex: 1;
        min-height: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .lightbox-prev {
        left: 8px;
    }
    .lightbox-next {
        right: 8px;
    }
}


/* About / Vision / Goals / Objectives / Core Values */
.about-text .about-rich p {
    color: #000;
    margin: 0;
    line-height: 1.35;
}

.about-text .about-rich p:last-child {
    margin-bottom: 0;
}

.about-text + .about-grid {
    margin-top: 26px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
    align-items: stretch;
}

@media (max-width: 767px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-card {
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 28px 26px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border-color: rgba(var(--primary-rgb), 0.55);
}

.about-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9), var(--primary-2));
    color: #111;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.about-card h4 {
    font-family: var(--heading-font);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary);
    margin: 4px 0 14px;
}

.about-card .about-rich {
    width: 100%;
    text-align: left;
}

.about-card .about-rich p {
    color: #000;
    margin: 0;
    line-height: 1.35;
}

.about-card .about-rich p:last-child,
.about-text .about-rich p:last-child {
    margin-bottom: 0;
}

.about-card .about-rich p:last-child {
    margin-bottom: 0;
}

.about-card .about-rich ul,
.about-card .about-rich ol {
    margin: 6px 0 10px;
    padding-left: 22px;
    color: #000;
}

.about-card .about-rich li {
    margin-bottom: 4px;
}

.about-card .about-rich h3,
.about-card .about-rich h4 {
    font-family: var(--heading-font);
    color: var(--primary);
    margin: 4px 0 10px;
    line-height: 1.3;
}

.about-card .about-rich h3 { font-size: 1.15rem; }
.about-card .about-rich h4 { font-size: 1rem; }

.about-card .about-rich blockquote {
    margin: 8px 0 12px;
    padding: 8px 14px;
    border-left: 3px solid var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 6px;
    color: #000;
}

/* About background */
.about-bg-card[style*="--about-bg:"] {
    background-image: var(--about-bg) !important;
    background-size: cover;
    background-position: center;
    position: relative;
}

.about-bg-card[style*="--about-bg:"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(27, 27, 27, var(--about-bg-overlay, 0.5));
    pointer-events: none;
    z-index: 0;
}

.about-bg-card[style*="--about-bg:"] > * {
    position: relative;
    z-index: 1;
}

/* ===== Maintenance Mode: show only radio player + live chat ===== */
.maintenance-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.45);
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.14), rgba(var(--primary-rgb), 0.04));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.maintenance-banner i {
    color: var(--primary);
    font-size: 1.1rem;
}

.maintenance-banner span {
    text-transform: none;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0;
}

body.maintenance-mode .navbar,
body.maintenance-mode .main_header,
body.maintenance-mode .footer,
body.maintenance-mode footer,
body.maintenance-mode .fluid-container > .container > .row:not(.maintenance-only) {
    display: none !important;
}

body.maintenance-mode .maintenance-only > div[class*="col-"]:not(.maintenance-show) {
    display: none !important;
}

body.maintenance-mode .maintenance-only > .col-md-4.maintenance-show {
    flex: 0 0 100%;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 24px;
}

body.maintenance-mode .maintenance-only > .col-md-6.maintenance-show {
    flex: 0 0 100%;
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
}

/* ===== Color Dice Game (bet on a color) ===== */
.chat-topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ===== Live Quiz Banner (top of chat, below the avatar bar) ===== */
.chat-quiz-banner {
    flex-shrink: 0;
    margin: 8px 10px 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(120deg, #ffc107, #ff9f43, #ff2e63, #a855f7, #00a8ff);
    background-size: 300% 300%;
    animation: quizBannerShift 6s ease infinite;
    box-shadow: 0 4px 18px rgba(255, 193, 7, 0.35);
    position: relative;
    z-index: 1;
}

@keyframes quizBannerShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.chat-quiz-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 15, 22, 0.92);
    border-radius: 10px;
    padding: 9px 12px;
    min-height: 46px;
}

.chat-quiz-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: #ffc107;
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.7));
    animation: quizCrownFloat 2.2s ease-in-out infinite;
}

@keyframes quizCrownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.chat-quiz-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.chat-quiz-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #ffc107;
}

.chat-quiz-question {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.chat-quiz-prize {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #ffd700;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.chat-quiz-prize i {
    color: #ffd700;
}

.chat-quiz-prize b {
    color: #fff;
}

/* ===== Animated Quiz Winner Board (system post) ===== */
.chat-message.system.quiz-win {
    background: none;
    padding: 0;
    text-align: center;
}

.quiz-win-board {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    padding: 16px 14px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.18), rgba(255, 46, 99, 0.16), rgba(168, 85, 247, 0.18));
    border: 1px solid rgba(255, 193, 7, 0.55);
    box-shadow: 0 0 24px rgba(255, 193, 7, 0.35), inset 0 0 18px rgba(255, 46, 99, 0.15);
    animation: quizWinPop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4), quizWinGlow 1.8s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

@keyframes quizWinPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes quizWinGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.3); }
    50% { box-shadow: 0 0 34px rgba(255, 46, 99, 0.55); }
}

.quiz-win-glow {
    position: absolute;
    top: -60%;
    left: -30%;
    width: 160%;
    height: 220%;
    background: conic-gradient(from 0deg, transparent 0 40deg, rgba(255, 255, 255, 0.12) 50deg, transparent 60deg);
    animation: quizWinSweep 2.4s linear infinite;
    pointer-events: none;
}

@keyframes quizWinSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quiz-win-crown {
    font-size: 2.4rem;
    line-height: 1;
    animation: quizWinBounce 1s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255, 193, 7, 0.9));
}

@keyframes quizWinBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.08); }
}

.quiz-win-title {
    font-family: var(--brand-font);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #ffc107;
    text-shadow: 0 0 14px rgba(255, 193, 7, 0.8);
}

.quiz-win-text {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    font-style: normal;
    line-height: 1.4;
    max-width: 95%;
}

/* ===== Animated Color Dice Winner Board (system post) ===== */
.chat-message.system.colordice-win {
    background: none;
    padding: 0;
    text-align: center;
}

.colordice-win-board {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    padding: 14px 12px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.16), rgba(34, 197, 94, 0.14), rgba(59, 130, 246, 0.16));
    border: 1px solid rgba(255, 193, 7, 0.5);
    box-shadow: 0 0 24px rgba(255, 193, 7, 0.3), inset 0 0 18px rgba(34, 197, 94, 0.12);
    animation: colordiceWinPop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4), colordiceWinGlow 1.8s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

@keyframes colordiceWinPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes colordiceWinGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.28); }
    50% { box-shadow: 0 0 34px rgba(34, 197, 94, 0.5); }
}

.colordice-win-glow {
    position: absolute;
    top: -60%;
    left: -30%;
    width: 160%;
    height: 220%;
    background: conic-gradient(from 0deg, transparent 0 40deg, rgba(255, 255, 255, 0.12) 50deg, transparent 60deg);
    animation: colordiceWinSweep 2.4s linear infinite;
    pointer-events: none;
}

@keyframes colordiceWinSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.colordice-win-dice {
    font-size: 1.7rem;
    letter-spacing: 3px;
    line-height: 1;
    color: #fff;
    animation: colordiceWinBounce 1s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.8));
}

@keyframes colordiceWinBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.06); }
}

.colordice-win-title {
    font-family: var(--brand-font);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #ffc107;
    text-shadow: 0 0 14px rgba(255, 193, 7, 0.8);
}

.colordice-win-text {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    font-style: normal;
    line-height: 1.4;
    max-width: 95%;
}

.chat-message.system.colordice-roll {
    background: none;
    padding: 0;
    text-align: center;
}

.colordice-roll-board {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    padding: 14px 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(255, 193, 7, 0.13), rgba(34, 197, 94, 0.18));
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.25), inset 0 0 18px rgba(255, 193, 7, 0.1);
    animation: colordiceRollPop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

@keyframes colordiceRollPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.colordice-roll-board-glow {
    position: absolute;
    top: -60%;
    left: -30%;
    width: 160%;
    height: 220%;
    background: conic-gradient(from 0deg, transparent 0 40deg, rgba(255, 255, 255, 0.12) 50deg, transparent 60deg);
    animation: colordiceRollSweep 2.4s linear infinite;
    pointer-events: none;
}

@keyframes colordiceRollSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.colordice-roll-board-title {
    font-family: var(--brand-font);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #7cc4ff;
    text-shadow: 0 0 14px rgba(59, 130, 246, 0.8);
}

.colordice-roll-board-dice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 4px 0 2px;
}

.colordice-roll-board-die {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: colordiceRollCycle 1.9s cubic-bezier(0.3, 0.1, 0.3, 1) both;
}

.colordice-roll-board-die:nth-child(2) { animation-delay: 0.12s; }
.colordice-roll-board-die:nth-child(3) { animation-delay: 0.24s; }

@keyframes colordiceRollCycle {
    0%   { transform: rotate(0deg) translateY(0); }
    10%  { transform: rotate(20deg) translateY(-9px); }
    20%  { transform: rotate(-18deg) translateY(5px); }
    30%  { transform: rotate(14deg) translateY(-6px); }
    40%  { transform: rotate(-11deg) translateY(4px); }
    50%  { transform: rotate(9deg) translateY(-4px); }
    60%  { transform: rotate(-7deg) translateY(3px); }
    70%  { transform: rotate(5deg) translateY(-2px); }
    80%  { transform: rotate(-3deg) translateY(1px); }
    90%  { transform: rotate(2deg) translateY(0); }
    100% { transform: rotate(0deg) scale(1); }
}

.colordice-roll-dot {
    width: 26px;
    height: 26px;
    animation: colordiceRollColors 1.9s ease-in-out both;
}

@keyframes colordiceRollColors {
    0%   { background-color: #ef4444; }
    12%  { background-color: #3b82f6; }
    24%  { background-color: #facc15; }
    36%  { background-color: #22c55e; }
    48%  { background-color: #f5f5f5; }
    60%  { background-color: #f472b6; }
    72%  { background-color: #facc15; }
    84%  { background-color: #3b82f6; }
    100% { background-color: var(--dice-final, #ef4444); }
}

.colordice-roll-board-text {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 95%;
}

.btn-chat-color-game {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 193, 7, 0.4);
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.btn-chat-color-game:hover {
    background: rgba(255, 193, 7, 0.3);
    transform: scale(1.08);
}

.chat-store-dd {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-chat-store {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 233, 0.4);
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    padding: 0;
    line-height: 1;
}

.btn-chat-store:hover {
    background: rgba(14, 165, 233, 0.3);
    transform: scale(1.08);
}

.chat-store-dd.open .btn-chat-store {
    background: rgba(14, 165, 233, 0.3);
}

.chat-store-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    padding: 6px;
    border-radius: 10px;
    background: #1c2333;
    border: 1px solid rgba(14, 165, 233, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    z-index: 120;
    display: none;
    flex-direction: column;
    gap: 4px;
}

.chat-store-dd.open .chat-store-menu {
    display: flex;
}

.chat-store-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #dbe4f0;
    font-family: inherit;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.chat-store-menu-item i {
    width: 16px;
    text-align: center;
    color: #38bdf8;
    font-size: 0.85rem;
}

.chat-store-menu-item:hover {
    background: rgba(14, 165, 233, 0.18);
    color: #fff;
}

.btn-colordice-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    transition: color 0.2s;
}

.btn-colordice-close:hover {
    color: #fff;
}

.btn-colordice-close-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding: 8px 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

/* keep the Close button pinned to the bottom of the dice box while scrolling */
.btn-colordice-close-bottom {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #14141d;
    box-shadow: 0 -6px 12px rgba(20, 20, 29, 0.85);
}

.btn-colordice-close-bottom:hover {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.colordice-game {
    position: absolute;
    top: 46px;
    right: 10px;
    z-index: 60;
    width: 300px;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 56px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background: #14141d;
    border: 1px solid rgba(255, 193, 7, 0.28);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
    padding: 14px;
}

.colordice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: #ffc107;
    text-transform: uppercase;
}

.colordice-head i {
    margin-right: 6px;
}

.colordice-round {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.colordice-round b {
    color: #ffc107;
}

.colordice-countdown {
    color: #ffc107;
    font-weight: 700;
}

.colordice-status {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 8px;
    min-height: 15px;
    line-height: 1.5;
}

.colordice-balance {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.colordice-balance b {
    color: #ffc107;
}

.colordice-colors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 100%;
}

.colordice-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    min-width: 0;
    transition: all 0.2s;
}

.colordice-color:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
}

.colordice-color.selected {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.12);
    box-shadow: 0 0 0 1px #ffc107;
}

.colordice-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.colordice-color-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.colordice-color-meta {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.colordice-mybet {
    font-size: 0.62rem;
    color: #ffc107;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 6px;
    background: rgba(255, 193, 7, 0.14);
    border: 1px solid rgba(255, 193, 7, 0.45);
    text-shadow: 0 0 6px rgba(255, 193, 7, 0.95), 0 0 14px rgba(255, 193, 7, 0.6);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4), inset 0 0 6px rgba(255, 193, 7, 0.15);
    animation: colordiceMyBetGlow 1.6s ease-in-out infinite;
}

@keyframes colordiceMyBetGlow {
    0%, 100% { box-shadow: 0 0 6px rgba(255, 193, 7, 0.35), inset 0 0 6px rgba(255, 193, 7, 0.12); text-shadow: 0 0 5px rgba(255, 193, 7, 0.8); }
    50% { box-shadow: 0 0 16px rgba(255, 193, 7, 0.75), inset 0 0 10px rgba(255, 193, 7, 0.25); text-shadow: 0 0 10px rgba(255, 193, 7, 1), 0 0 20px rgba(255, 193, 7, 0.7); }
}

.colordice-bet-cell {
    display: flex;
    align-items: stretch;
    gap: 4px;
    margin-top: 6px;
    width: 100%;
    min-width: 0;
}

.colordice-amount-input {
    flex: 0 0 40px;
    height: 26px;
    min-width: 0;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #1b1b26;
    color: #ffc107;
    text-align: center;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0 2px;
}

.colordice-amount-input:disabled {
    opacity: 0.45;
}

.colordice-bet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    height: 26px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 193, 7, 0.35);
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.25), rgba(255, 193, 7, 0.12));
    color: #ffc107;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.colordice-bet-btn:hover {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.38), rgba(255, 193, 7, 0.2));
    border-color: #ffc107;
}

.colordice-bet-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.colordice-last {
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.colordice-last-head {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.colordice-last-dice {
    font-size: 1.3rem;
    letter-spacing: 4px;
}

.colordice-last-winners {
    font-size: 0.7rem;
    color: #ffc107;
    margin-top: 4px;
}

.colordice-last-winners.none {
    color: rgba(255, 255, 255, 0.5);
}

.colordice-payouts {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
}

/* ===== Color Dice roll animation ===== */
.colordice-roll {
    margin-top: 12px;
    padding: 12px 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.colordice-roll-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.colordice-dice-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.colordice-die {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.colordice-die-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    display: block;
    transition: background 0.1s;
}

.colordice-die-dot[data-color="red"]    { background: #ef4444; }
.colordice-die-dot[data-color="blue"]   { background: #3b82f6; }
.colordice-die-dot[data-color="yellow"] { background: #facc15; }
.colordice-die-dot[data-color="green"]  { background: #22c55e; }
.colordice-die-dot[data-color="white"]  { background: #f5f5f5; }
.colordice-die-dot[data-color="pink"]   { background: #f472b6; }

.colordice-roll.rolling .colordice-die {
    animation: diceShake 0.6s ease-in-out infinite;
}

.colordice-roll.rolling .colordice-die:nth-child(2) {
    animation-delay: 0.1s;
}

.colordice-roll.rolling .colordice-die:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes diceShake {
    0%   { transform: rotate(0deg) translateY(0); }
    20%  { transform: rotate(16deg) translateY(-7px); }
    40%  { transform: rotate(-14deg) translateY(3px); }
    60%  { transform: rotate(10deg) translateY(-4px); }
    80%  { transform: rotate(-6deg) translateY(2px); }
    100% { transform: rotate(0deg) translateY(0); }
}

.colordice-roll.settled .colordice-die {
    animation: dicePop 0.45s ease-out;
}

.colordice-roll.settled .colordice-die-dot {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

@keyframes dicePop {
    0%   { transform: scale(0.35); }
    60%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}

/* ===== Animated chat name colors (name color game) ===== */
.chat-name-fx {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    display: inline-block;
}

.chat-name-fx-gold {
    background-image: linear-gradient(90deg, #fff6a8, #fbd84a, #b8860b, #fbd84a, #fff6a8);
    animation: namefx-shimmer 2.6s linear infinite;
}

.chat-name-fx-ocean {
    background-image: linear-gradient(90deg, #b2ebf2, #4dd0e1, #0277bd, #00e5ff, #b2ebf2);
    animation: namefx-flow 3s linear infinite;
}

.chat-name-fx-rainbow {
    background-image: linear-gradient(90deg, #ff5252, #ffca28, #4caf50, #29b6f6, #7e57c2, #f06292, #ff5252);
    animation: namefx-shimmer 1.8s linear infinite;
}

.chat-name-fx-fire {
    background-image: linear-gradient(90deg, #ff6e40, #ffb300, #ff3d00, #ffca28, #ff6e40);
    animation: namefx-flicker 1.3s linear infinite;
}

@keyframes namefx-shimmer {
    to {
        background-position: 200% center;
    }
}

@keyframes namefx-flow {
    to {
        background-position: 200% center;
    }
}

@keyframes namefx-flicker {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.45);
    }
}

/* ===== Store item chat name effects ===== */
.chat-name-fx-neon {
    background-image: linear-gradient(90deg, #67e8f9, #a78bfa, #22d3ee, #e879f9, #67e8f9);
    animation: namefx-shimmer 2s linear infinite;
}

.chat-name-fx-galaxy {
    background-image: linear-gradient(90deg, #c4b5fd, #818cf8, #f0abfc, #818cf8, #c4b5fd);
    animation: namefx-flow 3.2s linear infinite;
}

/* ===== Store item chat bubbles ===== */
.chat-msg-body.chat-bubble-neon {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(168, 85, 247, 0.16));
    border: 1px solid rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
    overflow: hidden;
}

.chat-msg-body.chat-bubble-neon::after {
    background: rgba(34, 211, 238, 0.16);
}

.chat-msg-body.chat-bubble-neon::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 8% 92%, rgba(34, 211, 238, 0.8) 0px, rgba(34, 211, 238, 0.3) 3px, transparent 5px),
        radial-gradient(circle at 22% 88%, rgba(168, 85, 247, 0.7) 0px, rgba(168, 85, 247, 0.2) 2px, transparent 4px),
        radial-gradient(circle at 38% 95%, rgba(34, 211, 238, 0.9) 0px, rgba(34, 211, 238, 0.3) 4px, transparent 6px),
        radial-gradient(circle at 50% 85%, rgba(232, 121, 249, 0.6) 0px, rgba(232, 121, 249, 0.2) 2px, transparent 4px),
        radial-gradient(circle at 62% 93%, rgba(103, 232, 249, 0.8) 0px, rgba(103, 232, 249, 0.3) 3px, transparent 5px),
        radial-gradient(circle at 75% 87%, rgba(168, 85, 247, 0.7) 0px, rgba(168, 85, 247, 0.25) 4px, transparent 6px),
        radial-gradient(circle at 88% 94%, rgba(34, 211, 238, 0.85) 0px, rgba(34, 211, 238, 0.3) 3px, transparent 5px),
        radial-gradient(circle at 30% 90%, rgba(103, 232, 249, 0.6) 0px, rgba(103, 232, 249, 0.2) 2px, transparent 4px),
        radial-gradient(circle at 55% 96%, rgba(168, 85, 247, 0.8) 0px, rgba(168, 85, 247, 0.3) 3px, transparent 5px),
        radial-gradient(circle at 82% 89%, rgba(34, 211, 238, 0.7) 0px, rgba(34, 211, 238, 0.2) 2px, transparent 4px),
        radial-gradient(circle at 15% 96%, rgba(232, 121, 249, 0.7) 0px, rgba(232, 121, 249, 0.2) 3px, transparent 5px),
        radial-gradient(circle at 45% 91%, rgba(34, 211, 238, 0.9) 0px, rgba(34, 211, 238, 0.35) 4px, transparent 7px);
    animation: neon-bubble-float 2.5s ease-in-out infinite;
}

.chat-msg-body.chat-bubble-neon > * {
    position: relative;
    z-index: 1;
}

@keyframes neon-bubble-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-3px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-8px) scale(0.9);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-4px) scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
}

.chat-msg-body.chat-bubble-royal {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(234, 179, 8, 0.10));
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
    overflow: hidden;
}

.chat-msg-body.chat-bubble-royal::after {
    background: rgba(251, 191, 36, 0.14);
}

.chat-msg-body.chat-bubble-royal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 10% 5%, rgba(251, 191, 36, 0.9) 0px, rgba(251, 191, 36, 0.4) 2px, transparent 4px),
        radial-gradient(circle at 25% -5%, rgba(255, 220, 80, 0.8) 0px, rgba(255, 220, 80, 0.3) 1.5px, transparent 3px),
        radial-gradient(circle at 42% 2%, rgba(251, 191, 36, 0.85) 0px, rgba(251, 191, 36, 0.35) 2.5px, transparent 5px),
        radial-gradient(circle at 58% -3%, rgba(255, 200, 50, 0.9) 0px, rgba(255, 200, 50, 0.4) 2px, transparent 4px),
        radial-gradient(circle at 72% 4%, rgba(251, 191, 36, 0.8) 0px, rgba(251, 191, 36, 0.3) 1.5px, transparent 3px),
        radial-gradient(circle at 88% -2%, rgba(255, 220, 80, 0.85) 0px, rgba(255, 220, 80, 0.35) 2px, transparent 4px),
        radial-gradient(circle at 18% -8%, rgba(255, 200, 50, 0.7) 0px, rgba(255, 200, 50, 0.25) 1px, transparent 3px),
        radial-gradient(circle at 50% 6%, rgba(251, 191, 36, 0.9) 0px, rgba(251, 191, 36, 0.4) 3px, transparent 5px),
        radial-gradient(circle at 65% -6%, rgba(255, 220, 80, 0.75) 0px, rgba(255, 220, 80, 0.3) 1.5px, transparent 3px),
        radial-gradient(circle at 35% -1%, rgba(251, 191, 36, 0.8) 0px, rgba(251, 191, 36, 0.3) 2px, transparent 4px);
    animation: royal-star-fall 3s linear infinite;
}

.chat-msg-body.chat-bubble-royal > * {
    position: relative;
    z-index: 1;
}

@keyframes royal-star-fall {
    0% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(50%);
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.chat-msg-body.chat-bubble-heart {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 114, 182, 0.15));
    border: 2px solid rgba(244, 114, 182, 0.6);
    box-shadow: 0 0 16px rgba(244, 114, 182, 0.3), 0 0 30px rgba(244, 114, 182, 0.1);
    border-radius: 18px 18px 18px 4px;
    position: relative;
    overflow: visible;
}

.chat-msg-body.chat-bubble-heart::before {
    content: "\2665";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    line-height: 1;
    color: rgba(244, 114, 182, 0.9);
    text-shadow: 0 0 8px rgba(244, 114, 182, 0.6), 0 0 16px rgba(236, 72, 153, 0.4);
    pointer-events: none;
    z-index: 1;
    animation: heart-float-pulse 2s ease-in-out infinite;
}

@keyframes heart-float-pulse {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    50% { transform: translateX(-50%) translateY(-3px) scale(1.15); }
}

.chat-msg-body.chat-bubble-heart::after {
    background: rgba(236, 72, 153, 0.15);
}

/* ===== Store item CSS avatar frames (rings around the avatar) ===== */
.chat-item-frame-neon::before,
.chat-item-frame-crown::before,
.chat-item-frame-galaxy::before,
.chat-item-frame-cute::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76%;
    height: 76%;
    margin: -38% 0 0 -38%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    box-sizing: border-box;
}

.chat-item-frame-neon::before {
    border: 3px solid #22d3ee;
    animation: item-frame-neon-pulse 2s ease-in-out infinite;
}

.chat-item-frame-crown::before {
    border: 3px solid #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.chat-item-frame-galaxy::before {
    border: 3px solid #a855f7;
    background: radial-gradient(circle, transparent 55%, rgba(168, 85, 247, 0.25));
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.8), inset 0 0 10px rgba(168, 85, 247, 0.4);
}

.chat-item-frame-cute::before {
    border: 3px solid #f472b6;
    box-shadow: 0 0 10px rgba(244, 114, 182, 0.6);
}

@keyframes item-frame-neon-pulse {
    0%,
    100% {
        box-shadow: 0 0 8px rgba(34, 211, 238, 0.6), inset 0 0 6px rgba(34, 211, 238, 0.3);
    }
    50% {
        box-shadow: 0 0 18px rgba(34, 211, 238, 1), inset 0 0 12px rgba(34, 211, 238, 0.6);
    }
}

/* ===== Store item message effects ===== */
.chat-message.chat-msg-effect-neon_join .chat-msg-body {
    animation: neon-join-blink 4s ease-out forwards;
    border-color: rgba(34, 211, 238, 0.6);
}

.chat-message.chat-msg-effect-royal_entrance .chat-msg-body {
    border-color: rgba(251, 191, 36, 0.6);
}

/* ===== Royal Entrance — whole chat sparkle ===== */
.royal-sparkle-dot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 80, 0.95) 0%, rgba(251, 191, 36, 0.6) 50%, transparent 70%);
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.8), 0 0 12px rgba(255, 220, 80, 0.5);
    pointer-events: none;
    z-index: 100;
    animation: royal-dot-sparkle 3s ease-out forwards;
}

@keyframes royal-dot-sparkle {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    20% {
        opacity: 1;
        transform: scale(1);
    }
    60% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.chat-message.chat-msg-effect-hearts .chat-msg-body::before {
    content: "";
}

.chat-message.chat-msg-effect-hearts .chat-msg-body::after {
    width: auto;
    height: auto;
    background: none;
    clip-path: none;
    content: "";
}

.heart-burst-particle {
    position: absolute;
    color: rgba(244, 114, 182, 0.9);
    text-shadow: 0 0 6px rgba(244, 114, 182, 0.6), 0 0 12px rgba(236, 72, 153, 0.4);
    pointer-events: none;
    z-index: 100;
    animation: heart-burst-fly 2s ease-out forwards;
}

@keyframes heart-burst-fly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.4) rotate(0deg);
    }
    30% {
        opacity: 1;
        transform: translate(var(--hb-x, 20px), var(--hb-y, -60px)) scale(1.1) rotate(15deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--hb-x, 40px), var(--hb-y, -120px)) scale(0.6) rotate(-10deg);
    }
}

.msg-hearts-float {
    position: absolute;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
    animation: hearts-float-bottom ease-in-out infinite;
}

@keyframes hearts-float-bottom {
    0% {
        transform: translateY(0) scale(0.6) rotate(-10deg);
        opacity: 0;
    }
    15% {
        opacity: 0.9;
    }
    50% {
        transform: translateY(-18px) scale(1) rotate(10deg);
        opacity: 0.7;
    }
    85% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-34px) scale(0.5) rotate(-5deg);
        opacity: 0;
    }
}

.chat-message.chat-msg-effect-space_message {
    position: relative;
}

.chat-message.chat-msg-effect-space_message .chat-msg-body {
    position: relative;
}

.chat-message.chat-msg-effect-space_message .space-rocket {
    position: absolute;
    top: -8px;
    right: -30px;
    width: 24px;
    height: 24px;
    pointer-events: none;
    animation: chat-effect-rocket 1.4s ease-in infinite;
}

@keyframes chat-effect-neon-pulse {
    0%,
    100% {
        box-shadow: 0 0 6px rgba(34, 211, 238, 0.3);
    }
    50% {
        box-shadow: 0 0 16px rgba(34, 211, 238, 0.8);
    }
}

@keyframes neon-join-blink {
    0% {
        box-shadow: 0 0 30px rgba(34, 211, 238, 0.9), inset 0 0 20px rgba(34, 211, 238, 0.3);
        border-color: rgba(34, 211, 238, 1);
    }
    10% {
        box-shadow: 0 0 0 transparent;
    }
    20% {
        box-shadow: 0 0 25px rgba(34, 211, 238, 0.8), inset 0 0 18px rgba(34, 211, 238, 0.25);
    }
    30% {
        box-shadow: 0 0 0 transparent;
    }
    40% {
        box-shadow: 0 0 22px rgba(34, 211, 238, 0.7), inset 0 0 15px rgba(34, 211, 238, 0.2);
    }
    50% {
        box-shadow: 0 0 0 transparent;
    }
    60% {
        box-shadow: 0 0 16px rgba(34, 211, 238, 0.5), inset 0 0 10px rgba(34, 211, 238, 0.15);
    }
    75% {
        box-shadow: 0 0 0 transparent;
    }
    85% {
        box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
    }
    100% {
        box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
        border-color: rgba(34, 211, 238, 0.55);
    }
}

@keyframes chat-effect-royal-pulse {
    0%,
    100% {
        box-shadow: 0 0 6px rgba(251, 191, 36, 0.25);
    }
    50% {
        box-shadow: 0 0 18px rgba(251, 191, 36, 0.75);
    }
}

@keyframes chat-effect-float-up {
    0% {
        transform: translateY(0) scale(0.7);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateY(-26px) scale(1.15);
        opacity: 0;
    }
}

@keyframes chat-effect-rocket {
    0% {
        transform: translateY(0) rotate(-45deg);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translateY(-30px) rotate(-45deg);
        opacity: 0;
    }
}

/* ===== Store item personal chat background (starry) ===== */
.chat-container.chat-bg-starry {
    background: rgba(10, 10, 20, 0.94);
    overflow: hidden;
}

.starry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.starry-falling-star {
    position: absolute;
    top: -4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8), 0 0 8px rgba(168, 132, 252, 0.4);
    pointer-events: none;
    z-index: 0;
    animation: starry-star-drop linear forwards;
}

@keyframes starry-star-drop {
    0% {
        top: -4px;
        opacity: 0;
        transform: translateX(0) scale(1);
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: translateX(20px) scale(0.5);
    }
}

.starry-burst-particle {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 12px rgba(168, 132, 252, 0.6), 0 0 20px rgba(129, 140, 248, 0.4);
    pointer-events: none;
    z-index: 100;
    animation: starry-burst-fly 2.5s ease-out forwards;
}

@keyframes starry-burst-fly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.5);
    }
    25% {
        opacity: 1;
        transform: translate(calc(var(--sb-x, 20px) * 0.5), calc(var(--sb-y, -60px) * 0.5)) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(var(--sb-x, 40px), var(--sb-y, -120px)) scale(0.3);
    }
}

/* ===== Item store equipped status + actions ===== */
.item-store-status.equipped {
    color: #38bdf8;
    font-size: 0.75rem;
    white-space: nowrap;
    font-weight: 600;
}

.btn.btn-sm.item-store-unequip {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.75);
}

.btn.btn-sm.item-store-unequip:hover {
    border-color: rgba(248, 113, 113, 0.6);
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.1);
}

/* ===== Item store modal polish =====
 * The store panel is styled for the dark chat theme, but modals render on a
 * light background (onair2.css .modal-content). Scope a dark panel to the
 * item store modal so the existing store colors read correctly.
 */
#itemStoreModal .modal-content {
    background: linear-gradient(180deg, #202a3d 0%, #161d2b 100%);
    border: 1px solid rgba(255, 180, 0, 0.2);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

#itemStoreModal .modal-header {
    background: rgba(255, 180, 0, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#itemStoreModal .modal-title {
    color: #fff;
    font-weight: 700;
}

#itemStoreModal .modal-title i {
    color: #ffb400;
    margin-right: 6px;
}

#itemStoreModal .modal-header .close {
    color: #fff;
    opacity: 0.7;
}

#itemStoreModal .modal-header .close:hover {
    color: #ffb400;
    opacity: 1;
}

#itemStoreModal .modal-body {
    color: rgba(255, 255, 255, 0.75);
}

#itemStoreModal .frame-store-balance {
    background: linear-gradient(90deg, rgba(255, 180, 0, 0.16), rgba(255, 180, 0, 0.05));
    border-color: rgba(255, 180, 0, 0.35);
}

#itemStoreModal .item-store-help {
    background: rgba(255, 180, 0, 0.07);
    border-color: rgba(255, 180, 0, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

#itemStoreModal .item-store-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 180, 0, 0.35) rgba(255, 255, 255, 0.05);
}

#itemStoreModal .item-store-list::-webkit-scrollbar {
    width: 8px;
}

#itemStoreModal .item-store-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

#itemStoreModal .item-store-list::-webkit-scrollbar-thumb {
    background: rgba(255, 180, 0, 0.25);
    border-radius: 4px;
}

#itemStoreModal .item-store-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 180, 0, 0.4);
}

#itemStoreModal .item-pack {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#itemStoreModal .item-pack-head {
    background: rgba(255, 180, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#itemStoreModal .item-store-card {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.09);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

#itemStoreModal .item-store-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 180, 0, 0.35);
    transform: translateY(-1px);
}

#itemStoreModal .item-store-thumb {
    background: linear-gradient(180deg, rgba(255, 180, 0, 0.22), rgba(255, 180, 0, 0.08));
    box-shadow: inset 0 0 0 1px rgba(255, 180, 0, 0.25), 0 3px 8px rgba(0, 0, 0, 0.25);
}

#itemStoreModal .item-store-status.equipped {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 999px;
    padding: 3px 9px;
    color: #34d399;
    font-size: 0.7rem;
}

#itemStoreModal .modal-footer {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
}

#itemStoreModal .item-store-close {
    background: rgba(255, 180, 0, 0.12);
    border: 1px solid rgba(255, 180, 0, 0.35);
    color: #ffb400;
}

#itemStoreModal .item-store-close:hover {
    background: rgba(255, 180, 0, 0.22);
    border-color: rgba(255, 180, 0, 0.5);
    color: #ffd76e;
}



/* ===== Private Messages (1-on-1) ===== */
.btn-chat-pm {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(30, 144, 255, 0.45);
    background: rgba(30, 144, 255, 0.14);
    color: #5aa9ff;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.btn-chat-pm:hover {
    background: rgba(30, 144, 255, 0.32);
    transform: scale(1.08);
}

.pm-unread-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.55);
}

.chat-pm-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(13, 19, 31, 0.98), rgba(10, 15, 25, 0.98));
}

@media (max-width: 767.98px) {
    #chatPmModal {
        padding: 0 !important;
        overflow: hidden !important;
    }
    .chat-pm-modal-dialog {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        height: 100vh;
        height: var(--kb-h, 100dvh);
        max-height: 100vh;
        max-height: var(--kb-h, 100dvh);
    }
    .chat-pm-modal-dialog .chat-pm-modal-content,
    .chat-pm-modal-content {
        height: 100%;
        max-height: 100%;
        border: 0;
        border-radius: 0;
        overflow: hidden;
    }
    .chat-pm-modal-body {
        height: 100%;
        padding: 0;
        overflow: hidden;
    }
    #chatPmPanel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        max-height: none;
    }
    #chatPmPanel .chat-pm-thread-list,
    #chatPmPanel .chat-pm-messages {
        min-height: 0;
        overscroll-behavior: contain;
    }
    body:has(#chatPmModal.show) {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

.chat-pm-head {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
}

.chat-pm-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.chat-pm-title i {
    color: var(--primary);
    margin-right: 6px;
}

.chat-pm-title b {
    color: var(--primary);
}

.btn-chat-pm-back,
.btn-chat-pm-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-chat-pm-back:hover,
.btn-chat-pm-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.chat-pm-inbox {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.chat-pm-thread-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px;
    overscroll-behavior: contain;
}

.chat-pm-empty {
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.6;
    padding: 20px;
}

.chat-pm-empty i {
    font-size: 1.7rem;
    color: rgba(90, 169, 255, 0.4);
}

.chat-pm-thread-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-pm-thread-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.chat-pm-thread-item.has-unread {
    background: rgba(135, 206, 235, 0.16);
}

.chat-pm-thread-item.has-unread:hover {
    background: rgba(135, 206, 235, 0.28);
}

.chat-pm-thread-avatar {
    position: relative;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
}

.chatter-avatar-wrap {
    position: relative;
    display: inline-flex;
}

/* PM list/header: size the frame wrap to the avatar instead of the
   generic 20px box so the frame overlay lines up with the photo */
.chat-pm-thread-avatar .chatter-avatar-wrap,
.chat-pm-partner-ava-wrap .chatter-avatar-wrap {
    width: auto;
    height: auto;
    flex-shrink: 0;
}

.chat-pm-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.chat-pm-thread-avatar .avatar-frame-overlay {
    pointer-events: none;
}

.chat-pm-thread-mid {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-pm-thread-top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.chat-pm-thread-name {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chat-pm-thread-time {
    margin-left: auto;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.62rem;
}

.chat-pm-thread-snippet {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chat-pm-snippet-reply {
    color: rgba(90, 169, 255, 0.6);
    font-size: 0.62rem;
}

.has-unread .chat-pm-thread-snippet {
    color: #87ceeb;
    font-weight: 600;
}

.chat-pm-panel.pm-theme-im .has-unread .chat-pm-thread-snippet,
.chat-pm-panel.pm-theme-paper .has-unread .chat-pm-thread-snippet,
.chat-pm-panel.pm-theme-twitter .has-unread .chat-pm-thread-snippet {
    color: #1e90ff;
}

.chat-pm-thread-unread {
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.5);
}

.chat-pm-thread-more {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    padding: 0;
}
.chat-pm-thread-more:hover { background: #f3f4f6; color: #ef4444; }
.chat-pm-thread-item:hover .chat-pm-thread-more,
.chat-pm-thread-more:focus { opacity: 1; }
@media (pointer: coarse) {
    .chat-pm-thread-more { opacity: 1; }
}
.chat-pm-delete-text { margin: 0 0 4px; font-size: 0.9rem; }
.chat-pm-delete-note { margin: 0; font-size: 0.8rem; color: #6b7280; line-height: 1.5; }

.chat-pm-thread {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.chat-pm-partner {
    flex-shrink: 0;
    padding: 6px 12px 8px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.68rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-pm-partner i {
    margin-right: 4px;
}

.chat-pm-messages {
    flex: 1;
    min-height: 120px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-pm-messages::-webkit-scrollbar,
.chat-pm-thread-list::-webkit-scrollbar {
    width: 6px;
}

.chat-pm-messages::-webkit-scrollbar-thumb,
.chat-pm-thread-list::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.3);
    border-radius: 3px;
}

.chat-pm-msg {
    max-width: 82%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chat-pm-msg.theirs {
    align-self: flex-start;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}

.chat-pm-msg.mine {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-pm-bubble {
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.chat-pm-msg.theirs .chat-pm-bubble {
    background: rgba(28, 27, 27, 0.09);
    color: #fff;
    border-bottom-left-radius: 4px;
}

.chat-pm-msg.mine .chat-pm-bubble {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.9), rgba(14, 110, 210, 0.9));
    border: 1px solid rgba(90, 169, 255, 0.4);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-pm-time {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.6rem;
    padding: 0 4px;
}

.chat-pm-input-row {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    position: sticky;
    bottom: 0;
    z-index: 5;
}

.chat-pm-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.chat-pm-input-wrap .chat-pm-input {
    padding-right: 44px;
}

.chat-pm-input-wrap .btn-chat-pm-smiley {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.chat-pm-input {
    flex: 1;
    min-width: 0;
    background: #02283e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 8px 16px;
    color: #fff;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.3s;
}

.chat-pm-input:focus {
    border-color: var(--primary);
}

.chat-pm-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-pm-input:disabled {
    opacity: 0.5;
}

.btn-chat-pm-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-chat-pm-send:hover {
    transform: scale(1.08);
    filter: brightness(1.15);
}

.btn-chat-pm-send:disabled {
    opacity: 0.55;
    transform: none;
    cursor: not-allowed;
}

.btn-msg-pm {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.2s;
}

.btn-msg-pm:hover {
    color: #5aa9ff;
}

.chat-profile-pm-btn {
    margin-top: 6px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
}

.chat-profile-follow-btn {
    margin-top: 6px;
    margin-left: 6px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    color: #1e90ff;
    background: rgba(30, 144, 255, 0.12);
    border: 1px solid rgba(30, 144, 255, 0.5);
}
.chat-profile-follow-btn:hover {
    background: rgba(30, 144, 255, 0.22);
    color: #1e90ff;
}
.chat-profile-follow-btn.following {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.12);
    border-color: rgba(108, 117, 125, 0.4);
}

/* ===== Private Messages: avatars + names ===== */
.chat-pm-avatar.chat-pm-avatar-sm {
    width: 28px;
    height: 28px;
}

.chat-pm-avatar.chat-pm-avatar-md {
    width: 38px;
    height: 38px;
}

.chat-pm-msg.theirs,
.chat-pm-msg.mine {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    max-width: 88%;
}

.chat-pm-msg.theirs .chatter-avatar-wrap {
    flex-shrink: 0;
    align-self: flex-start;
    width: 40px;
    height: 40px;
}

.chat-pm-msg-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.chat-pm-msg.theirs .chat-pm-msg-main {
    align-items: flex-start;
}

.chat-pm-msg.mine .chat-pm-msg-main {
    align-items: flex-end;
}

.chat-pm-msg-name-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-left: 4px;
    max-width: 100%;
    overflow: hidden;
}

.chat-pm-msg-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: #5aa9ff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chat-pm-partner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px 9px;
}

.chat-pm-partner-ava-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    cursor: pointer;
}

.chat-pm-partner-ava-wrap:hover .chat-pm-avatar {
    filter: brightness(1.15);
}

.chat-pm-partner-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.chat-pm-partner-uname {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.66rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Private Messages: reactions (Messenger style) ===== */
.chat-pm-bubble-wrap {
    position: relative;
    max-width: 100%;
}

.chat-pm-reactions {
    position: absolute;
    bottom: -28px;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 100%;
    padding: 2px 6px;
}

/* Received messages: chips overlap the bubble's bottom-left corner */
.chat-pm-msg.theirs .chat-pm-reactions {
    left: 0;
    right: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

/* Own messages: chips overlap the bubble's bottom-right corner */
.chat-pm-msg.mine .chat-pm-reactions {
    right: 0;
    left: auto;
    justify-content: flex-end;
}

.chat-pm-msg.has-reactions .chat-pm-bubble {
    margin-bottom: 6px;
}

.chat-pm-reactions {
    position: absolute;
    bottom: -9px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 200px;
}

/* Received messages: chips overlap the bubble's bottom-left corner */
.chat-pm-msg.theirs .chat-pm-reactions {
    left: 0;
    right: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: 100%;
}

/* Own messages: chips overlap the bubble's bottom-right corner */
.chat-pm-msg.mine .chat-pm-reactions {
    right: 0;
    left: auto;
    justify-content: flex-end;
}

/* React button hangs off the bubble edge (matches live chat) */
.btn-pm-react {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
    background: rgba(16, 16, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 7px;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 999px;
    transition: opacity 0.2s, background 0.2s, border-color 0.2s;
    user-select: none;
    backdrop-filter: blur(2px);
    z-index: 4;
    opacity: 0;
    pointer-events: none;
}

.chat-pm-msg:hover .btn-pm-react,
.chat-pm-msg:focus-within .btn-pm-react,
.chat-pm-msg.show-react .btn-pm-react,
.btn-pm-react:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Received PM messages: react button hangs off the bubble's outer-left edge */
.chat-pm-msg.theirs .btn-pm-react {
    right: auto;
    left: 100%;
    margin-right: 0;
    margin-left: 6px;
}

.btn-pm-react:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-pm-react.reacted {
    background: rgba(var(--primary-rgb), 0.16);
    border-color: rgba(var(--primary-rgb), 0.4);
}

.btn-pm-react.reacted i {
    animation: react-pop 0.3s ease;
}

/* Actions row under the bubble (time + reply, edit/delete for own) */
.chat-pm-msg-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding-left: 2px;
}

.chat-pm-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    margin-right: auto;
    white-space: nowrap;
}

.chat-pm-msg.mine .chat-pm-time {
    margin-right: 0;
    margin-left: auto;
}

.btn-pm-msg-reply,
.btn-pm-msg-edit {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 999px;
    transition: all 0.2s;
    user-select: none;
}

.btn-pm-msg-reply:hover,
.btn-pm-msg-edit:hover {
    color: var(--primary-2);
    background: rgba(255, 255, 255, 0.08);
}

.btn-pm-msg-del {
    background: transparent;
    border: none;
    color: rgba(255, 93, 108, 0.85);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 999px;
    transition: all 0.2s;
    user-select: none;
}

.btn-pm-msg-del:hover {
    color: #ff5d6c;
    background: rgba(255, 93, 108, 0.12);
}

/* ===== Public chat: professional pill layout ===== */

/* Avatar outside the bubble, on the left */
.chat-message:not(.system) > .chat-msg-avatar {
    position: static;
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-message:not(.system) > .chat-msg-avatar-wrap {
    position: relative;
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-message:not(.system) > .chat-msg-avatar {
    width: 46px;
    height: 46px;
}

.chat-message:not(.system) > .chat-msg-avatar-wrap {
    display: block;
    width: 46px;
    height: 46px;
}

.chat-message:not(.system) > .chat-msg-avatar-wrap .chat-msg-avatar {
    position: static;
    width: 46px;
    height: 46px;
    margin: 0;
}

/* Capsule bubble: avatar no longer takes up space inside */
.chat-message:not(.system) .chat-msg-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 46px;
    max-width: 82%;
    padding: 8px 16px;
    border-radius: 22px;
}

.chat-message:not(.system) .chat-msg-body::after {
    display: none;
}

/* Action row sits under the bubble, lined up with its text */
.chat-message:not(.system) .chat-msg-actions {
    gap: 5px;
    margin-top: 3px;
    padding-left: 56px;
    opacity: 0.55;
    transition: opacity 0.15s ease;
}

.chat-message:not(.system):hover .chat-msg-actions,
.chat-message:not(.system):focus-within .chat-msg-actions {
    opacity: 1;
}

/* Own messages: right-aligned capsule, avatar outside on the right */
.chat-message.mine {
    margin-left: auto;
    justify-content: flex-end;
}

.chat-message.mine > .chat-msg-avatar,
.chat-message.mine > .chat-msg-avatar-wrap {
    order: 2;
    left: auto;
    right: 0;
}

.chat-message.mine .chat-msg-body {
    order: 1;
    background-color: #2b2b2b;
    background-image: none;
    padding: 8px 16px;
    text-align: right;
    max-width: 100%;
    box-shadow: 0 2px 10px rgba(30, 144, 255, 0.22);
}

.chat-message.mine .chat-reply-tag {
    justify-content: flex-end;
}

/* Own action row clusters under the bubble's right edge */
.chat-message.mine .chat-msg-actions {
    order: 3;
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-end;
}

.chat-message.mine .chat-time {
    margin-right: 0;
    margin-left: auto;
}

/* Reacted received messages align actions with bubble */
.chat-message.has-reactions:not(.mine) {
    margin-left: 0;
}

/* =============================================
   PM message actions (edit / delete / reply)
   ============================================= */
.chat-pm-msg-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    padding-left: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.chat-pm-msg:hover .chat-pm-msg-actions,
.chat-pm-msg-actions.is-visible {
    opacity: 1;
}

.btn-pm-msg-reply,
.btn-pm-msg-edit,
.btn-pm-msg-del {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.68rem;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 999px;
    transition: all 0.2s;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.btn-pm-msg-reply:hover {
    color: #5aa9ff;
    background: rgba(90, 169, 255, 0.12);
}

.btn-pm-msg-edit:hover {
    color: var(--primary);
    background: rgba(255, 193, 7, 0.12);
}

.btn-pm-msg-del {
    color: rgba(255, 93, 108, 0.7);
}

.btn-pm-msg-del:hover {
    color: #ff5d6c;
    background: rgba(255, 93, 108, 0.12);
}

/* =============================================
   PM reply quote inside bubbles
   ============================================= */
.chat-pm-reply-quote {
    background: rgba(255, 255, 255, 0.06);
    border-left: 2px solid rgba(90, 169, 255, 0.45);
    border-radius: 4px;
    padding: 5px 8px;
    margin-bottom: 5px;
    max-width: 100%;
    overflow: hidden;
}

.chat-pm-msg.mine .chat-pm-reply-quote {
    background: rgba(255, 255, 255, 0.12);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.chat-pm-reply-note-ic {
    margin-left: 5px;
    font-size: 10px;
    color: inherit;
}

.chat-pm-reply-name {
    font-size: 0.62rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1px;
}

.chat-pm-reply-text {
    font-size: 0.68rem;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* =============================================
   PM avatar in messages
   ============================================= */
.chat-pm-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: filter 0.15s ease;
}

.chat-pm-msg-avatar:hover {
    filter: brightness(1.15);
}

.chat-pm-msg-avatar.chat-pm-avatar-sm {
    width: 40px;
    height: 40px;
}

/* =============================================
   Voice clip & (edited) label
   ============================================= */
.chat-msg-voice {
    display: block;
    margin-top: 6px;
    max-width: 240px;
    border-radius: 8px;
}

.chat-msg-voice audio {
    width: 100%;
    height: 36px;
    filter: invert(0.85) hue-rotate(180deg);
}

.chat-msg-edited {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
    margin-left: 4px;
}

/* =============================================
   PM reply chip (above input bar)
   ============================================= */
.chat-pm-reply-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(90, 169, 255, 0.08);
    border-top: 1px solid rgba(90, 169, 255, 0.2);
    font-size: 0.72rem;
}

.chat-pm-reply-chip-ic {
    color: #5aa9ff;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.chat-pm-reply-chip-name {
    font-weight: 700;
    color: #5aa9ff;
    flex-shrink: 0;
}

.chat-pm-reply-chip-text {
    flex: 1;
    min-width: 0;
    color: rgba(255, 255, 255, 0.55);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chat-pm-reply-chip-cancel {
    background: transparent;
    border: none;
    color: rgba(8, 8, 8, 0.4);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-pm-reply-chip-cancel:hover {
    color: #ff5d6c;
}

/* =============================================
   PM input row extras
   ============================================= */

/* PM image preview */
.chat-pm-image-preview {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    flex-shrink: 0;
}

.chat-pm-image-preview img {
    max-width: 80px;
    max-height: 50px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
}

.btn-chat-pm-image-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #e63946;
    color: #fff;
    font-size: 0.55rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PM voice bar */
.chat-pm-voice-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.chat-pm-voice-timer {
    font-size: 0.72rem;
    font-weight: 600;
    color: #ff5d6c;
    min-width: 30px;
}

.chat-pm-voice-bar audio {
    flex: 1;
    min-width: 0;
    height: 32px;
    filter: invert(0.85) hue-rotate(180deg);
}

.btn-chat-pm-voice-remove {
    background: transparent;
    border: none;
    color: rgba(255, 93, 108, 0.7);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 3px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-chat-pm-voice-remove:hover {
    color: #ff5d6c;
}

/* PM mic / attach / smiley buttons */
.btn-chat-pm-mic,
.btn-chat-pm-attach,
.btn-chat-pm-smiley {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.btn-chat-pm-mic:hover,
.btn-chat-pm-attach:hover,
.btn-chat-pm-smiley:hover,
.btn-chat-pm-mic.is-recording {
    color: var(--primary);
}

.btn-chat-pm-mic.is-recording {
    color: #ff5d6c;
    animation: pmMicPulse 1s ease-in-out infinite;
}

@keyframes pmMicPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* PM smiley picker */
.chat-pm-smiley-picker {
    position: absolute;
    bottom: calc(100% - 2px);
    right: 0;
    width: 260px;
    max-height: 200px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(35, 35, 35, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-pm-input-wrap .chat-pm-smiley-picker {
    right: -4px;
}

.chat-pm-smiley-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 10px 12px;
    overflow-y: auto;
    max-height: 170px;
}

.chat-pm-smiley-grid .smiley-item {
    width: 40px;
    height: 40px;
}

/* =============================================
   OnAir2 light-theme overrides for PM elements
   ============================================= */
.chat-pm-panel {
    border-radius: 8px;
}

.chat-container .chat-pm-head {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(15, 76, 129, 0.1);
    backdrop-filter: blur(8px);
}

.chat-container .chat-pm-title {
    color: #16263d;
}

.chat-container .chat-pm-title i,
.chat-container .chat-pm-title b {
    color: var(--primary);
}

.chat-container .btn-chat-pm-back,
.chat-container .btn-chat-pm-close {
    border-color: rgba(15, 76, 129, 0.18);
    background: rgba(15, 76, 129, 0.06);
    color: #5a6b85;
}

.chat-container .btn-chat-pm-theme {
    border-color: rgba(15, 76, 129, 0.18);
    background: rgba(15, 76, 129, 0.06);
    color: #5a6b85;
}

.chat-container .btn-chat-pm-back:hover,
.chat-container .btn-chat-pm-close:hover {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
}

.chat-container .chat-pm-thread-item:hover {
    background: rgba(15, 76, 129, 0.06);
}

.chat-container .chat-pm-thread-item.has-unread {
    background: rgba(135, 206, 235, 0.2);
}

.chat-container .chat-pm-thread-item.has-unread:hover {
    background: rgba(135, 206, 235, 0.34);
}

.chat-container .chat-pm-thread-name {
    color: #fff;
}

.chat-container .chat-pm-thread-time {
    color: #8494ac;
}

.chat-container .chat-pm-thread-snippet {
    color: #5a6b85;
}

.chat-container .has-unread .chat-pm-thread-snippet {
    color: #1e90ff;
}

.chat-container .chat-pm-partner {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(15, 76, 129, 0.1);
    color: #5a6b85;
}

.chat-container .chat-pm-messages {
    background: var(--surface-3);
}

.chat-container .chat-pm-msg.theirs .chat-pm-bubble {
    background: #474040;
    border-color: rgba(15, 76, 129, 0.12);
    color: #16263d;
}

.chat-container .chat-pm-msg.mine .chat-pm-bubble {
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    border-color: var(--primary);
    color: #fff;
}

.chat-container .chat-pm-time {
    color: #8494ac;
}

.chat-container .chat-pm-input-row {
    background: #ffffff;
    border-top-color: rgba(15, 76, 129, 0.1);
}

.chat-container .chat-pm-input {
    background: var(--surface-3);
    border-color: rgba(15, 76, 129, 0.15);
    color: #16263d;
}

.chat-container .chat-pm-input::placeholder {
    color: rgba(36, 52, 77, 0.45);
}

.chat-container .chat-pm-input:focus {
    border-color: var(--primary);
}

.chat-container .btn-chat-pm-send {
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
}

.chat-container .btn-chat-pm-send:hover {
    filter: brightness(1.1);
}

.chat-container .btn-chat-pm-mic,
.chat-container .btn-chat-pm-attach,
.chat-container .btn-chat-pm-smiley {
    color: #5a6b85;
}

.chat-container .btn-chat-pm-mic:hover,
.chat-container .btn-chat-pm-attach:hover,
.chat-container .btn-chat-pm-smiley:hover {
    color: var(--primary);
}

.chat-container .chat-pm-msg-name {
    color: var(--primary);
}

.chat-container .chat-pm-reply-chip {
    background: rgba(var(--primary-rgb), 0.06);
    border-top-color: rgba(var(--primary-rgb), 0.15);
}

.chat-container .chat-pm-reply-chip-name {
    color: var(--primary);
}

.chat-container .chat-pm-reply-chip-ic {
    color: var(--primary);
}

.chat-container .chat-pm-msg-actions {
    opacity: 0;
}

.chat-container .chat-pm-msg:hover .chat-pm-msg-actions {
    opacity: 1;
}

.chat-container .btn-pm-msg-reply,
.chat-container .btn-pm-msg-edit,
.chat-container .btn-pm-msg-del {
    color: #8494ac;
}

.chat-container .btn-pm-msg-reply:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.chat-container .btn-pm-msg-edit:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.chat-container .btn-pm-msg-del:hover {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
}

.chat-container .chat-pm-reply-quote {
    background: rgba(15, 76, 129, 0.06);
    border-left-color: rgba(var(--primary-rgb), 0.4);
}

.chat-container .chat-pm-msg.mine .chat-pm-reply-quote {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.chat-container .chat-pm-reply-name {
    color: #ffffff;
}

.chat-container .chat-pm-reply-text {
    color: #ffffff;
}

.chat-container .chat-msg-voice audio {
    filter: none;
}

.chat-container .chat-pm-voice-bar audio {
    filter: none;
}

.chat-container .chat-pm-voice-timer {
    color: #ff5252;
}

.chat-container .chat-msg-edited {
    color: #8494ac;
}

/* =============================================
   PM theme selector (doodlekuma-style gallery)
   ============================================= */
.chat-pm-theme-wrap {
    position: relative;
    flex-shrink: 0;
}

.btn-chat-pm-theme {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-chat-pm-theme:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.chat-pm-theme-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 9999;
    width: 185px;
    max-height: min(520px, 65vh);
    overflow-y: auto;
    background: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chat-pm-theme-menu-sep {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 4px 6px;
}

.chat-pm-theme-menu-title {
    display: block;
    padding: 4px 8px 6px;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.chat-pm-theme-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 8px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.78rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.chat-pm-theme-opt:hover {
    background: rgba(255, 255, 255, 0.08);
}

.chat-pm-theme-opt.active {
    background: rgba(90, 169, 255, 0.18);
    color: #5aa9ff;
}

.pm-theme-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.sw-classic {
    background: linear-gradient(135deg, #1e90ff, #0e6ed2);
}

.sw-im {
    background: linear-gradient(135deg, #06c755, #ffffff 60%);
}

.sw-neon {
    background: linear-gradient(135deg, #22d3ee, #f472b6);
}

.sw-paper {
    background: linear-gradient(135deg, #f3ead8, #a8d5a2);
}

.sw-twitter {
    background: linear-gradient(135deg, #1da1f2, #ffffff);
}

.sw-doodle {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.sw-ocean {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.sw-sunset {
    background: linear-gradient(135deg, #d946ef, #8b5cf6);
}

.pm-bg-swatch {
    width: 22px;
    height: 18px;
    border-radius: 5px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.sw-bg-none {
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 5px, transparent 5px 10px);
}

.sw-bg-upload {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-style: dashed;
}

.sw-bg-waves {
    background: linear-gradient(135deg, #0f2b46, #0d5c63);
}

.sw-bg-dusk {
    background: linear-gradient(160deg, #2a1e4a, #6b2d5c);
}

.sw-bg-forest {
    background: linear-gradient(160deg, #14281d, #2f6b3e);
}

.sw-bg-midnight {
    background: linear-gradient(160deg, #0d1226, #1e2a52);
}

.sw-bg-slate {
    background: linear-gradient(160deg, #1b2130, #2c3444);
}

.sw-bg-aurora {
    background: linear-gradient(135deg, #0f2b46, #14525d, #3b2f63);
}

/* ---- PM chat backgrounds (applied to #chatPmMessages, overrides panel theme messages bg) ---- */
#chatPmMessages.pm-bg-waves {
    background: linear-gradient(135deg, #0f2b46, #0d5c63);
}

#chatPmMessages.pm-bg-dusk {
    background: linear-gradient(160deg, #2a1e4a, #6b2d5c);
}

#chatPmMessages.pm-bg-forest {
    background: linear-gradient(160deg, #14281d, #2f6b3e);
}

#chatPmMessages.pm-bg-midnight {
    background: linear-gradient(160deg, #0d1226, #1e2a52);
}

#chatPmMessages.pm-bg-slate {
    background: linear-gradient(160deg, #1b2130, #2c3444);
}

#chatPmMessages.pm-bg-aurora {
    background: linear-gradient(135deg, #0f2b46, #14525d, #3b2f63);
}

#chatPmMessages.pm-bg-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =============================================
   PM theme: IM Style (LINE/Telegram)
   ============================================= */
.chat-pm-panel.pm-theme-im {
    background: #f6f7f9;
}

.chat-pm-panel.pm-theme-im .chat-pm-head {
    background: #ffffff;
    border-bottom: 1px solid #e8eaed;
    backdrop-filter: blur(8px);
}

.chat-pm-panel.pm-theme-im .chat-pm-title {
    color: #202124;
}

.chat-pm-panel.pm-theme-im .chat-pm-title i {
    color: #06c755;
}

.chat-pm-panel.pm-theme-im .btn-chat-pm-back,
.chat-pm-panel.pm-theme-im .btn-chat-pm-close,
.chat-pm-panel.pm-theme-im .btn-chat-pm-theme {
    border-color: #e0e3e8;
    background: #f6f7f9;
    color: #5f6368;
}

.chat-pm-panel.pm-theme-im .btn-chat-pm-back:hover,
.chat-pm-panel.pm-theme-im .btn-chat-pm-close:hover,
.chat-pm-panel.pm-theme-im .btn-chat-pm-theme:hover {
    background: #eef1f4;
    color: #202124;
}

.chat-pm-panel.pm-theme-im .chat-pm-thread-list,
.chat-pm-panel.pm-theme-im .chat-pm-messages {
    background: #f6f7f9;
}

.chat-pm-panel.pm-theme-im .chat-pm-thread-item:hover {
    background: rgba(32, 33, 36, 0.06);
}

.chat-pm-panel.pm-theme-im .chat-pm-thread-item.has-unread {
    background: rgba(135, 206, 235, 0.2);
}

.chat-pm-panel.pm-theme-im .chat-pm-thread-item.has-unread:hover {
    background: rgba(135, 206, 235, 0.34);
}

.chat-pm-panel.pm-theme-im .chat-pm-thread-name,
.chat-pm-panel.pm-theme-im .chat-pm-msg-name {
    color: #202124;
}

.chat-pm-panel.pm-theme-im .chat-pm-thread-snippet {
    color: #5f6368;
}

.chat-pm-panel.pm-theme-im .chat-pm-thread-time,
.chat-pm-panel.pm-theme-im .chat-pm-time {
    color: #9aa0a6;
}

.chat-pm-panel.pm-theme-im .chat-pm-partner {
    background: #ffffff;
    border-bottom: 1px solid #e8eaed;
    color: #5f6368;
}

.chat-pm-panel.pm-theme-im .chat-pm-partner-uname {
    color: #9aa0a6;
}

.chat-pm-panel.pm-theme-im .chat-pm-avatar {
    border-color: rgba(32, 33, 36, 0.12);
}

.chat-pm-panel.pm-theme-im .chat-pm-msg.theirs .chat-pm-bubble {
    background: #128167;
    border: 1px solid #e3e6ea;
    color: #111111;
}

.chat-pm-panel.pm-theme-im .chat-pm-msg.mine .chat-pm-bubble {
    background: #06c755;
    border: 1px solid #06c755;
    color: #ffffff;
    box-shadow: none;
}

.chat-pm-panel.pm-theme-im .chat-pm-msg .chat-pm-bubble {
    animation: im-bubble-in 0.25s ease;
}

.chat-pm-panel.pm-theme-im .chat-pm-reply-quote {
    background: rgba(32, 33, 36, 0.05);
    border-left-color: rgba(6, 199, 85, 0.5);
}

.chat-pm-panel.pm-theme-im .chat-pm-msg.mine .chat-pm-reply-quote {
    background: rgba(255, 255, 255, 0.18);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.chat-pm-panel.pm-theme-im .chat-pm-reply-text {
    color: #ffffff;
}

.chat-pm-panel.pm-theme-im .btn-pm-msg-reply,
.chat-pm-panel.pm-theme-im .btn-pm-msg-edit,
.chat-pm-panel.pm-theme-im .btn-pm-msg-del {
    color: #8494ac;
}

.chat-pm-panel.pm-theme-im .chat-pm-input-row {
    background: #ffffff;
    border-top: 1px solid #e8eaed;
}

.chat-pm-panel.pm-theme-im .chat-pm-input {
    background: #f0f2f5;
    border: 1px solid #d7dce1;
    color: #111111;
}

.chat-pm-panel.pm-theme-im .chat-pm-input::placeholder {
    color: #9aa0a6;
}

.chat-pm-panel.pm-theme-im .btn-chat-pm-mic,
.chat-pm-panel.pm-theme-im .btn-chat-pm-attach,
.chat-pm-panel.pm-theme-im .btn-chat-pm-smiley {
    color: #7a8087;
}

.chat-pm-panel.pm-theme-im .btn-chat-pm-mic.is-recording {
    color: #ff5d6c;
}

.chat-pm-panel.pm-theme-im .btn-chat-pm-send {
    background: #06c755;
}

.chat-pm-panel.pm-theme-im .chat-pm-smiley-picker {
    background: #ffffff;
    border: 1px solid #e3e6ea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.chat-pm-panel.pm-theme-im .smiley-picker-head {
    color: #5f6368;
    border-bottom: 1px solid #e8eaed;
}

.chat-pm-panel.pm-theme-im .chat-pm-voice-timer {
    color: #06c755;
}

@keyframes im-bubble-in {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

/* =============================================
   PM theme: Neon Glow
   ============================================= */
.chat-pm-panel.pm-theme-neon {
    background: #0a0a0f;
}

.chat-pm-panel.pm-theme-neon .chat-pm-head {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(34, 211, 238, 0.25);
    backdrop-filter: blur(8px);
}

.chat-pm-panel.pm-theme-neon .chat-pm-title {
    color: #22d3ee;
}

.chat-pm-panel.pm-theme-neon .chat-pm-title i {
    color: #f472b6;
}

.chat-pm-panel.pm-theme-neon .chat-pm-thread-list,
.chat-pm-panel.pm-theme-neon .chat-pm-messages {
    background: #0a0a0f;
}

.chat-pm-panel.pm-theme-neon .chat-pm-thread-item:hover {
    background: rgba(34, 211, 238, 0.08);
}

.chat-pm-panel.pm-theme-neon .chat-pm-thread-item.has-unread {
    background: rgba(135, 206, 235, 0.16);
}

.chat-pm-panel.pm-theme-neon .chat-pm-thread-item.has-unread:hover {
    background: rgba(135, 206, 235, 0.28);
}

.chat-pm-panel.pm-theme-neon .chat-pm-thread-name,
.chat-pm-panel.pm-theme-neon .chat-pm-msg-name {
    color: #e8f6ff;
}

.chat-pm-panel.pm-theme-neon .chat-pm-thread-snippet,
.chat-pm-panel.pm-theme-neon .chat-pm-thread-time,
.chat-pm-panel.pm-theme-neon .chat-pm-time {
    color: #64748b;
}

.chat-pm-panel.pm-theme-neon .chat-pm-partner {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
    color: #94a3b8;
}

.chat-pm-panel.pm-theme-neon .chat-pm-msg.theirs .chat-pm-bubble {
    background: #11111a;
    border: 1px solid rgba(34, 211, 238, 0.5);
    color: #e8f6ff;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.25), inset 0 0 8px rgba(34, 211, 238, 0.08);
}

.chat-pm-panel.pm-theme-neon .chat-pm-msg.mine .chat-pm-bubble {
    background: #160f1d;
    border: 1px solid rgba(244, 114, 182, 0.55);
    color: #ffe4f1;
    box-shadow: 0 0 12px rgba(244, 114, 182, 0.3), inset 0 0 8px rgba(244, 114, 182, 0.1);
}

.chat-pm-panel.pm-theme-neon .chat-pm-input-row {
    background: #0d0d14;
    border-top: 1px solid rgba(34, 211, 238, 0.2);
}

.chat-pm-panel.pm-theme-neon .chat-pm-input {
    background: #0d0d14;
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #e8f6ff;
    border-radius: 8px;
}

.chat-pm-panel.pm-theme-neon .chat-pm-input::placeholder {
    color: #475569;
}

.chat-pm-panel.pm-theme-neon .btn-chat-pm-mic,
.chat-pm-panel.pm-theme-neon .btn-chat-pm-attach,
.chat-pm-panel.pm-theme-neon .btn-chat-pm-smiley {
    color: #67e8f9;
}

.chat-pm-panel.pm-theme-neon .btn-chat-pm-send {
    background: linear-gradient(135deg, #22d3ee, #f472b6);
}

.chat-pm-panel.pm-theme-neon .chat-pm-voice-timer {
    color: #22d3ee;
}

/* =============================================
   PM theme: Paper Token
   ============================================= */
.chat-pm-panel.pm-theme-paper {
    background: #f3ead8;
}

.chat-pm-panel.pm-theme-paper .chat-pm-head {
    background: #fbf6ea;
    border-bottom: 1px solid #e6d9bb;
    backdrop-filter: blur(8px);
}

.chat-pm-panel.pm-theme-paper .chat-pm-title {
    color: #6b5d3e;
}

.chat-pm-panel.pm-theme-paper .chat-pm-title i {
    color: #a8d5a2;
}

.chat-pm-panel.pm-theme-paper .btn-chat-pm-back,
.chat-pm-panel.pm-theme-paper .btn-chat-pm-close,
.chat-pm-panel.pm-theme-paper .btn-chat-pm-theme {
    border-color: #e0d4b4;
    background: #fbf6ea;
    color: #9a8b68;
}

.chat-pm-panel.pm-theme-paper .chat-pm-thread-list,
.chat-pm-panel.pm-theme-paper .chat-pm-messages {
    background: #f3ead8;
}

.chat-pm-panel.pm-theme-paper .chat-pm-thread-item:hover {
    background: rgba(107, 93, 62, 0.08);
}

.chat-pm-panel.pm-theme-paper .chat-pm-thread-item.has-unread {
    background: rgba(135, 206, 235, 0.4);
}

.chat-pm-panel.pm-theme-paper .chat-pm-thread-item.has-unread:hover {
    background: rgba(135, 206, 235, 0.55);
}

.chat-pm-panel.pm-theme-paper .chat-pm-thread-name,
.chat-pm-panel.pm-theme-paper .chat-pm-msg-name {
    color: #6b5d3e;
}

.chat-pm-panel.pm-theme-paper .chat-pm-thread-snippet,
.chat-pm-panel.pm-theme-paper .chat-pm-thread-time,
.chat-pm-panel.pm-theme-paper .chat-pm-time {
    color: #a3926f;
}

.chat-pm-panel.pm-theme-paper .chat-pm-partner {
    background: #fbf6ea;
    border-bottom: 1px solid #e6d9bb;
    color: #9a8b68;
}

.chat-pm-panel.pm-theme-paper .chat-pm-msg.theirs .chat-pm-bubble {
    background: #276b55;
    border: 1px solid #e4d9bd;
    color: #4a4232;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.07);
}

.chat-pm-panel.pm-theme-paper .chat-pm-msg.mine .chat-pm-bubble {
    background: #cfe6b8;
    border: 1px solid #b8d49c;
    color: #33402a;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.07);
}

.chat-pm-panel.pm-theme-paper .chat-pm-input-row {
    background: #fbf6ea;
    border-top: 1px solid #e6d9bb;
}

.chat-pm-panel.pm-theme-paper .chat-pm-input {
    background: #fffdf7;
    border: 1px solid #ddd0af;
    color: #4a4232;
}

.chat-pm-panel.pm-theme-paper .chat-pm-input::placeholder {
    color: #b0a184;
}

.chat-pm-panel.pm-theme-paper .btn-chat-pm-mic,
.chat-pm-panel.pm-theme-paper .btn-chat-pm-attach,
.chat-pm-panel.pm-theme-paper .btn-chat-pm-smiley {
    color: #9a8b68;
}

.chat-pm-panel.pm-theme-paper .btn-chat-pm-send {
    background: #a8d5a2;
    color: #33402a;
}

.chat-pm-panel.pm-theme-paper .chat-pm-voice-timer {
    color: #8aa97c;
}

/* =============================================
   PM theme: Twitter/X Style
   ============================================= */
.chat-pm-panel.pm-theme-twitter {
    background: #ffffff;
}

.chat-pm-panel.pm-theme-twitter .chat-pm-head {
    background: #ffffff;
    border-bottom: 1px solid #e1e8ed;
    backdrop-filter: blur(8px);
}

.chat-pm-panel.pm-theme-twitter .chat-pm-title {
    color: #14171a;
}

.chat-pm-panel.pm-theme-twitter .chat-pm-title i {
    color: #1da1f2;
}

.chat-pm-panel.pm-theme-twitter .btn-chat-pm-back,
.chat-pm-panel.pm-theme-twitter .btn-chat-pm-close,
.chat-pm-panel.pm-theme-twitter .btn-chat-pm-theme {
    border-color: #e1e8ed;
    background: #ffffff;
    color: #657786;
}

.chat-pm-panel.pm-theme-twitter .chat-pm-thread-list,
.chat-pm-panel.pm-theme-twitter .chat-pm-messages {
    background: #ffffff;
}

.chat-pm-panel.pm-theme-twitter .chat-pm-thread-item:hover {
    background: #f7f9fa;
}

.chat-pm-panel.pm-theme-twitter .chat-pm-thread-item.has-unread {
    background: rgba(135, 206, 235, 0.2);
}

.chat-pm-panel.pm-theme-twitter .chat-pm-thread-item.has-unread:hover {
    background: rgba(135, 206, 235, 0.34);
}

.chat-pm-panel.pm-theme-twitter .chat-pm-thread-name,
.chat-pm-panel.pm-theme-twitter .chat-pm-msg-name {
    color: #14171a;
}

.chat-pm-panel.pm-theme-twitter .chat-pm-thread-snippet,
.chat-pm-panel.pm-theme-twitter .chat-pm-thread-time,
.chat-pm-panel.pm-theme-twitter .chat-pm-time {
    color: #657786;
}

.chat-pm-panel.pm-theme-twitter .chat-pm-partner {
    background: #ffffff;
    border-bottom: 1px solid #e1e8ed;
    color: #657786;
}

.chat-pm-panel.pm-theme-twitter .chat-pm-msg.theirs .chatter-avatar-wrap,
.chat-pm-panel.pm-theme-twitter .chat-pm-msg-avatar.chat-pm-avatar-sm {
    width: 48px;
    height: 48px;
}

.chat-pm-panel.pm-theme-twitter .chat-pm-msg.theirs .chat-pm-bubble {
    background: #5f64f5;
    border: 1px solid #e1e8ed;
    color: #14171a;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.chat-pm-panel.pm-theme-twitter .chat-pm-msg.mine .chat-pm-bubble {
    background: #1da1f2;
    border: 1px solid #1da1f2;
    color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.35);
}

.chat-pm-panel.pm-theme-twitter .chat-pm-input-row {
    background: #ffffff;
    border-top: 1px solid #e1e8ed;
}

.chat-pm-panel.pm-theme-twitter .chat-pm-input {
    background: #f5f8fa;
    border: 1px solid #e1e8ed;
    color: #14171a;
}

.chat-pm-panel.pm-theme-twitter .chat-pm-input::placeholder {
    color: #657786;
}

.chat-pm-panel.pm-theme-twitter .btn-chat-pm-mic,
.chat-pm-panel.pm-theme-twitter .btn-chat-pm-attach,
.chat-pm-panel.pm-theme-twitter .btn-chat-pm-smiley {
    color: #657786;
}

.chat-pm-panel.pm-theme-twitter .chat-pm-avatar {
    border-color: rgba(20, 23, 26, 0.12);
}

.chat-pm-panel.pm-theme-twitter .btn-chat-pm-send {
    background: #1da1f2;
}

.chat-pm-panel.pm-theme-twitter .chat-pm-voice-timer {
    color: #1da1f2;
}

/* =============================================
   PM themes: Doodle / Ocean / Sunset
   (full room themes shared with chat.php's PM)
   ============================================= */
.chat-pm-panel.pm-theme-doodle {
    background: #fbf3dc;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-head {
    background: linear-gradient(90deg, #fdeec2, #f9e6b3);
    border-bottom: 1px solid #ecd9a0;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-title {
    color: #6b5310;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-title i {
    color: #d97706;
}

.chat-pm-panel.pm-theme-doodle .btn-chat-pm-back,
.chat-pm-panel.pm-theme-doodle .btn-chat-pm-close,
.chat-pm-panel.pm-theme-doodle .btn-chat-pm-theme {
    border-color: #e4cf9a;
    background: #fff7e0;
    color: #8a6d22;
}

.chat-pm-panel.pm-theme-doodle .btn-chat-pm-back:hover,
.chat-pm-panel.pm-theme-doodle .btn-chat-pm-close:hover,
.chat-pm-panel.pm-theme-doodle .btn-chat-pm-theme:hover {
    background: #fcebc4;
    color: #6b5310;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-thread-list,
.chat-pm-panel.pm-theme-doodle .chat-pm-messages {
    background: #fbf3dc;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-thread-item:hover {
    background: rgba(217, 119, 6, 0.1);
}

.chat-pm-panel.pm-theme-doodle .chat-pm-thread-item.has-unread {
    background: rgba(255, 200, 60, 0.35);
}

.chat-pm-panel.pm-theme-doodle .chat-pm-thread-item.has-unread:hover {
    background: rgba(255, 200, 60, 0.5);
}

.chat-pm-panel.pm-theme-doodle .chat-pm-thread-name,
.chat-pm-panel.pm-theme-doodle .chat-pm-msg-name {
    color: #6b5310;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-thread-snippet {
    color: #a58b4a;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-thread-time,
.chat-pm-panel.pm-theme-doodle .chat-pm-time {
    color: #b5a272;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-partner {
    background: #fff7e0;
    border-bottom: 1px solid #ecd9a0;
    color: #8a6d22;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-partner-uname {
    color: #6b5310;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-avatar {
    border-color: rgba(107, 83, 16, 0.15);
}

.chat-pm-panel.pm-theme-doodle .chat-pm-msg.theirs .chat-pm-bubble {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.8), rgba(180, 140, 20, 0.72));
    border: 1px solid rgba(255, 190, 60, 0.55);
    color: #ffffff;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-msg.mine .chat-pm-bubble {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.8), rgba(245, 158, 11, 0.7));
    border: 1px solid rgba(217, 119, 6, 0.5);
    color: #ffffff;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-reply-quote {
    background: rgba(107, 83, 16, 0.08);
    border-left-color: rgba(217, 119, 6, 0.6);
}

.chat-pm-panel.pm-theme-doodle .chat-pm-msg.mine .chat-pm-reply-quote {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.chat-pm-panel.pm-theme-doodle .chat-pm-reply-text {
    color: #ffffff;
}

.chat-pm-panel.pm-theme-doodle .btn-pm-msg-reply,
.chat-pm-panel.pm-theme-doodle .btn-pm-msg-edit,
.chat-pm-panel.pm-theme-doodle .btn-pm-msg-del {
    color: #b5a272;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-input-row {
    background: #fff7e0;
    border-top: 1px solid #ecd9a0;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-input {
    background: #fffdf3;
    border: 1px solid #e4cf9a;
    color: #4a3c10;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-input::placeholder {
    color: #a58b4a;
}

.chat-pm-panel.pm-theme-doodle .btn-chat-pm-mic,
.chat-pm-panel.pm-theme-doodle .btn-chat-pm-attach,
.chat-pm-panel.pm-theme-doodle .btn-chat-pm-smiley {
    color: #9a7b2e;
}

.chat-pm-panel.pm-theme-doodle .btn-chat-pm-mic.is-recording {
    color: #d97706;
}

.chat-pm-panel.pm-theme-doodle .btn-chat-pm-send {
    background: #d97706;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-smiley-picker {
    background: #fffdf3;
    border: 1px solid #ecd9a0;
    box-shadow: 0 10px 30px rgba(107, 83, 16, 0.2);
}

.chat-pm-panel.pm-theme-doodle .smiley-picker-head {
    color: #8a6d22;
    border-bottom: 1px solid #ecd9a0;
}

.chat-pm-panel.pm-theme-doodle .chat-pm-voice-timer {
    color: #d97706;
}

.chat-pm-panel.pm-theme-ocean {
    background: #e1f1fb;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-head {
    background: linear-gradient(90deg, #d9eefc, #cae8fb);
    border-bottom: 1px solid #b4dcf5;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-title {
    color: #0c4a6e;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-title i {
    color: #0284c7;
}

.chat-pm-panel.pm-theme-ocean .btn-chat-pm-back,
.chat-pm-panel.pm-theme-ocean .btn-chat-pm-close,
.chat-pm-panel.pm-theme-ocean .btn-chat-pm-theme {
    border-color: #b4dcf5;
    background: #f2faff;
    color: #3b6f8d;
}

.chat-pm-panel.pm-theme-ocean .btn-chat-pm-back:hover,
.chat-pm-panel.pm-theme-ocean .btn-chat-pm-close:hover,
.chat-pm-panel.pm-theme-ocean .btn-chat-pm-theme:hover {
    background: #d8edfa;
    color: #0c4a6e;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-thread-list,
.chat-pm-panel.pm-theme-ocean .chat-pm-messages {
    background: #e1f1fb;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-thread-item:hover {
    background: rgba(2, 132, 199, 0.1);
}

.chat-pm-panel.pm-theme-ocean .chat-pm-thread-item.has-unread {
    background: rgba(56, 189, 248, 0.3);
}

.chat-pm-panel.pm-theme-ocean .chat-pm-thread-item.has-unread:hover {
    background: rgba(56, 189, 248, 0.45);
}

.chat-pm-panel.pm-theme-ocean .chat-pm-thread-name,
.chat-pm-panel.pm-theme-ocean .chat-pm-msg-name {
    color: #0c4a6e;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-thread-snippet {
    color: #5b8aa6;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-thread-time,
.chat-pm-panel.pm-theme-ocean .chat-pm-time {
    color: #7fa9c0;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-partner {
    background: #f2faff;
    border-bottom: 1px solid #b4dcf5;
    color: #3b6f8d;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-partner-uname {
    color: #0c4a6e;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-avatar {
    border-color: rgba(2, 132, 199, 0.15);
}

.chat-pm-panel.pm-theme-ocean .chat-pm-msg.theirs .chat-pm-bubble {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.85), rgba(56, 189, 248, 0.7));
    border: 1px solid rgba(56, 189, 248, 0.6);
    color: #ffffff;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-msg.mine .chat-pm-bubble {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.65), rgba(6, 182, 212, 0.55));
    border: 1px solid rgba(3, 140, 200, 0.5);
    color: #ffffff;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-reply-quote {
    background: rgba(12, 74, 110, 0.08);
    border-left-color: rgba(2, 132, 199, 0.6);
    color: #ffffff;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-msg.mine .chat-pm-reply-quote {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-reply-text {
    color: #ffffff;
}

.chat-pm-panel.pm-theme-ocean .btn-pm-msg-reply,
.chat-pm-panel.pm-theme-ocean .btn-pm-msg-edit,
.chat-pm-panel.pm-theme-ocean .btn-pm-msg-del {
    color: #7fa9c0;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-input-row {
    background: #e9f5fd;
    border-top: 1px solid #b4dcf5;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-input {
    background: #f2faff;
    border: 1px solid #b4dcf5;
    color: #0c3654;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-input::placeholder {
    color: #5b8aa6;
}

.chat-pm-panel.pm-theme-ocean .btn-chat-pm-mic,
.chat-pm-panel.pm-theme-ocean .btn-chat-pm-attach,
.chat-pm-panel.pm-theme-ocean .btn-chat-pm-smiley {
    color: #3b6f8d;
}

.chat-pm-panel.pm-theme-ocean .btn-chat-pm-mic.is-recording {
    color: #0284c7;
}

.chat-pm-panel.pm-theme-ocean .btn-chat-pm-send {
    background: #0284c7;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-smiley-picker {
    background: #f2faff;
    border: 1px solid #b4dcf5;
    box-shadow: 0 10px 30px rgba(12, 74, 110, 0.2);
}

.chat-pm-panel.pm-theme-ocean .smiley-picker-head {
    color: #3b6f8d;
    border-bottom: 1px solid #b4dcf5;
}

.chat-pm-panel.pm-theme-ocean .chat-pm-voice-timer {
    color: #0284c7;
}

.chat-pm-panel.pm-theme-sunset {
    background: #fbe7ec;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-head {
    background: linear-gradient(90deg, #fcd9e4, #f6d9ef);
    border-bottom: 1px solid #ecbfd6;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-title {
    color: #7a1144;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-title i {
    color: #db2777;
}

.chat-pm-panel.pm-theme-sunset .btn-chat-pm-back,
.chat-pm-panel.pm-theme-sunset .btn-chat-pm-close,
.chat-pm-panel.pm-theme-sunset .btn-chat-pm-theme {
    border-color: #ecbfd6;
    background: #fff0f4;
    color: #a05579;
}

.chat-pm-panel.pm-theme-sunset .btn-chat-pm-back:hover,
.chat-pm-panel.pm-theme-sunset .btn-chat-pm-close:hover,
.chat-pm-panel.pm-theme-sunset .btn-chat-pm-theme:hover {
    background: #fbdbe8;
    color: #7a1144;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-thread-list,
.chat-pm-panel.pm-theme-sunset .chat-pm-messages {
    background: #fbe7ec;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-thread-item:hover {
    background: rgba(219, 39, 119, 0.1);
}

.chat-pm-panel.pm-theme-sunset .chat-pm-thread-item.has-unread {
    background: rgba(236, 72, 153, 0.3);
}

.chat-pm-panel.pm-theme-sunset .chat-pm-thread-item.has-unread:hover {
    background: rgba(236, 72, 153, 0.45);
}

.chat-pm-panel.pm-theme-sunset .chat-pm-thread-name,
.chat-pm-panel.pm-theme-sunset .chat-pm-msg-name {
    color: #7a1144;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-thread-snippet {
    color: #b06b8a;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-thread-time,
.chat-pm-panel.pm-theme-sunset .chat-pm-time {
    color: #c08da6;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-partner {
    background: #fff0f4;
    border-bottom: 1px solid #ecbfd6;
    color: #a05579;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-partner-uname {
    color: #7a1144;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-avatar {
    border-color: rgba(219, 39, 119, 0.15);
}

.chat-pm-panel.pm-theme-sunset .chat-pm-msg.theirs .chat-pm-bubble {
    background: linear-gradient(135deg, rgba(190, 54, 118, 0.85), rgba(143, 72, 231, 0.8));
    border: 1px solid rgba(244, 114, 182, 0.55);
    color: #ffffff;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-msg.mine .chat-pm-bubble {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.7), rgba(139, 92, 246, 0.65));
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #ffffff;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-reply-quote {
    background: rgba(122, 17, 68, 0.08);
    border-left-color: rgba(219, 39, 119, 0.6);
}

.chat-pm-panel.pm-theme-sunset .chat-pm-msg.mine .chat-pm-reply-quote {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.chat-pm-panel.pm-theme-sunset .chat-pm-reply-text {
    color: #ffffff;
}

.chat-pm-panel.pm-theme-sunset .btn-pm-msg-reply,
.chat-pm-panel.pm-theme-sunset .btn-pm-msg-edit,
.chat-pm-panel.pm-theme-sunset .btn-pm-msg-del {
    color: #c08da6;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-input-row {
    background: #fff0f4;
    border-top: 1px solid #ecbfd6;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-input {
    background: #fff7fa;
    border: 1px solid #ecbfd6;
    color: #4d0f2a;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-input::placeholder {
    color: #b06b8a;
}

.chat-pm-panel.pm-theme-sunset .btn-chat-pm-mic,
.chat-pm-panel.pm-theme-sunset .btn-chat-pm-attach,
.chat-pm-panel.pm-theme-sunset .btn-chat-pm-smiley {
    color: #a05579;
}

.chat-pm-panel.pm-theme-sunset .btn-chat-pm-mic.is-recording {
    color: #db2777;
}

.chat-pm-panel.pm-theme-sunset .btn-chat-pm-send {
    background: #a21caf;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-smiley-picker {
    background: #fff7fa;
    border: 1px solid #ecbfd6;
    box-shadow: 0 10px 30px rgba(122, 17, 68, 0.2);
}

.chat-pm-panel.pm-theme-sunset .smiley-picker-head {
    color: #a05579;
    border-bottom: 1px solid #ecbfd6;
}

.chat-pm-panel.pm-theme-sunset .chat-pm-voice-timer {
    color: #a21caf;
}

/* ===== PROFILE FEED (WALL) — light theme ===== */
#chatProfileModal .chat-feed { flex: 0 0 100%; max-width: 100%; margin-top: 14px; border-top: 1px solid rgba(0, 0, 0, 0.08); padding-top: 12px; color: #22252e; }
/* Profile modal: centered content box (900px max, body scrolls internally) */
#chatProfileModal .modal-dialog {
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#chatProfileModal .modal-content {
    height: auto;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#chatProfileModal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
#chatProfileModal .modal-header,
#chatProfileModal .modal-footer {
    flex-shrink: 0;
}
#chatProfileModal .chat-feed-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #22252e; margin-bottom: 10px; }
#chatProfileModal .chat-feed-following-btn { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.12); background: #f3f4f6; color: #6b7280; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; }
#chatProfileModal .chat-feed-back-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.12); background: #f3f4f6; color: #6b7280; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; }
#chatProfileModal .chat-feed-following-btn:hover,
#chatProfileModal .chat-feed-back-btn:hover { color: var(--primary, #1e90ff); border-color: var(--primary, #1e90ff); }
#chatProfileModal .chat-feed-following-btn.active { color: var(--primary, #1e90ff); border-color: var(--primary, #1e90ff); background: rgba(var(--primary-rgb, 30, 144, 255), 0.1); }
#chatProfileModal .chat-feed-following-btn#btnChatFeedFollowGallery,
#chatProfileModal .chat-feed-following-btn#btnChatFeedGallery { margin-left: 0; }
#chatProfileModal .chat-feed-composer { background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 12px; padding: 10px; margin-bottom: 12px; }
#chatProfileModal .chat-feed-composer textarea { width: 100%; background: transparent; border: none; outline: none; color: #22252e; font-family: inherit; font-size: 13px; line-height: 1.4; resize: none; min-height: 44px; }
#chatProfileModal .chat-feed-composer-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
#chatProfileModal .chat-feed-img-btn { background: #f3f4f6; color: #374151; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
#chatProfileModal .chat-feed-img-btn:hover { color: var(--primary, #1e90ff); border-color: var(--primary, #1e90ff); }
#chatProfileModal .chat-feed-img-btn:disabled { opacity: 0.6; cursor: default; }
#chatProfileModal .chat-feed-post-btn { background: var(--primary, #1e90ff); color: #fff; border: none; border-radius: 8px; padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
#chatProfileModal .chat-feed-post-btn:hover { filter: brightness(1.08); }
#chatProfileModal .chat-feed-post-btn:disabled { opacity: 0.6; cursor: default; }
#chatProfileModal .chat-feed-img-preview { position: relative; margin-top: 8px; }
#chatProfileModal .chat-feed-img-preview img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.1); }
#chatProfileModal .chat-feed-img-remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.65); color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 12px; }
#feedGalleryModal .chat-feed-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
#feedGalleryModal .modal-dialog { margin: 0 auto; width: 100%; max-width: 640px; height: 100vh; max-height: 100vh; display: flex; flex-direction: column; }
#feedGalleryModal .modal-content { height: 100%; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
#feedGalleryModal .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
#feedGalleryModal .modal-footer { flex-shrink: 0; }
#feedGalleryModal .chat-feed-gallery-more { grid-column: 1 / -1; display: block; margin: 6px auto 0; background: #f3f4f6; color: var(--primary, #1e90ff); border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 12px; font-weight: 600; font-family: inherit; }
#feedGalleryModal .chat-feed-gallery-more:hover { background: #eaf3ff; border-color: var(--primary, #1e90ff); }
#feedGalleryModal .chat-feed-gallery-item { padding: 0; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; background: none; cursor: pointer; overflow: hidden; }
#feedGalleryModal .chat-feed-gallery-item:hover { border-color: var(--primary, #1e90ff); }
#feedGalleryModal .chat-feed-gallery-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
#feedGalleryModal .chat-feed-gallery-empty { font-size: 13px; color: #6b7280; text-align: center; padding: 20px 8px; }
#feedPhotoModal .chat-feed-photo-caption { margin-top: 10px; padding: 10px 12px; background: #f3f4f6; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 8px; }
#feedPhotoModal .chat-feed-photo-caption-author { font-size: 12px; font-weight: 700; color: var(--primary, #1e90ff); }
#feedPhotoModal .chat-feed-photo-caption-time { font-size: 11px; color: #6b7280; margin-left: 6px; }
#feedPhotoModal .chat-feed-photo-caption-text { margin-top: 4px; font-size: 13px; line-height: 1.45; color: #22252e; word-break: break-word; }
#feedPhotoModal .chat-feed-photo-cm { margin-top: 10px; }
#feedPhotoModal .chat-feed-photo-cm-msg { font-size: 12px; color: #16a34a; min-height: 16px; }
#feedPhotoModal .chat-feed-photo-cm-msg.error { color: #dc2626; }
#feedPhotoModal .chat-feed-photo-cm-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 6px; }
#feedPhotoModal .chat-feed-photo-cm-form textarea { flex: 1; min-width: 0; background: #fff; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 8px; color: #22252e; font-family: inherit; font-size: 13px; line-height: 1.4; resize: none; padding: 7px 10px; }
#feedPhotoModal .chat-feed-photo-cm-form textarea:focus { outline: none; border-color: var(--primary, #1e90ff); }
#feedPhotoModal #btnFeedPhotoCmSend { background: var(--primary, #1e90ff); color: #fff; border: none; border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
#feedPhotoModal #btnFeedPhotoCmSend:hover { filter: brightness(1.08); }
#feedPhotoModal #btnFeedPhotoCmSend:disabled { opacity: 0.6; cursor: default; }
#feedPhotoModal .chat-feed-photo-cm-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; flex: 1 1 auto; max-height: none; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
#feedPhotoModal .chat-feed-photo-cm-list::-webkit-scrollbar { width: 6px; }
#feedPhotoModal .chat-feed-photo-cm-list::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 3px; }
#feedPhotoModal .chat-feed-photo-cm-empty { font-size: 12px; color: #9ca3af; text-align: center; padding: 8px 0; }
#feedPhotoModal .chat-feed-photo-cm-comment { position: relative; }
#feedPhotoModal .chat-feed-comment { position: relative; display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
#feedPhotoModal .chat-feed-comment-react-float { position: absolute; bottom: 4px; right: 6px; z-index: 2; }
#feedPhotoModal .chat-feed-comment-react-float .chat-feed-react-btn { background: #f3f4f6; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 999px; font-size: 14px; padding: 1px 5px; line-height: 1.4; cursor: pointer; }
#feedPhotoModal .chat-feed-comment-react-float .chat-feed-react-btn:hover { border-color: var(--primary, #1e90ff); }
#feedPhotoModal .chat-feed-comment-react-float .chat-feed-react-btn.reacted { border-color: var(--primary, #1e90ff); background: #eaf3ff; }
#feedPhotoModal .chat-feed-comment-react-float .feed-react-default { font-style: normal; font-size: 14px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; color: #3a3f45; filter: grayscale(1); }
#feedPhotoModal .chat-feed-comment:last-of-type { margin-bottom: 0; }
#feedPhotoModal .chat-feed-comment-avatar { width: 26px !important; height: 26px !important; border-radius: 50%; object-fit: cover; flex-shrink: 0; cursor: pointer; }
#feedPhotoModal .chat-feed-comment-body { background: #f3f4f6; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 10px; padding: 6px 10px; min-width: 0; flex: 1; }
#feedPhotoModal .chat-feed-comment-name { display: block; font-size: 12px; font-weight: 600; color: #22252e; margin-bottom: 2px; }
#feedPhotoModal .chat-feed-comment-text { font-size: 12px; color: #22252e; word-break: break-word; }
#feedPhotoModal .chat-feed-comment-time { display: block; font-size: 10px; color: #9ca3af; margin-top: 2px; }
#feedPhotoModal .chat-feed-comment-reactions { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
#feedPhotoModal .chat-feed-comment-reactions .chat-feed-react-btn { font-size: 12px; padding: 0 4px; line-height: 1.5; }
#feedPhotoModal .chat-feed-comment-reactions .react-pill { font-size: 11px; padding: 0 6px 0 4px; }
#feedPhotoModal .react-pill { background: rgba(0, 0, 0, 0.06); color: #374151; }
#feedPhotoModal .react-pill.active { background: var(--primary, #1e90ff); color: #fff; }
#feedPhotoModal .chat-feed-react-btn { background: #f3f4f6; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 999px; color: #374151; font-size: 13px; padding: 2px 10px; cursor: pointer; line-height: 1.7; display: inline-flex; align-items: center; gap: 4px; font-family: inherit; }
#feedPhotoModal .chat-feed-react-btn:hover { color: var(--primary, #1e90ff); border-color: var(--primary, #1e90ff); }
#feedPhotoModal .chat-feed-react-btn.reacted { color: var(--primary, #1e90ff); border-color: var(--primary, #1e90ff); background: #eaf3ff; }
#feedPhotoModal .feed-react-default { font-style: normal; font-size: 15px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; color: #3a3f45; filter: grayscale(1); }
#feedPhotoModal .chat-feed-comment-del { align-self: center; }
#feedPhotoModal .chat-feed-comment-actions { display: flex; flex-direction: row; align-items: center; gap: 4px; flex-shrink: 0; align-self: center; opacity: 0; transition: opacity 0.2s; }
#feedPhotoModal .chat-feed-comment:hover .chat-feed-comment-actions { opacity: 1; }
#feedPhotoModal .chat-feed-comment-actions .chat-feed-edit { margin-left: 0; }
#feedPhotoModal .chat-feed-comment-actions .chat-feed-edit, #feedPhotoModal .chat-feed-comment-actions .chat-feed-del { margin: 0; padding: 0; width: 22px; height: 22px; font-size: 10px; color: #1e90ff; background: rgba(30, 144, 255, 0.12); border: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
#feedPhotoModal .chat-feed-comment-actions .chat-feed-edit:hover, #feedPhotoModal .chat-feed-comment-actions .chat-feed-del:hover { background: #1e90ff; color: #fff; }
#feedPhotoModal .chat-feed-edit-save, #feedPhotoModal .chat-feed-edit-cancel { background: #1e90ff; color: #fff; border: none; border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; }
#feedPhotoModal .chat-feed-edit-save:hover, #feedPhotoModal .chat-feed-edit-cancel:hover { filter: brightness(1.1); }
#feedPhotoModal .chat-feed-edit-save:disabled { opacity: 0.6; cursor: default; }
#feedPhotoModal .chat-feed-edit-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
#feedPhotoModal .chat-feed-edit-input { width: 100%; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; color: #22252e; font-family: inherit; font-size: 13px; line-height: 1.4; resize: none; padding: 6px 8px; box-sizing: border-box; }
#feedPhotoModal .chat-feed-edit-input:focus { outline: none; border-color: var(--primary, #1e90ff); box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.15); }
#chatProfileModal .chat-feed-msg { font-size: 12px; color: #16a34a; min-height: 16px; margin-bottom: 8px; display: none; }
#chatProfileModal .chat-feed-msg.error { color: #dc2626; }
#chatProfileModal .chat-feed-list { display: flex; flex-direction: column; gap: 10px; }
#chatProfileModal .chat-feed-empty { text-align: center; color: #6b7280; font-size: 13px; padding: 16px 0; }
#chatProfileModal .chat-feed-post { position: relative; background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 12px; padding: 10px 12px; }
#chatProfileModal .chat-feed-react-float { position: absolute; bottom: 6px; right: 6px; z-index: 2; }
#chatProfileModal .chat-feed-react-float .chat-feed-react-btn { background: #f3f4f6; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 999px; font-size: 15px; padding: 2px 6px; line-height: 1.4; cursor: pointer; }
#chatProfileModal .chat-feed-react-float .chat-feed-react-btn:hover { border-color: var(--primary, #1e90ff); }
#chatProfileModal .chat-feed-react-float .chat-feed-react-btn.reacted { border-color: var(--primary, #1e90ff); background: #eaf3ff; }
#chatProfileModal .chat-feed-react-float .feed-react-default { font-style: normal; font-size: 16px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; color: #3a3f45; filter: grayscale(1); }
#chatProfileModal .chat-feed-post-head { display: flex; align-items: center; gap: 10px; }
#chatProfileModal .chat-feed-avatar-wrap { position: relative; width: 34px; height: 34px; flex-shrink: 0; }
#chatProfileModal .chat-feed-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
#chatProfileModal .chat-feed-frame { position: absolute; top: -3px; left: -3px; width: 40px; height: 40px; border-radius: 50%; background-repeat: no-repeat; background-size: cover; background-position: center; pointer-events: none; }
#chatProfileModal .chat-feed-post-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
#chatProfileModal .chat-feed-post-name { font-size: 13px; font-weight: 600; color: #22252e; line-height: 1.2; }
#chatProfileModal .chat-feed-post-time { font-size: 11px; color: #6b7280; }
#chatProfileModal .chat-feed-post-text { margin: 8px 0 2px 44px; font-size: 13px; line-height: 1.45; color: #22252e; }
#chatProfileModal .chat-feed-post-image { width: calc(100% - 44px); margin-left: 44px; margin-top: 8px; max-height: 260px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.1); cursor: zoom-in; }
#chatProfileModal .chat-feed-extra { display: none; }
#chatProfileModal .chat-feed-extra.show { display: inline; }
#chatProfileModal .chat-feed-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; font-size: 13px; color: #6b7280; }
#chatProfileModal .chat-feed-loading i { font-size: 14px; }
#chatProfileModal .chat-feed-msg { clear: both; }
#chatProfileModal .chat-feed { overflow-x: visible; }
#chatProfileModal .chat-feed-list { overflow-x: auto; overscroll-behavior-x: contain; max-width: 100%; }
#chatProfileModal .chat-feed-post { width: 100%; max-width: 100%; box-sizing: border-box; }
#chatProfileModal .chat-feed-load-more { display: block; width: calc(100% - 44px); margin: 6px 0 0 44px; background: #f3f4f6; color: var(--primary, #1e90ff); border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 8px; padding: 8px; cursor: pointer; font-size: 12px; font-weight: 600; font-family: inherit; }
#chatProfileModal .chat-feed-load-more:hover { background: #eaf3ff; border-color: var(--primary, #1e90ff); }
#chatProfileModal .chat-feed-more { background: none; border: none; color: var(--primary, #1e90ff); cursor: pointer; font-size: 12px; padding: 2px 0; margin-left: 44px; font-family: inherit; }
#chatProfileModal .chat-feed-more:hover { text-decoration: underline; }
#chatProfileModal .chat-feed-del { background: none; border: none; color: #6b7280; cursor: pointer; padding: 4px; font-size: 12px; opacity: 0.4; transition: opacity 0.2s; }
#chatProfileModal .chat-feed-edit { background: none; border: none; color: #6b7280; cursor: pointer; padding: 4px; font-size: 12px; opacity: 0.4; transition: opacity 0.2s; }
#chatProfileModal .chat-feed-post-head:hover .chat-feed-del, #chatProfileModal .chat-feed-comment:hover .chat-feed-del, #chatProfileModal .chat-feed-post-head:hover .chat-feed-edit, #chatProfileModal .chat-feed-comment:hover .chat-feed-edit { opacity: 1; }
#chatProfileModal .chat-feed-del:hover, #chatProfileModal .chat-feed-edit:hover { color: var(--primary, #1e90ff); }
#chatProfileModal .chat-feed-del:hover { color: #dc2626; }
#chatProfileModal .chat-feed-edit { margin-left: auto; }
#chatProfileModal .chat-feed-edit-input { width: 100%; background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; color: #22252e; font-family: inherit; font-size: 13px; line-height: 1.4; resize: none; padding: 6px 8px; margin-top: 8px; }
#chatProfileModal .chat-feed-edit-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
#chatProfileModal .chat-feed-edit-save, #chatProfileModal .chat-feed-edit-cancel { background: var(--primary, #1e90ff); color: #fff; border: none; border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
#chatProfileModal .chat-feed-edit-cancel { background: #f3f4f6; color: #374151; border: 1px solid rgba(0, 0, 0, 0.1); }
#chatProfileModal .chat-feed-edit-save:hover { filter: brightness(1.08); }
#chatProfileModal .chat-feed-edit-save:disabled { opacity: 0.6; cursor: default; }
#chatProfileModal .chat-feed-reactions-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px 44px; min-height: 24px; }
#chatProfileModal .chat-feed-react-btn { background: #f3f4f6; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 999px; color: #374151; font-size: 13px; padding: 2px 10px; cursor: pointer; line-height: 1.7; display: inline-flex; align-items: center; gap: 4px; font-family: inherit; }
#chatProfileModal .chat-feed-react-btn:hover { color: var(--primary, #1e90ff); border-color: var(--primary, #1e90ff); }
#chatProfileModal .chat-feed-react-btn.reacted { color: var(--primary, #1e90ff); border-color: var(--primary, #1e90ff); background: #eaf3ff; }
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-react-default { font-style: normal; font-size: 15px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; color: #3a3f45; filter: grayscale(1); }
#chatProfileModal .chat-feed-reactions { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.chat-feed-react-menu { position: fixed; z-index: 2147483006; background: #fff; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); display: flex; gap: 4px; padding: 6px; max-width: 90vw; flex-wrap: wrap; }
.feed-react-emoji { cursor: pointer; font-size: 20px; padding: 4px; border-radius: 6px; transition: transform 0.12s ease, background 0.12s ease; }
.feed-react-emoji:hover { transform: scale(1.25); background: #f3f4f6; }
#chatProfileModal .chat-feed-comment-btn { background: transparent; border: none; color: #6b7280; font-size: 13px; padding: 2px 8px; cursor: pointer; line-height: 1.7; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; }
#chatProfileModal .chat-feed-comment-btn:hover { color: var(--primary, #1e90ff); }
#chatProfileModal .chat-feed-comment-btn .chat-feed-cm-count { font-weight: 600; }

#feedCommentsModal .chat-feed-cm-post { background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
#feedCommentsModal .chat-feed-cm-auth { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
#feedCommentsModal .chat-feed-cm-auth-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
#feedCommentsModal .chat-feed-cm-auth-info { display: flex; flex-direction: column; }
#feedCommentsModal .chat-feed-cm-auth-name { font-weight: 600; color: #111827; font-size: 14px; }
#feedCommentsModal .chat-feed-cm-auth-time { color: #6b7280; font-size: 12px; }
#feedCommentsModal .chat-feed-cm-post-text { color: #111827; font-size: 14px; white-space: pre-wrap; line-height: 1.5; }
#feedCommentsModal .chat-feed-cm-post-image { display: block; max-width: 100%; max-height: 280px; border-radius: 8px; margin-top: 8px; cursor: pointer; }
#feedCommentsModal .modal-content, #feedPhotoModal .modal-content { max-height: 100vh; display: flex; flex-direction: column; }
#feedCommentsModal .modal-dialog { margin: 0 auto; width: 100%; max-width: 500px; height: 100vh; max-height: 100vh; display: flex; flex-direction: column; }
#feedCommentsModal .modal-dialog .modal-content { width: 100%; height: 100%; }
#feedCommentsModal .modal-body { overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
#feedPhotoModal .modal-content { height: 100vh; max-height: 100vh; }
#feedPhotoModal .modal-dialog { margin: 0 auto; width: 100%; max-width: 720px; height: 100vh; max-height: 100vh; display: flex; flex-direction: column; }
#feedPhotoModal .modal-dialog .modal-content { width: 100%; height: 100%; }
#feedPhotoModal.modal.show { padding: 0 !important; }
#feedGalleryModal.modal.show { padding: 0 !important; }
#feedPhotoModal .modal-body { overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
#feedPhotoModal #feedPhotoImg { width: auto; max-width: 100%; max-height: 42vh; flex-shrink: 0; object-fit: contain; border-radius: 8px; display: block; margin: 0 auto; }
#feedPhotoModal .chat-feed-photo-caption { flex-shrink: 0; }
#feedPhotoModal .chat-feed-photo-cm { margin-top: 10px; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#feedPhotoModal .chat-feed-photo-cm-msg { flex-shrink: 0; }
#feedPhotoModal .chat-feed-photo-cm-form { flex-shrink: 0; }
#feedPhotoModal .modal-footer { flex-shrink: 0; }
#feedCommentsModal .chat-feed-cm-list { max-height: none; min-height: 0; flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 4px 2px; margin-bottom: 12px; scrollbar-width: thin; }
#feedPhotoModal .chat-feed-photo-cm-list.cm-scroll { flex: 1 1 auto; min-height: 0; }
#feedCommentsModal .chat-feed-cm-list::-webkit-scrollbar { width: 6px; }
#feedCommentsModal .chat-feed-cm-list::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 3px; }
#feedCommentsModal .chat-feed-cm-more, #feedPhotoModal .chat-feed-cm-more { display: block; width: 100%; margin: 6px 0 0; background: #f3f4f6; color: #1e90ff; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 8px; padding: 8px; cursor: pointer; font-size: 12px; font-weight: 600; font-family: inherit; }
#feedCommentsModal .chat-feed-cm-more:hover, #feedPhotoModal .chat-feed-cm-more:hover { background: #eaf3ff; border-color: #1e90ff; }
#feedCommentsModal .modal-footer, #feedPhotoModal .modal-footer { justify-content: center; }
#feedCommentsModal .chat-feed-cm-close, #feedPhotoModal .chat-feed-cm-close, #chatProfileModal .chat-feed-cm-close, #feedGalleryModal .chat-feed-cm-close { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #f3f4f6; color: #374151; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; padding: 8px 18px; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; }
#feedCommentsModal .chat-feed-cm-close:hover, #feedPhotoModal .chat-feed-cm-close:hover, #chatProfileModal .chat-feed-cm-close:hover, #feedGalleryModal .chat-feed-cm-close:hover { background: #e5e7eb; border-color: #9ca3af; }
#chatProfileModal .modal-footer { justify-content: center; padding: 10px 16px; border-top: 1px solid rgba(0, 0, 0, 0.08); background: #fff; border-radius: 0 0 0.3rem 0.3rem; position: sticky; bottom: 0; z-index: 2; }
#chatProfileModal .chat-feed-cm-close { width: 100%; max-width: 240px; padding: 9px 18px; color: #6b7280; }
#chatProfileModal .chat-feed-cm-close:hover { color: #1e90ff; border-color: var(--primary, #1e90ff); background: #eaf3ff; }
#feedCommentsModal .chat-feed-cm-empty { color: #6b7280; font-size: 13px; text-align: center; padding: 18px 0; }
#feedCommentsModal .chat-feed-cm-form { border-top: 1px solid #e5e7eb; padding-top: 12px; display: flex; gap: 8px; align-items: flex-end; }
#feedCommentsModal .chat-feed-cm-form textarea { flex: 1; min-width: 0; resize: none; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; box-sizing: border-box; }
#feedCommentsModal .chat-feed-cm-form textarea:focus { outline: none; border-color: var(--primary, #1e90ff); box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.15); }
#feedCommentsModal .chat-feed-cm-send { background: var(--primary, #1e90ff); border: none; color: #fff; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 12px; font-weight: 600; font-family: inherit; white-space: nowrap; }
#feedCommentsModal .chat-feed-cm-send:hover { filter: brightness(1.08); }
#feedCommentsModal .chat-feed-cm-send:disabled { opacity: 0.6; cursor: default; }
#feedCommentsModal .chat-feed-cm-msg { margin-top: 8px; }
#feedCommentsModal .chat-feed-msg { font-size: 12px; color: #16a34a; min-height: 16px; margin-bottom: 8px; display: none; }
#feedCommentsModal .chat-feed-msg.error { color: #dc2626; }
/* ===== Feed comment sticker picker (comments modal + photo modal) ===== */
#feedCommentsModal .chat-feed-cm-form,
#feedPhotoModal .chat-feed-photo-cm-form { position: relative; }
.chat-cm-sticker-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #6b7280; font-size: 15px; cursor: pointer; font-family: inherit; transition: all 0.2s ease; }
#feedPhotoModal .chat-feed-photo-cm-form .chat-cm-sticker-btn { padding: 0; background: #fff; color: #6b7280; border: 1px solid #d1d5db; border-radius: 8px; width: 34px; height: 34px; }
.chat-cm-sticker-btn:hover,
#feedPhotoModal .chat-feed-photo-cm-form .chat-cm-sticker-btn:hover { background: rgba(30, 144, 255, 0.1); border-color: var(--primary, #1e90ff); color: var(--primary, #1e90ff); }
.chat-cm-smiley-picker { position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 9999; }
.chat-cm-smiley-picker .smiley-section-label:first-child { margin-top: 0; }
.chat-feed-comment-image { display: block; max-width: 120px; max-height: 120px; border-radius: 8px; margin: 6px 0; object-fit: contain; }
.chat-feed-comment-sticker { max-width: 70px; max-height: 70px; }
#feedReactionsModal .feed-reactors-count { color: var(--primary, #1e90ff); }
#feedReactionsModal .chat-feed-cm-empty { color: #6b7280; font-size: 13px; text-align: center; padding: 18px 0; }
#feedReactionsModal .chat-feed-reactors-list { max-height: 320px; overflow-y: auto; overflow-x: hidden; padding: 4px 2px; }
#feedReactionsModal .chat-feed-reactor { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; min-width: 0; }
#feedReactionsModal .chat-feed-reactor:hover { background: #f3f4f6; }
#feedReactionsModal .chat-feed-reactor-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
#feedReactionsModal .chat-feed-reactor-name { font-size: 14px; color: #22252e; font-weight: 500; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
#chatProfileModal .chat-feed-comments { margin-left: 44px; margin-top: 8px; }
#chatProfileModal .chat-feed-comment { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
#chatProfileModal .chat-feed-comment:last-of-type { margin-bottom: 0; }
#chatProfileModal .chat-feed-comment-avatar { width: 26px !important; height: 26px !important; border-radius: 50%; object-fit: cover; flex-shrink: 0; cursor: pointer; }
#chatProfileModal .chat-feed-comment-body { background: #f3f4f6; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 10px; padding: 6px 10px; min-width: 0; flex: 1; }
#chatProfileModal .chat-feed-comment-name { display: block; font-size: 12px; font-weight: 600; color: #22252e; margin-bottom: 2px; }
#chatProfileModal .chat-feed-comment-text { font-size: 12px; color: #22252e; word-break: break-word; }
#chatProfileModal .chat-feed-comment-time { display: block; font-size: 10px; color: #9ca3af; margin-top: 2px; }
#feedCommentsModal, #feedReactionsModal, #feedPhotoModal, #chatNotifModal { z-index: 2147483005; }
#feedCommentsModal .chat-feed-comment { position: relative; display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
#feedCommentsModal .chat-feed-comment-react-float { position: absolute; bottom: 4px; right: 6px; z-index: 2; }
#feedCommentsModal .chat-feed-comment-react-float .chat-feed-react-btn { background: #f3f4f6; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 999px; font-size: 14px; padding: 1px 5px; line-height: 1.4; cursor: pointer; }
#feedCommentsModal .chat-feed-comment-react-float .chat-feed-react-btn:hover { border-color: var(--primary, #1e90ff); }
#feedCommentsModal .chat-feed-comment-react-float .chat-feed-react-btn.reacted { border-color: var(--primary, #1e90ff); background: #eaf3ff; }
#feedCommentsModal .chat-feed-comment-react-float .feed-react-default { font-style: normal; font-size: 14px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; color: #3a3f45; filter: grayscale(1); }
#feedCommentsModal .chat-feed-comment:last-of-type { margin-bottom: 0; }
#feedCommentsModal .chat-feed-comment-avatar { width: 26px !important; height: 26px !important; border-radius: 50%; object-fit: cover; flex-shrink: 0; cursor: pointer; }
#feedCommentsModal .chat-feed-comment-avatar:hover { opacity: 0.85; }
#feedPhotoModal .chat-feed-comment-avatar:hover, #chatProfileModal .chat-feed-comment-avatar:hover { opacity: 0.85; }
#feedCommentsModal .chat-feed-comment-body { background: #f3f4f6; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 10px; padding: 6px 10px; min-width: 0; flex: 1; }
#feedCommentsModal .chat-feed-comment-name { display: block; font-size: 12px; font-weight: 600; color: #22252e; margin-bottom: 2px; }
#feedCommentsModal .chat-feed-comment-text { font-size: 12px; color: #22252e; word-break: break-word; }
#feedCommentsModal .chat-feed-comment-time { display: block; font-size: 10px; color: #9ca3af; margin-top: 2px; }
#feedCommentsModal .chat-feed-comment-del { align-self: center; }
#feedCommentsModal .chat-feed-comment-actions { display: flex; flex-direction: row; align-items: center; gap: 4px; flex-shrink: 0; align-self: center; opacity: 0; transition: opacity 0.2s; }
#feedCommentsModal .chat-feed-comment:hover .chat-feed-comment-actions { opacity: 1; }
#feedCommentsModal .chat-feed-comment-actions .chat-feed-edit { margin-left: 0; }
#feedCommentsModal .chat-feed-comment-actions .chat-feed-edit, #feedCommentsModal .chat-feed-comment-actions .chat-feed-del { margin: 0; padding: 0; width: 22px; height: 22px; font-size: 10px; color: #1e90ff; background: rgba(30, 144, 255, 0.12); border: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
#feedCommentsModal .chat-feed-comment-actions .chat-feed-edit:hover, #feedCommentsModal .chat-feed-comment-actions .chat-feed-del:hover { background: #1e90ff; color: #fff; }
#feedCommentsModal .chat-feed-edit-save, #feedCommentsModal .chat-feed-edit-cancel { background: #1e90ff; color: #fff; border: none; border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; }
#feedCommentsModal .chat-feed-edit-save:hover, #feedCommentsModal .chat-feed-edit-cancel:hover { filter: brightness(1.1); }
#feedCommentsModal .chat-feed-edit-save:disabled { opacity: 0.6; cursor: default; }
#feedCommentsModal .chat-feed-edit-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
#feedCommentsModal .chat-feed-edit-input { width: 100%; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; color: #22252e; font-family: inherit; font-size: 13px; line-height: 1.4; resize: none; padding: 6px 8px; box-sizing: border-box; }
#feedCommentsModal .chat-feed-edit-input:focus { outline: none; border-color: var(--primary, #1e90ff); box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.15); }
#feedCommentsModal .chat-feed-comment-reactions { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
#feedCommentsModal .chat-feed-comment-reactions .chat-feed-react-btn { font-size: 12px; padding: 0 4px; line-height: 1.5; }
#feedCommentsModal .chat-feed-comment-reactions .react-pill { font-size: 11px; padding: 0 6px 0 4px; }
#feedCommentsModal .react-pill { background: rgba(0, 0, 0, 0.06); color: #374151; }
#feedCommentsModal .react-pill.active { background: var(--primary, #1e90ff); color: #fff; }
#feedCommentsModal .chat-feed-react-btn { background: #f3f4f6; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 999px; color: #374151; font-size: 13px; padding: 2px 10px; cursor: pointer; line-height: 1.7; display: inline-flex; align-items: center; gap: 4px; font-family: inherit; }
#feedCommentsModal .chat-feed-react-btn:hover { color: var(--primary, #1e90ff); border-color: var(--primary, #1e90ff); }
#feedCommentsModal .chat-feed-react-btn.reacted { color: var(--primary, #1e90ff); border-color: var(--primary, #1e90ff); background: #eaf3ff; }
#feedCommentsModal .feed-react-default { font-style: normal; font-size: 15px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; color: #3a3f45; filter: grayscale(1); }
#chatProfileModal .chat-feed-comment-del { align-self: center; }
#chatProfileModal .chat-feed-comment-form { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
#chatProfileModal .chat-feed-comment-input { flex: 1; min-width: 0; background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; color: #22252e; font-size: 12px; padding: 6px 10px; outline: none; font-family: inherit; }
#chatProfileModal .chat-feed-comment-input:focus { border-color: var(--primary, #1e90ff); }

/* ===== Feed notification bell + modal (light theme) ===== */
.btn-chat-notif { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(30, 144, 255, 0.45); background: rgba(30, 144, 255, 0.14); color: #5aa9ff; font-size: 0.85rem; cursor: pointer; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; transition: all 0.25s; }
.btn-chat-notif:hover { background: rgba(30, 144, 255, 0.32); transform: scale(1.08); }
.chat-notif-btn { color: #6b7280; }
.chat-notif-btn:hover { color: var(--primary, #1e90ff); border-color: var(--primary, #1e90ff); }
.chat-notif-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #e0245e; color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; }
.chat-notif-btn .chat-notif-badge { top: -6px; right: -6px; }
#chatNotifModal .chat-notif-list { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
#chatNotifModal .chat-notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; border: 1px solid rgba(0, 0, 0, 0.05); }
#chatNotifModal .chat-notif-item:hover { background: #f3f4f6; }
#chatNotifModal .chat-notif-item.unread { background: #eaf3ff; }
#chatNotifModal .chat-notif-item.unread:hover { background: #dcecff; }
#chatNotifModal .chat-notif-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
#chatNotifModal .chat-notif-body { min-width: 0; flex: 1; }
#chatNotifModal .chat-notif-text { font-size: 12px; color: #22252e; line-height: 1.4; }
#chatNotifModal .chat-notif-text b { color: var(--primary, #1e90ff); }
#chatNotifModal .chat-notif-snippet { display: block; font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
#chatNotifModal .chat-notif-time { display: block; font-size: 10px; color: #9ca3af; margin-top: 1px; }
#chatNotifModal .chat-notif-empty { text-align: center; color: #9ca3af; font-size: 13px; padding: 24px 0; }
.chat-notif-clear-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(0, 0, 0, 0.15); background: #fff; color: #dc2626; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.chat-notif-clear-btn:hover { background: #fee2e2; border-color: #dc2626; }

/* =====================================================================
   LIVE CHAT — public message design ported from chat.php (messenger.css)
   Makes index.php's live-chat public messages look like chat.php's.
   ===================================================================== */
.chat-container .chat-message {
    gap: 10px;
    max-width: 80%;
    margin-bottom: 6px;
    animation: msgIn 0.2s ease;
}
.chat-container .chat-message:not(.system) {
    position: relative;
    padding-left: 44px;
}
.chat-container .chat-message:not(.system) > .chat-msg-avatar,
.chat-container .chat-message:not(.system) > .chat-msg-avatar-wrap {
    position: absolute;
    left: 0;
    top: 2px;
    margin-top: 0;
}
.chat-container .chat-message.mine:not(.system) { margin-left: auto; justify-content: flex-end; padding-left: 0; }
@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-container .chat-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    background: #1e1e2a;
    margin-top: 2px;
    box-shadow: none;
}
.chat-container .chat-msg-avatar-wrap {
    position: relative;
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: 2px;
    width: 34px;
    height: 34px;
}
.chat-container .chat-msg-avatar-wrap .chat-msg-avatar { width: 34px; height: 34px; margin: 0; }
.chat-container .chat-msg-avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #262636;
    border: none;
    color: #e8e8ee;
    font-size: 0.8rem;
    font-weight: 700;
}

.chat-container .chat-message .chat-msg-body,
.chat-container .chat-message:not(.system) .chat-msg-body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #1e1e2a;
    color: #e8e8ee;
    padding: 9px 14px;
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    max-width: 100%;
    width: fit-content;
    min-width: 0;
    min-height: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.chat-container .chat-message.mine .chat-msg-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: rgb(255, 255, 255);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 6px;
    text-align: right;
    box-shadow: rgba(30, 144, 255, 0.18) 0px 2px 10px;
    background: none #121f2f;
    overflow: visible;
    max-width: 100%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.chat-container .chat-msg-body.has-user-bg {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    background-clip: border-box;
}
.chat-container .chat-message .chat-msg-body.image-only,
.chat-container .chat-message:not(.system) .chat-msg-body.image-only,
.chat-container .chat-message.mine .chat-msg-body.image-only {
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
    display: inline-flex;
    flex-direction: column;
    width: auto;
    max-width: 100%;
    justify-content: center;
    align-items: center;
}
.chat-container .chat-message.mine .chat-msg-body.image-only {
    margin-left: auto;
    margin-right: 0;
    max-width: min(100%, 320px);
}
.chat-container .chat-msg-body.image-only .chat-msg-sticker {
    margin: 0;
    width: auto;
    height: auto;
    max-width: min(100%, 200px);
    min-width: 0;
    max-height: 200px;
    object-fit: contain;
    padding: 5px;
    background: rgba(16, 16, 24, 0.72);
    border: none;
    border-radius: 12px;
}
.chat-container .chat-message.mine .chat-msg-body.image-only .chat-msg-sticker {
    background: var(--primary, rgba(30, 144, 255, 0.85));
    box-shadow: 0 2px 10px rgba(30, 144, 255, 0.18);
}
.chat-container .chat-msg-body.image-only.has-user-bg {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    padding: 10px;
}
.chat-container .chat-msg-body.image-only.has-user-bg:has(.chat-msg-sticker) {
    padding: 0;
}
.chat-container .chat-msg-body.image-only.has-user-bg .chat-msg-sticker,
.chat-container .chat-message.mine .chat-msg-body.image-only.has-user-bg .chat-msg-sticker {
    background: transparent;
}
.chat-container .chat-msg-body.has-user-bg::after { display: none; }
.chat-container .chat-msg-body.is-reply { padding-top: 8px; }
.chat-container .chat-message.mine .chat-msg-body.image-only .chat-msg-sticker { margin-left: auto; margin-right: 0; }
.chat-container .chat-msg-body.image-only:has(.chat-msg-sticker) { padding: 0; }
.chat-container .chat-msg-body.image-only .chat-msg-sticker { padding: 5px; min-width: 0; min-height: 0; }
.chat-container .chat-message.mine:has(.chat-msg-body.image-only .chat-msg-sticker) { justify-content: flex-end; margin-left: auto; margin-right: 0; }
.chat-container .chat-message.mine:has(.chat-msg-body.image-only .chat-msg-sticker) .chat-msg-actions { padding-left: 0; justify-content: flex-end; }
.chat-container .chat-message:has(.chat-msg-body.image-only) + .chat-message:has(.chat-msg-body.image-only) { margin-top: -6px; }

/* ---- TikTok-style animal speech sticker ---- */
.chat-msg-animal-sticker {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 3;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    background: #fff;
    border-radius: 9px 9px 9px 3px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.22);
    animation: chatAnimalPop 0.45s cubic-bezier(.2, .9, .3, 1.5) both;
    pointer-events: none;
}

.chat-msg-animal-sticker img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
}
.chat-msg-animal-sticker::after {
    content: "";
    position: absolute;
    left: 5px;
    bottom: -4px;
    width: 8px;
    height: 8px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.12);
}
.chat-message.mine .chat-msg-animal-sticker {
    right: auto;
    left: -12px;
    border-radius: 9px 9px 3px 9px;
}
.chat-message.mine .chat-msg-animal-sticker::after {
    left: auto;
    right: 5px;
    box-shadow: -2px 2px 3px rgba(0, 0, 0, 0.12);
}
@keyframes chatAnimalPop {
    0% { opacity: 0; transform: scale(0.2) rotate(-12deg); }
    60% { opacity: 1; transform: scale(1.2) rotate(6deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

.chat-container .chat-reply-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #9494a8;
    background: rgba(255, 255, 255, 0.06);
    border-left: 2px solid #5b5fea;
    border-radius: 8px;
    padding: 4px 9px;
    margin-bottom: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.chat-container .chat-reply-tag i { font-size: 9px; }
.chat-container .chat-message.mine .chat-reply-tag { justify-content: flex-start; border-left-color: rgba(255, 255, 255, 0.4); }

.chat-container .chat-msg-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 3px; }
.chat-container .chat-username {
    color: #00b5ff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0;
    display: inline;
}
.chat-container .chat-username.has-bg { display: inline-block; padding: 1px 7px; border-radius: 9px; line-height: 1.5; }

.chat-container .chat-role-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: middle;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.chat-container .chat-role-badge.vip { background: rgba(245,158,11,0.16); color: #fbbf24; border-color: rgba(245,158,11,0.4); }
.chat-container .chat-role-badge.dj { background: rgba(236,72,153,0.16); color: #f472b6; border-color: rgba(236,72,153,0.4); }
.chat-container .chat-role-badge.moderator,
.chat-container .chat-role-badge.station_manager { background: rgba(16,185,129,0.16); color: #34d399; border-color: rgba(16,185,129,0.4); }
.chat-container .chat-role-badge.station_owner,
.chat-container .chat-role-badge.owner { background: rgba(244,114,182,0.16); color: #f472b6; border-color: rgba(244,114,182,0.4); }
.chat-container .chat-role-badge.admin { background: rgba(239,68,68,0.16); color: #f87171; border-color: rgba(239,68,68,0.4); }
.chat-container .chat-role-badge.developer { background: rgba(168,85,247,0.16); color: #c084fc; border-color: rgba(168,85,247,0.4); }
.chat-container .chat-role-badge.custom { background: rgba(148,163,184,0.16); color: #cbd5e1; border-color: rgba(148,163,184,0.35); }

.chat-container .chat-text {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    margin: 2px 0 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: left;
}
.chat-container .chat-text a { color: inherit; text-decoration: underline; }
.chat-container .chat-msg-edited { font-size: 10.5px; color: #6b6b80; font-weight: 400; white-space: nowrap; }

.chat-container .chat-msg-image {
    max-width: min(100%, 280px);
    max-height: 260px;
    border-radius: 12px;
    margin-top: 4px;
    display: block;
    cursor: pointer;
    object-fit: cover;
}
.chat-container .chat-msg-sticker {
    max-width: min(100%, 140px);
    min-width: 90px;
    min-height: 90px;
    max-height: 140px;
    object-fit: contain;
    display: block;
    margin-top: 2px;
    border-radius: 12px;
    cursor: pointer;
}
.chat-container .chat-msg-voice { max-width: 220px; height: 38px; margin-top: 2px; display: block; }

.chat-container .btn-msg-react {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #1e1e2a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #9494a8;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.chat-container .chat-message:hover .btn-msg-react,
.chat-container .chat-message:focus-within .btn-msg-react,
.chat-container .chat-message.show-react .btn-msg-react,
.chat-container .btn-msg-react:focus-visible { opacity: 1; pointer-events: auto; }
.chat-container .chat-message:not(.mine) .btn-msg-react { right: auto; left: 100%; margin-right: 0; margin-left: 6px; }
.chat-container .btn-msg-react:hover { background: #262636; border-color: #5b5fea; }
.chat-container .btn-msg-react.reacted { background: rgba(91, 95, 234, 0.18); border-color: #5b5fea; color: #ffffff; box-shadow: 0 0 8px rgba(91, 95, 234, 0.4); }
.chat-container .react-default-emoji { font-size: 13px; animation: emoji-pulse 2s ease-in-out infinite; }
@keyframes react-pop {
    0% { transform: scale(0.4); }
    60% { transform: scale(1.25); }
    100% { transform: scale(1); }
}
.chat-container .btn-msg-react.reacted i { animation: react-pop 0.3s ease; }

.chat-container .chat-reactions {
    position: absolute;
    bottom: -9px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 200px;
}
.chat-container .chat-message:not(.mine) .chat-reactions {
    left: 0;
    right: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: 100%;
}
.chat-container .chat-message.mine .chat-reactions {
    right: 0;
    left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    max-width: 100%;
}
.chat-container .chat-message.has-reactions .chat-msg-body { margin-bottom: 6px; }

.chat-container .react-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0 solid transparent;
    border-radius: 999px;
    padding: 2px 8px 2px 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #e8e8ee;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    user-select: none;
}
.chat-container .react-pill:hover { transform: translateY(-1px); }
.chat-container .react-pill.active { color: #ffffff; }
.chat-container .react-pill-count { font-size: 11px; font-weight: 700; color: inherit; }
@keyframes react-pill-in {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.chat-container .chat-message .chat-msg-actions,
.chat-container .chat-message:not(.system) .chat-msg-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
    order: 1;
    margin-top: 3px;
    padding-left: 44px;
    opacity: 0.45;
    transition: opacity 0.15s ease;
}
.chat-container .chat-message:hover .chat-msg-actions,
.chat-container .chat-message:focus-within .chat-msg-actions,
.chat-container .chat-message.show-react .chat-msg-actions { opacity: 1; }
.chat-container .chat-message.mine .chat-msg-actions {
    order: 3;
    padding-left: 0;
    justify-content: flex-end;
    margin-top: 0;
}
.chat-container .chat-time { font-size: 11px; color: #6b6b80; margin-right: auto; white-space: nowrap; }
.chat-container .chat-message.mine .chat-time { margin-right: 0; margin-left: auto; }
.chat-container .btn-msg-pm,
.chat-container .btn-msg-reply,
.chat-container .btn-msg-delete {
    background: transparent;
    border: none;
    color: #6b6b80;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: 0.2s cubic-bezier(.4, 0, .2, 1);
}
.chat-container .btn-msg-pm:hover,
.chat-container .btn-msg-reply:hover { background: #1e1e2a; color: #e8e8ee; }
.chat-container .btn-msg-delete:hover { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.chat-container .chat-message.system {
    width: 100%;
    max-width: 100%;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    background: none;
    padding: 0;
    border-radius: 0;
}
.chat-container .chat-system-text {
    display: inline-block;
    padding: 4px 16px;
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    color: #6b6b80;
    font-size: 12px;
    font-style: italic;
    max-width: 90%;
    overflow-wrap: anywhere;
}
.chat-container .btn-msg-delete.system {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: none;
    border: none;
    color: #6b6b80;
    font-size: 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s cubic-bezier(.4, 0, .2, 1);
}
.chat-container .btn-msg-delete.system:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

/* =====================================================================
   PRIVATE MESSAGES — Messenger-app clone look (from chat.php)
   Applied only to the default "Classic" theme (no pm-theme-* class),
   so the 7 selectable chat themes keep their own colors.
   ===================================================================== */
.chat-pm-panel:not([class*='pm-theme-']) {
    background: #ffffff;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-head {
    background: #ffffff;
    border-bottom: 1px solid #e4e6eb;
    padding: 0 12px 0 16px;
    height: 48px;
    gap: 8px;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-title {
    color: #050505;
    font-size: 15px;
    font-weight: 700;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-title i { color: #0084ff; margin-right: 7px; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-title b { color: #0084ff; }
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-back,
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-close,
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-theme {
    background: transparent;
    border: none;
    color: #65676b;
}
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-back:hover,
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-close:hover,
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-theme:hover {
    background: #f0f2f5;
    color: #050505;
}
.chat-pm-panel:not(.in-thread) .btn-chat-pm-theme {
    display: none !important;
}

.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-inbox {
    background: #ffffff;
}
.chat-pm-panel:not([class*='pm-theme-']) #chatPmInbox .chat-pm-search {
    margin: 10px 12px;
    background: #f5f6f7;
    border: none;
    padding: 6px 12px;
    border-radius: 21px;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-search-input,
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-search-input::placeholder { color: #050505; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-search-icon,
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-search-clear {
    color: #65676b;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-list {
    padding: 0;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-item {
    padding: 10px 14px;
    border-radius: 0;
    gap: 12px;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-item:hover { background: #f5f6f7; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-item.has-unread { background: rgba(0, 132, 255, 0.06); }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-item.has-unread:hover { background: rgba(0, 132, 255, 0.1); }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-avatar {
    width: 52px;
    height: 52px;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-avatar .chat-pm-avatar {
    width: 52px;
    height: 52px;
    border: none;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-avatar .avatar-frame-overlay { inset: 0; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-name {
    color: #050505;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-time {
    color: #8b8d98;
    font-size: 10.5px;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-snippet {
    color: #65676b;
    font-size: 12px;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-item.has-unread .chat-pm-thread-name,
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-item.has-unread .chat-pm-thread-snippet { color: #050505; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-item.has-unread .chat-pm-thread-snippet { font-weight: 600; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-item.has-unread .chat-pm-thread-time { color: #0084ff; font-weight: 600; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-more {
    color: #9ca3af;
    opacity: 1;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-empty { color: #9ca3af; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-empty i { color: #0084ff; opacity: 0.4; }

.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread { background: #ffffff; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-partner {
    background: #ffffff;
    color: #65676b;
    font-size: 0.72rem;
    border-bottom: 1px solid #e4e6eb;
    padding: 6px 14px;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-messages {
    background: #f0f2f5;
    padding: 16px 18px;
    gap: 5px;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-msg { max-width: 93%; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-msg.theirs .chat-pm-bubble {
    background: #0a5477;
    color: #050505;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom-left-radius: 6px;
    border-radius: 18px;
    padding: 9px 14px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-msg.mine .chat-pm-bubble {
    background: linear-gradient(90deg, #0084ff, #00c6ff);
    background-image: linear-gradient(90deg, #0084ff, #00c6ff);
    color: #ffffff;
    border: none;
    border-bottom-right-radius: 6px;
    border-radius: 18px;
    padding: 9px 14px;
    box-shadow: 0 2px 5px rgba(0, 132, 255, 0.35);
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-msg.theirs { gap: 8px; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-msg { gap: 4px; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-msg-name { color: #0084ff; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-reply-quote {
    background: rgba(0, 0, 0, 0.05);
    border-left-color: rgba(0, 132, 255, 0.5);
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-msg.mine .chat-pm-reply-quote {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: rgba(255, 255, 255, 0.55);
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-msg.theirs .chat-pm-reply-text { color: #ffffff; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-time { color: #8b8d98; padding: 0 4px; }

.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-input-row {
    background: #ffffff;
    border-top: 1px solid #e4e6eb;
    padding: 8px 10px;
    gap: 5px;
    align-items: flex-end;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-input {
    background: #f5f6f7;
    border: 1px solid #e4e6eb;
    border-radius: 21px;
    padding: 9px 14px;
    color: #050505;
    font-size: 0.82rem;
    height: 40px;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-input::placeholder { color: #8b8d98; }
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-send {
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, #0084ff, #00c6ff);
    font-size: 15px;
}
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-send:hover { filter: brightness(1.08); transform: none; }
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-attach,
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-mic,
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-smiley {
    color: #65676b;
    background: transparent;
    border: none;
}
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-attach:hover,
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-mic:hover,
.chat-pm-panel:not([class*='pm-theme-']) .btn-chat-pm-smiley:hover {
    color: #050505;
    background: #f0f2f5;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-smiley-picker {
    background: #ffffff;
    border: 1px solid #e4e6eb;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-reply-chip {
    background: #e7f3ff;
    border-top: 1px solid #e4e6eb;
    color: #050505;
}
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-reply-chip-name { color: #0084ff; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-reply-chip-cancel { color: #65676b; }
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-messages::-webkit-scrollbar-thumb,
.chat-pm-panel:not([class*='pm-theme-']) .chat-pm-thread-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

/* ===== Wall feed video embed (Facebook & YouTube by link) ===== */
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-embed {
    position: relative;
    margin: 8px 0 2px 44px;
    width: calc(100% - 44px);
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-embed .feed-video-play {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000;
    font-family: inherit;
    position: relative;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-embed .feed-video-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-embed:hover .feed-video-thumb { opacity: 0.85; }
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-embed .feed-video-play .fa-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(30, 144, 255, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-embed .feed-video-play:hover .fa-play { transform: translate(-50%, -50%) scale(1.08); }
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-embed .feed-video-play span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    background: #000;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb {
    position: relative;
    margin: 8px 0 2px 44px;
    width: calc(100% - 44px);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #2d2f4e, #10142b);
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb a.feed-video-open {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 150px;
    text-decoration: none;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb.has-thumb a.feed-video-open { min-height: 0; aspect-ratio: 16 / 10; }
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(30, 144, 255, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb:hover .pv-play { transform: translate(-50%, -50%) scale(1.08); }
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.78);
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-label .fa-facebook { color: #8b9cff; font-size: 0.95rem; }
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-player video.pv-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    background: #000;
    cursor: pointer;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 26px 12px 9px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0));
    color: #fff;
    font-size: 0.75rem;
    transition: opacity 0.25s ease;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-player.playing .pv-bar { opacity: 0; }
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-player.playing:hover .pv-bar,
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-bar:focus-within { opacity: 1; }
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-btn {
    flex: none;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-btn:hover { background: var(--primary, #1e90ff); transform: scale(1.06); }
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-progress { flex: 1 1 auto; min-width: 40px; }
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-range {
    width: 100%;
    height: 4px;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.28);
    outline: none;
    cursor: pointer;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary, #1e90ff);
    cursor: pointer;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary, #1e90ff);
    cursor: pointer;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-range:disabled { cursor: default; opacity: 0.5; }
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-time {
    flex: none;
    min-width: 72px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-vol { flex: none; width: 58px; }
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-vol-range {
    width: 100%;
    height: 4px;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.28);
    outline: none;
    cursor: pointer;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-vol-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--primary, #1e90ff);
    cursor: pointer;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb .pv-vol-range::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--primary, #1e90ff);
    cursor: pointer;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb a.feed-video-open.fallback {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 90px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary, #1e90ff);
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-video-preview.fb a.feed-video-open.fallback .fa-play-circle { color: var(--primary, #1e90ff); font-size: 1.4rem; }

/* Link preview (other websites) inside the wall */
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-link-preview {
    display: flex;
    gap: 12px;
    margin: 8px 0 2px 44px;
    width: calc(100% - 44px);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #2d2f4e, #10142b);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    box-sizing: border-box;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-link-preview .feed-link-thumb-wrap { flex: 0 0 116px; }
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-link-preview .feed-link-thumb {
    width: 116px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-link-preview .feed-link-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-top: 2px;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-link-preview .feed-link-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #eef;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-link-preview .feed-link-desc {
    font-size: 0.76rem;
    color: #a9abc6;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
:is(#chatProfileModal, #chatMessages, #chatPmModal) .feed-link-preview .feed-link-domain {
    font-size: 0.7rem;
    color: var(--primary, #1e90ff);
    text-transform: lowercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Live chat (#chatMessages): link/video previews fill the bubble width */
#chatMessages .feed-video-preview.fb,
#chatMessages .feed-video-embed,
#chatMessages .feed-link-preview {
    margin: 8px 0 0;
    width: 280px;
    max-width: calc(100vw - 130px);
    box-sizing: border-box;
}
#chatMessages .feed-link-preview .feed-link-thumb-wrap { flex: 0 0 88px; }
#chatMessages .feed-link-preview .feed-link-thumb { width: 88px; height: 66px; }

/* Private messages (#chatPmMessages): previews fill the bubble width */
#chatPmMessages .feed-video-preview.fb,
#chatPmMessages .feed-video-embed,
#chatPmMessages .feed-link-preview {
    margin: 8px 0 0;
    width: 250px;
    max-width: calc(100vw - 150px);
    box-sizing: border-box;
}

/* ===== Card relayout — shared cards ===== */
:root {
    --ui-card-radius: 18px;
}

.card {
    border-radius: var(--ui-card-radius) !important;
    margin-bottom: 22px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36) !important;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 56px;
    padding: 14px 20px;
}

.card-body {
    padding: 20px !important;
}

.dj-carousel-card {
    border-radius: var(--ui-card-radius);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.dj-card-heart {
    top: 12px;
    right: 12px;
}

.partners-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

.partner-card {
    border-radius: var(--ui-card-radius);
    padding: 14px;
}

.partner-image {
    border-radius: 12px;
}

.about-grid {
    gap: 18px;
}

.about-card {
    border-radius: var(--ui-card-radius);
    padding: 26px 22px 30px;
}

.item-pack-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.item-store-card {
    border-radius: 14px;
    padding: 14px;
    min-height: 104px;
}

.social-card {
    border-radius: var(--ui-card-radius);
    padding: 18px;
}

.top-chatter-card {
    border-radius: 16px;
}
