/* ===========================
   BMOON TV - Smart TV Remote (Samsung/LG Style)
   Premium Realistic Design - COMPACT VERSION
   =========================== */

/* Remote Container - Premium Body */
.controls-wrapper {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 50%, #0d0d0d 100%) !important;
    border-radius: 14px !important;
    padding: 3px 4px 16px 4px !important;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.03),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #0a0a0a !important;
    position: relative !important;
    overflow: visible !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

/* Metallic shine overlay */
.controls-wrapper::before {
    content: "";
    position: absolute !important;
    top: 0;
    left: 20%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* All button containers */
.controls-wrapper > * {
    position: relative;
    z-index: 1;
    order: 10; /* Default order */
}

/* Reorder sections */
.ir-sensor {
    order: 0;
}

.info-display {
    order: 1; /* Display stays at top */
}

.dpad-section {
    order: 2; /* D-Pad with quick buttons below display */
}

.controls-grid {
    order: 3; /* Volume + Number Pad + Channel grid */
}

/* ===========================
   IR Sensor LED (Top)
   =========================== */

.ir-sensor {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #1a1a2e 0%, #0a0a0f 100%);
    border-radius: 50%;
    margin: 0 auto 4px;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 3px rgba(26, 26, 46, 0.3);
    border: 1px solid #000;
}

/* ===========================
   Info Display Screen (Realistic LCD)
   =========================== */

.info-display {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 4px;
    border: 1px solid #0a0a0a;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.05),
        inset 0 -2px 6px rgba(0, 0, 0, 0.6);
    position: relative;
}

/* LCD Frame bezel */
.info-display::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.display-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(10, 30, 20, 0.95) 0%, rgba(5, 15, 10, 0.98) 100%),
        #000;
    padding: 5px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    box-shadow:
        inset 0 0 12px rgba(0, 0, 0, 0.9),
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        inset 0 -1px 2px rgba(0, 255, 136, 0.1);
    border: 2px solid #0d0d0d;
    position: relative;
    overflow: hidden;
    min-height: 30px;
    gap: 3px;
}

/* LCD pixel grid effect */
.display-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 255, 136, 0.02) 1px,
            rgba(0, 255, 136, 0.02) 2px
        );
    pointer-events: none;
    opacity: 0.3;
}

/* LCD backlight glow */
.display-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 255, 136, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.display-status-top {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2px;
}

.display-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.display-item {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex: 1;
    justify-content: center;
}

.display-divider {
    width: 1px;
    height: 18px;
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 4px rgba(0, 255, 136, 0.3);
}

.display-label {
    font-size: 0.5rem;
    color: #4CAF50;
    font-weight: 900;
    opacity: 0.8;
    text-shadow:
        0 0 4px rgba(76, 175, 80, 0.5),
        0 0 2px rgba(76, 175, 80, 0.8);
    letter-spacing: 0.5px;
    font-family: 'Arial', sans-serif;
}

.display-value {
    font-size: 0.85rem;
    color: #00ff88;
    font-weight: 900;
    text-shadow:
        0 0 10px rgba(0, 255, 136, 0.8),
        0 0 20px rgba(0, 255, 136, 0.4),
        0 0 5px rgba(0, 255, 136, 1);
    letter-spacing: 2px;
    filter: brightness(1.2);
    min-width: 26px;
    text-align: center;
}

.display-icon {
    font-size: 0.6rem;
    color: #00ff88;
    animation: displayBlink 2s ease-in-out infinite;
    text-shadow:
        0 0 8px rgba(0, 255, 136, 0.8),
        0 0 4px rgba(0, 255, 136, 1);
}

@keyframes displayBlink {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    }
    50% {
        opacity: 0.3;
        text-shadow: 0 0 4px rgba(0, 255, 136, 0.3);
    }
}

/* ===========================
   Power Button (RED - Prominent)
   =========================== */

.power-section {
    text-align: center;
    margin-bottom: 6px;
}

.remote-power-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d32f2f, #b71c1c);
    border: 2px solid #8b0000;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        0 4px 12px rgba(211, 47, 47, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.remote-power-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.remote-power-btn:hover::before {
    opacity: 1;
}

.remote-power-btn:hover {
    background: linear-gradient(145deg, #e53935, #c62828);
    box-shadow:
        0 6px 20px rgba(211, 47, 47, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.remote-power-btn:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(211, 47, 47, 0.4),
        inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.power-icon {
    display: block;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

/* ===========================
   D-Pad Navigation (Cross Pattern)
   =========================== */

.dpad-section {
    margin-bottom: 6px;
}

.dpad-label {
    text-align: center;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.dpad-with-quick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dpad-quick-left,
.dpad-quick-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dpad-container {
    position: relative;
    width: 100%;
    max-width: 85px;
    aspect-ratio: 1;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 5px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.dpad-btn {
    background: linear-gradient(145deg, #2d2d2d, #1f1f1f);
    border: 2px solid #0d0d0d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 10px;
    font-weight: 700;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    position: relative;
}

.dpad-btn svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.dpad-btn:hover {
    background: linear-gradient(145deg, #3a3a3a, #252525);
    color: #F0B90B;
    border-color: #F0B90B;
    box-shadow:
        0 0 12px rgba(240, 185, 11, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.6),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

.dpad-btn:hover svg {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(240, 185, 11, 0.5));
}

.dpad-btn:active {
    transform: scale(0.95);
    box-shadow:
        0 0 8px rgba(240, 185, 11, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* D-Pad Button Positions */
.dpad-up {
    grid-column: 2;
    grid-row: 1;
}

.dpad-left {
    grid-column: 1;
    grid-row: 2;
}

.dpad-center {
    grid-column: 2;
    grid-row: 2;
    background: linear-gradient(145deg, #F0B90B, #C99400);
    border-color: #B88A00;
    color: #1a1a1a;
    font-weight: 900;
    box-shadow:
        0 3px 6px rgba(240, 185, 11, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.dpad-center:hover {
    background: linear-gradient(145deg, #ffc720, #F0B90B);
    color: #000;
    box-shadow:
        0 0 16px rgba(240, 185, 11, 0.6),
        0 4px 8px rgba(240, 185, 11, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

.dpad-right {
    grid-column: 3;
    grid-row: 2;
}

.dpad-down {
    grid-column: 2;
    grid-row: 3;
}

/* ===========================
   Quick Access Buttons
   =========================== */

/* Quick buttons now integrated in D-Pad section */
.quick-btn {
    width: 24px;
    height: 24px;
    background: linear-gradient(145deg, #2d2d2d, #1f1f1f);
    border: 2px solid #0d0d0d;
    border-radius: 6px;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.quick-btn svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.quick-btn:hover {
    background: linear-gradient(145deg, #3a3a3a, #252525);
    color: #F0B90B;
    border-color: #F0B90B;
    box-shadow:
        0 0 12px rgba(240, 185, 11, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.6),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.quick-btn:hover svg {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(240, 185, 11, 0.5));
}

.quick-btn:active {
    transform: scale(0.95);
    box-shadow:
        0 0 8px rgba(240, 185, 11, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ===========================
   Controls Grid (Volume + Number Pad + Channel)
   =========================== */

.controls-grid {
    display: flex;
    gap: 4px;
    align-items: stretch;
    margin-bottom: 4px;
    justify-content: center;
}

/* Volume Controls (Left - Vertical) */
.volume-section-vertical {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2px;
    padding: 3px;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.volume-buttons {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.volume-btn-compact {
    width: 26px;
    flex: 1;
    min-height: 24px;
    background: linear-gradient(145deg, #2d2d2d, #1f1f1f);
    border: 2px solid #0d0d0d;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.volume-btn-compact:hover {
    background: linear-gradient(145deg, #3a3a3a, #252525);
    color: #F0B90B;
    border-color: #F0B90B;
    box-shadow:
        0 0 12px rgba(240, 185, 11, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.6),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

.volume-btn-compact:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

.mute-btn-compact {
    width: 26px;
    height: 20px;
    background: linear-gradient(145deg, #2d2d2d, #1f1f1f);
    border: 2px solid #0d0d0d;
    border-radius: 6px;
    color: #888;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.mute-btn-compact:hover {
    color: #d32f2f;
    border-color: #8b0000;
    box-shadow:
        0 0 12px rgba(211, 47, 47, 0.4),
        0 3px 8px rgba(211, 47, 47, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

.mute-btn-compact:active {
    transform: scale(0.95);
}

/* Channel Controls (Right - Vertical) */
.channel-section-vertical {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 3px;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.channel-btn-compact {
    width: 26px;
    flex: 1;
    min-height: 28px;
    background: linear-gradient(145deg, #2d2d2d, #1f1f1f);
    border: 2px solid #0d0d0d;
    border-radius: 6px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-btn-compact:hover {
    background: linear-gradient(145deg, #3a3a3a, #252525);
    color: #F0B90B;
    border-color: #F0B90B;
    box-shadow:
        0 0 12px rgba(240, 185, 11, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.6),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

.channel-btn-compact:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* Old Volume & Channel Rockers (Keep for backward compatibility) */
.volume-section,
.channel-section {
    margin-bottom: 0;
    padding: 5px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.volume-label,
.channel-label {
    text-align: center;
    font-size: 7px;
    color: #888;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.volume-rocker,
.channel-rocker {
    display: flex;
    background: #0d0d0d;
    border-radius: 8px;
    padding: 0;
    border: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 4px;
    overflow: hidden;
}

.volume-btn,
.channel-btn {
    flex: 1;
    height: 32px;
    background: linear-gradient(145deg, #2d2d2d, #1f1f1f);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.volume-up,
.channel-up {
    border-radius: 8px 0 0 8px;
}

.volume-down,
.channel-down {
    border-radius: 0 8px 8px 0;
}

.volume-divider,
.channel-divider {
    width: 2px;
    background: #0a0a0a;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.9);
}

.volume-btn:hover,
.channel-btn:hover {
    background: linear-gradient(145deg, #3a3a3a, #252525);
    color: #F0B90B;
    box-shadow:
        0 0 12px rgba(240, 185, 11, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.6),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

.volume-btn:active,
.channel-btn:active {
    transform: scale(0.95);
    box-shadow:
        0 0 8px rgba(240, 185, 11, 0.4),
        inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.mute-btn {
    width: 100%;
    height: 28px;
    background: linear-gradient(145deg, #2d2d2d, #1f1f1f);
    border: 2px solid #0d0d0d;
    border-radius: 8px;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.mute-btn:hover {
    background: linear-gradient(145deg, #e53935, #c62828);
    color: #fff;
    border-color: #8b0000;
    box-shadow:
        0 0 12px rgba(211, 47, 47, 0.4),
        0 3px 8px rgba(211, 47, 47, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.mute-btn:active {
    transform: scale(0.95);
    box-shadow:
        0 0 8px rgba(211, 47, 47, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ===========================
   Numeric Keypad
   =========================== */

.number-pad {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    padding: 3px;
    background: #1a1a1a;
    border-radius: 10px;
    border: none;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

/* Row 1: 1, 2 */
.number-pad .num-btn:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.number-pad .num-btn:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

/* Row 2: 3, 4 */
.number-pad .num-btn:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.number-pad .num-btn:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

/* Row 3: 5 (wide - spans 2 columns) */
.number-pad .num-btn:nth-child(5) {
    grid-column: 1 / 3;
    grid-row: 3;
}

.num-btn {
    aspect-ratio: 1;
    min-height: 24px;
    background: linear-gradient(145deg, #2d2d2d, #1f1f1f);
    border: 2px solid #0d0d0d;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button 5 keeps same height as others, just wider */
.number-pad .num-btn:nth-child(5) {
    aspect-ratio: auto;
}

/* Subtle texture overlay */
.num-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    border-radius: 6px;
    pointer-events: none;
}

.num-btn-wide {
    grid-column: 2 / 3;
}

.num-btn:hover {
    background: linear-gradient(145deg, #3a3a3a, #252525);
    color: #F0B90B;
    border-color: #F0B90B;
    box-shadow:
        0 0 12px rgba(240, 185, 11, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.6),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.num-btn:active {
    transform: scale(0.95);
    box-shadow:
        0 0 8px rgba(240, 185, 11, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ===========================
   Color Function Buttons
   =========================== */

.color-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.color-btn {
    height: 22px;
    border: 2px solid #2a2a2a;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.color-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.red-btn {
    background: linear-gradient(145deg, #e53935, #c62828);
}

.green-btn {
    background: linear-gradient(145deg, #43a047, #2e7d32);
}

.yellow-btn {
    background: linear-gradient(145deg, #fdd835, #f9a825);
}

.blue-btn {
    background: linear-gradient(145deg, #1e88e5, #1565c0);
}

.color-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.color-btn:active {
    transform: translateY(0) scale(1);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ===========================
   Channel Preview Grid
   =========================== */

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid #222;
    max-height: 100px;
    overflow-y: auto;
}

/* Custom scrollbar */
.preview-grid::-webkit-scrollbar {
    width: 4px;
}

.preview-grid::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 2px;
}

.preview-grid::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 2px;
}

.channel-grid-item {
    aspect-ratio: 16/9;
    border-radius: 3px;
    border: 1.5px solid #333;
    background: #0a0a0a;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.channel-grid-item:hover {
    border-color: var(--accent-gold);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(240, 185, 11, 0.3);
}

.channel-grid-item.active {
    border-color: var(--accent-gold);
    box-shadow:
        0 0 12px rgba(240, 185, 11, 0.5),
        inset 0 0 8px rgba(240, 185, 11, 0.2);
}

.grid-channel-number {
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-gold);
    padding: 1px 3px;
    border-radius: 2px;
    font-size: 0.55rem;
    font-weight: 600;
}

/* ===========================
   Brand Footer
   =========================== */

.controls-wrapper::after {
    content: "BMOON SMART REMOTE";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.45rem;
    color: #444;
    letter-spacing: 1px;
    font-weight: 700;
    z-index: 1;
}
