:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --accent-color: #00f2ff;
    --secondary-accent: #ff00ea;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --neon-glow: 0 0 15px rgba(0, 242, 255, 0.5);
    --neon-pink: 0 0 15px rgba(255, 0, 234, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #0a0a0a;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(147, 51, 234, 0.08) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    color: var(--text-color);
    min-height: 100vh;
}

/* Landing Page Styles */
.landing-page {
    overflow-x: hidden;
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.logo span {
    color: var(--secondary-accent);
    text-shadow: var(--neon-pink);
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.btn-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 1.4rem;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-donate-icon {
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.btn-donate-icon:hover {
    background: rgba(236, 72, 153, 0.25);
}

.btn-join-icon {
    background: rgba(100, 100, 100, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-join-icon:hover {
    background: rgba(120, 120, 120, 0.4);
}

.hero-container {
    padding-top: 100px;
    padding-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.hero-content {
    max-width: 900px;
    width: 90%;
}

.neon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 50px;
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 2px solid #ec4899;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3), inset 0 0 20px rgba(236, 72, 153, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-text {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.welcome-text .heart-icon {
    color: #ef4444;
}

.welcome-text a {
    color: #f472b6;
    text-decoration: none;
    font-weight: 500;
}

.welcome-text a:hover {
    text-decoration: underline;
}

.main-title {
    font-size: clamp(2.8rem, 10vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 5px;
    color: #fff;
}

.sub-title-gradient {
    font-size: clamp(2.2rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #22d3ee, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.search-section {
    margin-bottom: 50px;
}

.search-box {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 8px 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.search-icon {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    flex: 1;
    outline: none;
    padding: 12px 0;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-box input:-webkit-autofill,
.search-box input:-webkit-autofill:hover,
.search-box input:-webkit-autofill:focus,
.search-box input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: white !important;
}

/* Clear Input Button */
.btn-clear-input {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: 0.3s;
    flex-shrink: 0;
    color: white;
}

.btn-clear-input:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Karaoke Filter Toggle */
.search-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.toggle-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--accent-color, #00f2ff);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(22px);
}

/* Landing page toggle - constrained within search box width */
.landing-toggle {
    max-width: 600px;
    margin: 0 auto 12px auto;
    padding-right: 5px;
}

.btn-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: white;
    /* Added based on instruction "white color (for SVG)" */
}

.btn-close:hover {
    filter: brightness(1.2);
}

.btn-close svg {
    display: block;
}

.btn-search {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-search:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.feature-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px 25px;
    border-radius: 20px;
    transition: 0.3s;
    text-align: center;
}

.feature-card:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.feature-icon.icon-mic {
    color: #f472b6;
}

.feature-icon.icon-qr {
    color: #818cf8;
}

.feature-icon.icon-star {
    color: #fbbf24;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: #fff;
}

.feature-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 20px;
}

/* Search Results Styling */
.results-count {
    text-align: left;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    padding-left: 5px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.song-result-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
    text-align: left;
    overflow: hidden;
}

.song-result-card:hover {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.song-thumb {
    width: 100px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.song-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.song-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.song-author {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-duration {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.btn-load-more {
    width: 100%;
    background: rgba(45, 10, 60, 0.8);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 50px;
}

.btn-load-more:hover {
    background: rgba(60, 15, 80, 1);
    box-shadow: 0 0 20px rgba(255, 0, 234, 0.2);
}

.loading,
.error {
    padding: 40px;
    opacity: 0.6;
}

/* Host/Remote Styles (Adjusted) */
/* Host Page - Prevent Scrolling */
.host-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    height: 100dvh;
}

/* Fullscreen Host Player Styling */
.fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #000;
    color: #fff;
    overflow: hidden;
    z-index: 1000;
}

#player-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: default;
}

.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0 12px 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 80%, transparent 100%);
    z-index: 10;
    transition: transform 0.4s ease, opacity 0.4s ease;
    box-sizing: border-box;
}

.player-controls.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.time-row {
    display: flex;
    justify-content: space-between;
    padding: 0 20px 4px 20px;
}

.progress-bar-container {
    width: calc(100% - 40px);
    margin: 0 auto 10px auto;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    position: relative;
    cursor: pointer;
    border-radius: 3px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    box-shadow: 0 0 10px var(--accent-color);
    transition: width 0.1s linear;
    border-radius: 3px;
}

.control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.control-bar-desktop {
    display: flex;
}

.control-bar-mobile {
    display: none;
}

.control-left,
.control-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 0 20px;
}

.play-pause-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    transition: 0.3s;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    flex-shrink: 0;
}

.play-pause-circle:hover {
    filter: brightness(1.2);
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.7);
}

.btn-icon-sub {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    opacity: 0.85;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-icon-sub:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon-sub.active-control {
    background: rgba(0, 242, 255, 0.2);
    color: var(--accent-color);
}

.btn-icon-sub.active-control svg {
    fill: var(--accent-color);
}

.queue-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff00ea;
    /* บานเย็นเข้มข้น */
    color: #000000;
    /* เปลี่ยนเป็นสีดำเพื่อให้อ่านง่ายขึ้นบนสีสว่าง */
    font-size: 11px;
    /* เพิ่มขนาดเล็กน้อย */
    font-weight: 900;
    /* ปรับให้หนาที่สุด */
    min-width: 19px;
    height: 19px;
    padding: 0 2px;
    /* ลด padding เพื่อให้ตัวเลขอยู่กลาง */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #000;
    pointer-events: none;
    z-index: 5;
    line-height: 1;
}

.time-current,
.time-duration {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    min-width: 40px;
    font-weight: 500;
}

.track-meta {
    text-align: center;
    min-width: 0;
    max-width: 500px;
}

.track-meta h4 {
    font-size: 1rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #fff;
}

.track-meta p {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 4px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.volume-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

#volume-range {
    width: 100px;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    cursor: pointer;
}

#volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-color);
}

#volume-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Side Panels */
.side-panel {
    position: absolute;
    right: -450px;
    top: 0;
    width: 400px;
    height: 100%;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 100;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
}

.side-panel.active {
    right: 0;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

.panel-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-close-small {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-titles h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.header-titles span {
    font-size: 0.75rem;
    opacity: 0.5;
}

.btn-clear-queue {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-clear-queue:hover {
    background: #ff4d4d;
    color: white;
}

/* Queue Card Styling */
.queue-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.queue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.queue-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 242, 255, 0.3);
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 242, 255, 0.1);
}

.queue-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.queue-card-thumb {
    width: 70px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.queue-card:hover .queue-card-thumb {
    transform: scale(1.1);
}

.queue-card-info {
    flex: 1;
    overflow: hidden;
}

.queue-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-card-author {
    font-size: 0.75rem;
    opacity: 0.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-play-now,
.btn-delete-song {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-play-now:hover,
.btn-delete-song:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Search Modal Styling */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    padding: 10px;
    box-sizing: border-box;
}

.search-modal.active {
    display: flex;
}

.modal-content {
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(25px);
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    max-height: 85dvh;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    animation: modalFadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

@keyframes modalFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Remote Modal Specific */
.remote-modal-content {
    max-width: 500px;
    text-align: center;
    padding: 30px;
}

.remote-hint {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 20px;
}

.remote-qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.remote-qr-container #qrcode {
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.remote-qr-container #qrcode img,
.remote-qr-container #qrcode canvas {
    max-width: 150px !important;
    max-height: 150px !important;
    width: 150px !important;
    height: 150px !important;
}

.remote-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.info-item span {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.neon-text-cyan {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

.neon-text-pink {
    color: #ff00ea;
    text-shadow: 0 0 15px rgba(255, 0, 234, 0.5);
}

.remote-link-section {
    text-align: left;
    margin-bottom: 25px;
}

.remote-link-section label {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-bottom: 10px;
    display: block;
}

.link-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.link-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: white;
    font-size: 0.85rem;
    outline: none;
}

.btn-copy-link {
    background: #005a5a;
    color: #4df3ff;
    border: none;
    padding: 0 20px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-copy-link:hover {
    background: #008181;
}

.remote-modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-footer-gray,
.btn-footer-red {
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-footer-gray {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-footer-red {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.btn-footer-gray:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-footer-red:hover {
    background: #ff4d4d;
    color: white;
}

/* Join Room Modal Specific */
.join-modal-content {
    max-width: 450px;
}

.join-description {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 25px;
    text-align: left;
}

.join-input-group {
    margin-bottom: 20px;
    text-align: left;
}

.join-input-group label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.5;
    margin-bottom: 8px;
    font-weight: 600;
}

.join-input-group input {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
    outline: none;
    transition: 0.3s;
}

.join-input-group input:focus {
    background: #333;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.join-input-group input:-webkit-autofill,
.join-input-group input:-webkit-autofill:hover,
.join-input-group input:-webkit-autofill:focus,
.join-input-group input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: white !important;
}

.btn-join-room {
    width: 100%;
    background: #004d4d;
    color: #4df3ff;
    border: 1px solid rgba(0, 242, 255, 0.3);
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-join-room:hover {
    background: #006666;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    transform: translateY(-2px);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #eee;
}

.modal-search-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.05rem;
    outline: none;
}

.modal-search-box input:-webkit-autofill,
.modal-search-box input:-webkit-autofill:hover,
.modal-search-box input:-webkit-autofill:focus,
.modal-search-box input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: white !important;
}

.btn-search-modal {
    background: linear-gradient(135deg, var(--accent-color) 0%, #00c9ff 100%);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.2);
}

.btn-search-modal:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 242, 255, 0.4);
}

.modal-results-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 5px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.modal-results-list::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.modal-song-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(135, 135, 135, 0.1);
    border-radius: 18px;
    padding: 12px 20px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-song-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.modal-song-thumb {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.modal-song-info {
    flex: 1;
    text-align: left;
}

.modal-song-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 330px;
}

.modal-song-info p {
    font-size: 0.8rem;
    opacity: 0.45;
}

.btn-add-modal {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 8px 0;
    width: 65px;
    height: 65px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
}

.btn-add-modal .plus-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.btn-add-modal .btn-text {
    font-size: 0.75rem;
    line-height: 1;
}

.btn-add-modal:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

/* Remote Page Styling */
.remote-page {
    background: #080808;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(0, 242, 255, 0.05), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    min-height: 100vh;
    color: white;
    padding-bottom: 50px;
}

.remote-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.remote-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.remote-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    opacity: 0.6;
}

.status-indicator .dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
}

.section-label {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Premium Cards */
.now-playing-card,
.volume-card,
.search-input-group {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.now-playing-card {
    margin-bottom: 25px;
}

.np-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.np-thumb {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 12px;
}

.np-details {
    flex: 1;
    overflow: hidden;
}

.np-details h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-details p {
    font-size: 0.8rem;
    opacity: 0.5;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-color);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    opacity: 0.4;
}

/* Controls */
.playback-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 35px;
}

.btn-play-pause-main {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid var(--accent-color);
    color: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-play-pause-main:hover {
    background: rgba(0, 242, 255, 0.1);
    transform: scale(1.05);
}

.btn-skip-sub {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-skip-sub:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Volume Card */
.volume-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
}

.volume-card input {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
}

.volume-card input::-webkit-slider-runnable-track {
    height: 6px;
}

.volume-card input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 0 10px var(--accent-color);
}

.volume-card span {
    font-size: 1rem;
    font-weight: 800;
    width: 35px;
    text-align: right;
    color: var(--text-color);
}

/* Search Section */
.remote-search-section {
    margin-bottom: 35px;
}

.search-input-group {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.95rem;
    outline: none;
}

.search-input-group input:-webkit-autofill,
.search-input-group input:-webkit-autofill:hover,
.search-input-group input:-webkit-autofill:focus,
.search-input-group input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: white !important;
}

/* Queue List */
.remote-queue-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn-clear-remote {
    background: transparent;
    border: none;
    color: #ff4d4d;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

.remote-queue-item {
    background: #121212;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 12px;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.qi-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qi-index {
    font-size: 0.8rem;
    opacity: 0.3;
    width: 15px;
}

.qi-thumb {
    width: 50px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

.qi-info {
    flex: 1;
    overflow: hidden;
}

.qi-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qi-info p {
    font-size: 0.75rem;
    opacity: 0.4;
}

.qi-actions {
    display: flex;
    gap: 5px;
}

.btn-qi-play,
.btn-qi-delete {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

.btn-qi-play:hover {
    background: rgba(0, 242, 255, 0.1);
}

.btn-qi-delete:hover {
    background: rgba(255, 77, 77, 0.1);
}

/* Results Overlay */
.results-overlay {
    margin-top: 15px;
    margin-bottom: 30px;
    display: none;
}

.results-overlay.active {
    display: block;
}

.remote-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.remote-song-card {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.remote-song-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rs-thumb {
    width: 50px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

.rs-info {
    flex: 1;
    overflow: hidden;
}

.rs-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-info p {
    font-size: 0.7rem;
    opacity: 0.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-add-remote {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-add-remote:hover {
    background: var(--accent-color);
    color: black;
}

.btn-load-more-remote {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: #e0b0ff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-load-more-remote:hover {
    background: rgba(138, 43, 226, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Landing Page Mobile */
    .navbar {
        padding: 15px 4%;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-buttons {
        gap: 10px;
    }

    .btn-nav-icon {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        font-size: 1.2rem;
    }

    .btn-nav-icon svg {
        width: 18px;
        height: 18px;
    }

    .hero-container {
        padding-top: 90px;
        min-height: auto;
    }

    .hero-content {
        width: 92%;
    }

    .neon-pill {
        padding: 8px 20px;
        font-size: 0.75rem;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .sub-title-gradient {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.85rem;
        padding: 0 10px;
        line-height: 1.6;
    }

    .search-section {
        margin-bottom: 30px;
    }

    .search-box {
        padding: 6px 6px 6px 15px;
        border-radius: 16px;
        flex-wrap: nowrap;
    }

    .search-box input {
        font-size: 0.95rem;
        padding: 10px 0;
        min-width: 0;
    }

    .btn-search {
        padding: 14px 24px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    /* Search Results Mobile */
    .results-count {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .results-list {
        gap: 12px;
    }

    .song-result-card {
        padding: 12px;
        gap: 12px;
        border-radius: 14px;
    }

    .song-thumb {
        width: 90px;
        height: 60px;
        border-radius: 8px;
    }

    .song-title {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .song-author {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }

    .song-duration {
        font-size: 0.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    .feature-card h3 {
        font-size: 1.05rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .footer-note {
        font-size: 0.8rem;
        padding: 0 10px;
    }

    /* Host Page Mobile */
    .host-page {
        height: 100vh;
        height: 100dvh;
    }

    .fullscreen-player {
        height: 100vh;
        height: 100dvh;
    }

    .player-controls {
        padding: 8px 0 12px 0;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .time-row {
        padding: 0 15px 5px 15px;
    }

    .time-current,
    .time-duration {
        font-size: 0.8rem;
    }

    .progress-bar-container {
        width: calc(100% - 30px);
        margin-bottom: 10px;
        height: 4px;
    }

    .control-bar-desktop {
        display: none;
    }

    .control-bar-mobile {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 5px;
    }

    .control-bar-mobile .play-pause-circle {
        width: 46px;
        height: 46px;
    }

    .control-bar-mobile .btn-icon-sub {
        padding: 8px;
        opacity: 0.9;
    }

    .control-bar-mobile .btn-icon-sub svg {
        width: 22px;
        height: 22px;
    }

    .side-panel,
    .room-panel {
        width: 100%;
        right: -100%;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        max-height: 95vh;
        max-height: 95dvh;
        border-radius: 16px;
        margin: 0;
    }

    .modal-header {
        margin-bottom: 12px;
    }

    .modal-header h3 {
        font-size: 1rem;
    }

    .modal-search-box {
        padding: 10px 15px;
        margin-bottom: 15px;
    }

    .modal-search-box input {
        font-size: 0.9rem;
    }

    .modal-results-list {
        gap: 10px;
    }

    .modal-song-card {
        gap: 8px;
        padding: 8px;
        border-radius: 12px;
    }

    .modal-song-thumb {
        width: 50px;
        height: 35px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .modal-song-info {
        min-width: 0;
        flex: 1;
    }

    .modal-song-info h4 {
        font-size: 0.8rem;
        max-width: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .modal-song-info p {
        font-size: 0.65rem;
    }

    .btn-add-modal {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        padding: 0;
        flex-shrink: 0;
    }

    .btn-add-modal .btn-text {
        display: none;
    }

    .btn-add-modal .plus-icon {
        font-size: 1.2rem;
    }

    /* Target the remote control modal on host too */
    .remote-modal-content {
        padding: 15px;
    }

    .remote-info-grid {
        gap: 10px;
    }

    .info-item span {
        font-size: 1.1rem;
    }

    /* Remote Modal Mobile */
    .remote-modal-content {
        padding: 20px;
        max-height: 85vh;
        max-height: 85dvh;
    }

    .remote-hint {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .remote-qr-container {
        margin-bottom: 20px;
    }

    .remote-qr-container #qrcode {
        padding: 10px;
    }

    .remote-qr-container #qrcode img,
    .remote-qr-container #qrcode canvas {
        max-width: 130px !important;
        max-height: 130px !important;
        width: 130px !important;
        height: 130px !important;
    }

    .remote-info-grid {
        gap: 15px;
        margin-bottom: 20px;
    }

    .info-item label {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }

    .info-item span {
        font-size: 1.3rem;
    }

    .remote-link-section {
        margin-bottom: 20px;
    }

    .remote-link-section label {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .link-input-group input {
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    .btn-copy-link {
        padding: 0 15px;
        font-size: 0.8rem;
    }

    .remote-modal-footer {
        gap: 10px;
    }

    .btn-footer-gray,
    .btn-footer-red {
        padding: 12px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 3%;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-buttons {
        gap: 8px;
    }

    .btn-nav-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 1.1rem;
    }

    .btn-nav-icon svg {
        width: 16px;
        height: 16px;
    }

    .main-title {
        font-size: 1.9rem;
    }

    .sub-title-gradient {
        font-size: 1.5rem;
    }

    .neon-pill {
        padding: 6px 15px;
        font-size: 0.7rem;
        gap: 5px;
    }

    .neon-pill svg {
        width: 14px;
        height: 14px;
    }

    .search-icon {
        width: 18px;
        height: 18px;
    }

    .search-box input {
        font-size: 0.9rem;
    }

    .btn-search {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .welcome-text {
        font-size: 0.85rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    /* Search Results Small Screen */
    .song-result-card {
        padding: 10px;
        gap: 10px;
    }

    .song-thumb {
        width: 80px;
        height: 55px;
    }

    .song-title {
        font-size: 0.9rem;
    }

    .song-author {
        font-size: 0.75rem;
    }

    .song-duration {
        font-size: 0.7rem;
    }

    /* Host Page Very Small Screen */
    .player-controls {
        padding: 6px 0 10px 0;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .time-row {
        padding: 0 10px 4px 10px;
    }

    .control-bar-mobile {
        padding: 0 2px;
    }

    .control-bar-mobile .play-pause-circle {
        width: 42px;
        height: 42px;
    }

    .control-bar-mobile .btn-icon-sub {
        padding: 6px;
    }

    .control-bar-mobile .btn-icon-sub svg {
        width: 20px;
        height: 20px;
    }

    .time-current,
    .time-duration {
        font-size: 0.75rem;
    }

    .progress-bar-container {
        margin-bottom: 8px;
    }

    /* Remote Modal Very Small Screen */
    .remote-modal-content {
        padding: 15px;
    }

    .modal-header {
        margin-bottom: 15px;
    }

    .modal-header h3 {
        font-size: 1rem;
    }

    .remote-hint {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .remote-qr-container #qrcode img,
    .remote-qr-container #qrcode canvas {
        max-width: 110px !important;
        max-height: 110px !important;
        width: 110px !important;
        height: 110px !important;
    }

    .info-item span {
        font-size: 1.1rem;
    }

    .link-input-group input {
        font-size: 0.7rem;
        padding: 8px 10px;
    }

    .btn-copy-link {
        padding: 0 12px;
        font-size: 0.75rem;
    }

    .btn-footer-gray,
    .btn-footer-red {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Custom Confirm Modal */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.confirm-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.confirm-modal-content {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.98), rgba(20, 20, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px 40px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 50, 100, 0.1);
    animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-icon {
    margin-bottom: 20px;
    color: #ff6b6b;
}

.confirm-icon svg {
    filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.4));
}

.confirm-modal-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.confirm-modal-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 28px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-confirm-cancel,
.btn-confirm-ok {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-confirm-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-confirm-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-confirm-ok {
    background: linear-gradient(135deg, #ff4d6d, #c9184a);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}

.btn-confirm-ok:hover {
    background: linear-gradient(135deg, #ff6b88, #d4225a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.4);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, rgba(0, 200, 100, 0.95), rgba(0, 150, 80, 0.95));
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 200, 100, 0.4);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Button Added State */
.btn-add-remote.added {
    background: linear-gradient(135deg, #00c853, #00a040) !important;
    color: white !important;
    pointer-events: none;
}

/* Name Input Modal */
.name-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.name-modal.active {
    display: flex;
}

.name-modal-content {
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.98), rgba(20, 20, 30, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    animation: scaleIn 0.3s ease;
}

.name-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.name-modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.name-modal-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.name-modal-content input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s;
}

.name-modal-content input:focus {
    border-color: var(--accent-color);
}

.name-modal-content input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-confirm-name {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-color), #00c8d4);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-confirm-name:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
}

/* Queue Added By Badge */
.qi-added-by {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--accent-color);
    background: rgba(0, 242, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

/* Queue card added by for host page */
.queue-card-added-by {
    font-size: 0.7rem;
    color: var(--accent-color);
    background: rgba(0, 242, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
    display: inline-block;
}

/* Remote Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-share-remote {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-share-remote:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ========================================
   REMOTE PAGE V2 - Mobile Optimized
   ======================================== */

.remote-page-v2 {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    color: white;
    overflow-x: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.remote-page-v2::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

/* Hide scrollbar for all scrollable areas in remote v2 */
.remote-page-v2 *::-webkit-scrollbar {
    display: none;
}

.remote-page-v2 * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Brand Bar */
.remote-brand-bar {
    background: linear-gradient(90deg, #ec4899, #be185d);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-logo {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-logo span {
    color: white;
}

.btn-share-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    transition: 0.3s;
}

.btn-share-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.remote-main-content {
    padding: 20px 16px;
    padding-bottom: 100px;
    max-width: 600px;
    margin: 0 auto;
}

/* Title Section */
.remote-title-section {
    text-align: center;
    margin-bottom: 20px;
}

.remote-title-section h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-display {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.connection-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.connection-badge .dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Now Playing Card V2 */
.np-card-v2 {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.np-card-header {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.np-thumb-v2 {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.np-meta {
    flex: 1;
    min-width: 0;
}

.np-meta h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.np-meta p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Progress V2 */
.np-progress-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.time-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    min-width: 35px;
}

.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-v2 {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #00d4ff);
    width: 0%;
    border-radius: 3px;
    transition: width 0.2s;
}

/* Controls */
.np-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.btn-play-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.4);
    transition: 0.3s;
}

.btn-play-main:hover {
    transform: scale(1.08);
}

.btn-skip {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-skip:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Volume Section V2 */
.volume-section-v2 {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-weight: 500;
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-row input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

.volume-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

.volume-number {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    min-width: 30px;
    text-align: right;
}

/* Search Section V2 */
.search-section-v2 {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.toggle-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.toggle-compact input {
    display: none;
}

.toggle-dot {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    transition: 0.3s;
}

.toggle-dot::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-compact input:checked+.toggle-dot {
    background: var(--accent-color);
}

.toggle-compact input:checked+.toggle-dot::before {
    transform: translateX(16px);
}

.search-box-v2 {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 12px;
}

.search-box-v2 input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 12px 0;
    font-size: 0.95rem;
    outline: none;
}

.search-box-v2 input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-clear-search {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 6px;
    display: flex;
    margin-right: 4px;
}

.btn-search-v2 {
    background: var(--accent-color);
    color: black;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 6px 0;
}

.btn-search-v2:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.btn-search-v2:active {
    transform: scale(0.98);
}


/* Results V2 */
.results-overlay-v2 {
    display: none;
    margin-top: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.results-overlay-v2.active {
    display: block;
}

.results-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Queue Section V2 */
.queue-section-v2 {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.btn-clear-queue {
    background: rgba(255, 77, 77, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 77, 77, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-clear-queue:hover {
    background: rgba(255, 77, 77, 0.2);
}

.queue-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

/* Queue Item V2 */
.queue-item-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
}

.qi-num {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    min-width: 20px;
    text-align: center;
}

.qi-thumb-v2 {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.qi-meta {
    flex: 1;
    min-width: 0;
}

.qi-meta h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qi-meta p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qi-by {
    font-size: 0.65rem;
    color: var(--accent-color);
}

.qi-btns {
    display: flex;
    gap: 6px;
}

.qi-play,
.qi-del {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.2s;
}

.qi-play {
    background: rgba(0, 242, 255, 0.15);
    color: var(--accent-color);
}

.qi-play:hover {
    background: rgba(0, 242, 255, 0.3);
}

.qi-del {
    background: rgba(255, 77, 77, 0.1);
    color: #ff6b6b;
}

.qi-del:hover {
    background: rgba(255, 77, 77, 0.25);
}

/* Search Result Card V2 */
.remote-song-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
}

.rs-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.rs-info {
    flex: 1;
    min-width: 0;
}

.rs-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-info p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.btn-add-remote {
    background: rgba(0, 242, 255, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(0, 242, 255, 0.3);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-add-remote:hover {
    background: rgba(0, 242, 255, 0.25);
}

.btn-load-more-remote {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-load-more-remote:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90%;
    text-align: center;
}

.toast.show {
    bottom: 30px;
}

/* Confirm Modal Styles */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.confirm-modal.active {
    display: flex;
}

.confirm-modal-content {
    background: #1a1a1a;
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirm-icon {
    margin-bottom: 20px;
    color: #ff4d4d;
}

.confirm-modal-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.confirm-modal-content p {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-confirm-cancel,
.btn-confirm-ok {
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-confirm-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.btn-confirm-ok {
    background: #ff4d4d;
    color: white;
}

/* Added Class for Buttons */
.btn-add-modal.added {
    background: rgba(0, 255, 127, 0.15) !important;
    color: #00ff7f !important;
    border-color: #00ff7f !important;
}

@media (max-width: 768px) {
    .confirm-modal-content {
        padding: 25px;
        max-width: 90%;
    }

    .confirm-modal-content h3 {
        font-size: 1.1rem;
    }

    .confirm-modal-content p {
        font-size: 0.85rem;
    }
}

/* Empty Queue Modal */
.empty-queue-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(20px);
}

.empty-queue-modal.active {
    display: flex;
}

.empty-queue-modal-content {
    position: relative;
    text-align: center;
    padding: 60px 50px;
    max-width: 480px;
    width: 90%;
    background: linear-gradient(145deg, rgba(25, 25, 35, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 32px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(0, 242, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: emptyQueueFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-close-empty-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.btn-close-empty-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes emptyQueueFadeIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.empty-queue-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.15) 0%, rgba(255, 0, 234, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: emptyQueueFloat 3s ease-in-out infinite;
    box-shadow:
        0 0 50px rgba(0, 242, 255, 0.2),
        inset 0 0 30px rgba(0, 242, 255, 0.1);
}

.empty-queue-icon svg {
    color: var(--accent-color);
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.5));
}

@keyframes emptyQueueFloat {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 50px rgba(0, 242, 255, 0.2), inset 0 0 30px rgba(0, 242, 255, 0.1);
    }

    50% {
        transform: translateY(-10px);
        box-shadow: 0 15px 60px rgba(0, 242, 255, 0.3), inset 0 0 40px rgba(0, 242, 255, 0.15);
    }
}

.empty-queue-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.empty-queue-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 35px;
    line-height: 1.6;
}

.empty-queue-qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.empty-queue-qr-container #empty-queue-qrcode {
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
    padding: 18px;
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 242, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.empty-queue-qr-container #empty-queue-qrcode:hover {
    transform: scale(1.05);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 242, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.empty-queue-qr-container #empty-queue-qrcode img,
.empty-queue-qr-container #empty-queue-qrcode canvas {
    max-width: 200px !important;
    max-height: 200px !important;
    width: 200px !important;
    height: 200px !important;
}

.empty-queue-room-info {
    margin-bottom: 35px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 16px 25px;
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 14px;
    display: inline-block;
}

.empty-queue-room-info strong {
    color: var(--accent-color);
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
}

.btn-home-empty {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 45px;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-home-empty:hover {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.2) 0%, rgba(255, 0, 234, 0.1) 100%);
    border-color: rgba(0, 242, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.2);
}

.btn-home-empty:active {
    transform: translateY(0);
}


@media (max-width: 768px) {
    .empty-queue-modal-content {
        padding: 35px 25px;
    }

    .empty-queue-title {
        font-size: 1.6rem;
    }

    .empty-queue-qr-container #empty-queue-qrcode img,
    .empty-queue-qr-container #empty-queue-qrcode canvas {
        max-width: 150px !important;
        max-height: 150px !important;
        width: 150px !important;
        height: 150px !important;
    }
}

/* ========================================
   Error Countdown Modal
   ======================================== */
.error-countdown-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-countdown-modal.active {
    opacity: 1;
    visibility: visible;
}

.error-countdown-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(15, 15, 15, 0.98) 100%);
    border: 1px solid rgba(255, 60, 60, 0.3);
    border-radius: 28px;
    padding: 50px 45px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(255, 60, 60, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.85) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: modalShake 0.5s ease-out;
}

.error-countdown-modal.active .error-countdown-content {
    transform: scale(1) translateY(0);
}

@keyframes modalShake {

    0%,
    100% {
        transform: scale(1) translateY(0) rotate(0);
    }

    20% {
        transform: scale(1) translateY(0) rotate(-1deg);
    }

    40% {
        transform: scale(1) translateY(0) rotate(1deg);
    }

    60% {
        transform: scale(1) translateY(0) rotate(-0.5deg);
    }

    80% {
        transform: scale(1) translateY(0) rotate(0.5deg);
    }
}

.error-icon-container {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.2), rgba(255, 100, 100, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: errorPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(255, 60, 60, 0.3);
}

@keyframes errorPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(255, 60, 60, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(255, 60, 60, 0.5);
    }
}

.error-icon {
    stroke: #ff5555;
    filter: drop-shadow(0 0 10px rgba(255, 60, 60, 0.5));
}

.error-countdown-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.error-countdown-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 35px;
}

.countdown-circle-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.countdown-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.countdown-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.countdown-progress {
    fill: none;
    stroke: url(#countdownGradient);
    stroke: #ff5555;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 10px rgba(255, 60, 60, 0.6));
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 60, 60, 0.5);
    animation: countdownPop 1s ease-out infinite;
}

@keyframes countdownPop {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.countdown-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
}

.btn-skip-now {
    background: linear-gradient(135deg, #ff5555 0%, #ff3333 100%);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 60, 60, 0.3);
}

.btn-skip-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 60, 60, 0.4);
}

.btn-skip-now:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .error-countdown-content {
        padding: 40px 30px;
    }

    .error-countdown-title {
        font-size: 1.4rem;
    }

    .countdown-circle-container {
        width: 100px;
        height: 100px;
    }

    .countdown-number {
        font-size: 2.5rem;
    }
}

/* ========================================
   Player Error Cover Overlay
   ======================================== */
.player-error-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.player-error-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 60, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 242, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.player-error-cover.active {
    opacity: 1;
    visibility: visible;
}

.player-error-content {
    text-align: center;
    z-index: 1;
    animation: errorContentFadeIn 0.5s ease-out;
}

@keyframes errorContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-error-icon {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.15) 0%, rgba(255, 100, 100, 0.08) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 35px;
    animation: playerErrorFloat 3s ease-in-out infinite;
    box-shadow:
        0 0 60px rgba(255, 60, 60, 0.2),
        inset 0 0 40px rgba(255, 60, 60, 0.1);
}

.player-error-icon svg {
    stroke: #ff5555;
    filter: drop-shadow(0 0 20px rgba(255, 60, 60, 0.5));
}

@keyframes playerErrorFloat {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 60px rgba(255, 60, 60, 0.2), inset 0 0 40px rgba(255, 60, 60, 0.1);
    }

    50% {
        transform: translateY(-15px);
        box-shadow: 0 20px 80px rgba(255, 60, 60, 0.3), inset 0 0 50px rgba(255, 60, 60, 0.15);
    }
}

.player-error-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    letter-spacing: -0.5px;
}

.player-error-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    animation: subtitlePulse 1.5s ease-in-out infinite;
}

@keyframes subtitlePulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .player-error-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }

    .player-error-icon svg {
        width: 50px;
        height: 50px;
    }

    .player-error-title {
        font-size: 1.8rem;
    }

    .player-error-subtitle {
        font-size: 1rem;
    }
}

/* ========================================
   Search Loading Animation
   ======================================== */
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 25px;
}

.search-loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.search-loading-spinner::before,
.search-loading-spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.search-loading-spinner::before {
    border-top-color: var(--accent-color);
    border-right-color: var(--accent-color);
    animation: searchSpin 1s linear infinite;
}

.search-loading-spinner::after {
    border-bottom-color: var(--secondary-accent);
    border-left-color: var(--secondary-accent);
    animation: searchSpin 1.5s linear infinite reverse;
    margin: 8px;
}

@keyframes searchSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.search-loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-loading-dots {
    display: flex;
    gap: 4px;
}

.search-loading-dots span {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.search-loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.search-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.search-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Music Note Animation */
.search-loading-notes {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.search-loading-notes svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-color);
    animation: noteFloat 2s ease-in-out infinite;
    opacity: 0.6;
}

.search-loading-notes svg:nth-child(1) {
    animation-delay: 0s;
}

.search-loading-notes svg:nth-child(2) {
    animation-delay: 0.3s;
    fill: var(--secondary-accent);
}

.search-loading-notes svg:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes noteFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
        opacity: 1;
    }
}

/* ========================================
   Settings Modal Styles
   ======================================== */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.settings-modal.active {
    display: flex;
}

.settings-modal-content {
    background: linear-gradient(145deg, rgba(25, 25, 35, 0.98) 0%, rgba(15, 15, 25, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 450px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    animation: settingsSlideIn 0.3s ease-out;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 242, 255, 0.1);
}

@keyframes settingsSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.btn-close-settings {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-close-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg);
}

.settings-body {
    padding: 15px 0;
    max-height: calc(85vh - 100px);
    overflow-y: auto;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    transition: background 0.2s ease;
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.settings-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-item-label {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.settings-item-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, var(--accent-color) 0%, #00c9ff 100%);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(24px);
}

/* Disabled state for remote controls */
.remote-control-disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.5);
}

@media (max-width: 480px) {
    .settings-modal-content {
        border-radius: 20px;
    }

    .settings-header {
        padding: 20px;
    }

    .settings-item {
        padding: 15px 20px;
    }

    .settings-item-label {
        font-size: 0.95rem;
    }
}

/* ========================================
   Remote Page V2 - Now Playing Card Enhanced
   ======================================== */
.np-card-v2 {
    background: linear-gradient(145deg, rgba(25, 25, 40, 0.98) 0%, rgba(15, 15, 25, 1) 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.np-card-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.np-thumb-v2 {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Empty state - red glow animation */
.np-thumb-v2.empty-state {
    border-color: rgba(255, 60, 60, 0.4);
    animation: emptyThumbPulse 3s ease-in-out infinite;
}

@keyframes emptyThumbPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 60, 60, 0.2);
        border-color: rgba(255, 60, 60, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 60, 60, 0.4);
        border-color: rgba(255, 60, 60, 0.6);
    }
}

.np-meta {
    flex: 1;
    overflow: hidden;
}

.np-meta h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-meta p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty state text animations */
.np-meta.empty-state h3 {
    background: linear-gradient(90deg, #ff6b6b, #ffa500, #ff6b6b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 3s ease-in-out infinite;
}

.np-meta.empty-state p {
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textGradient {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(0);
    }

    50% {
        opacity: 0.9;
        transform: translateX(3px);
    }
}

.np-progress-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.np-progress-v2 .time-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    min-width: 35px;
    font-weight: 500;
}

.np-progress-v2 .progress-track {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.np-progress-v2 .progress-fill-v2 {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, #00c9ff 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.np-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.btn-play-main {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #00c9ff 100%);
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 20px rgba(0, 242, 255, 0.4),
        0 0 30px rgba(0, 242, 255, 0.2);
}

.btn-play-main:hover {
    transform: scale(1.08);
    box-shadow:
        0 6px 25px rgba(0, 242, 255, 0.5),
        0 0 40px rgba(0, 242, 255, 0.3);
}

.btn-play-main:active {
    transform: scale(0.98);
}

.btn-skip {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-skip:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Connection Status Row with Share Button */
.connection-status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-share-small {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-share-small:hover {
    background: rgba(0, 242, 255, 0.15);
    border-color: rgba(0, 242, 255, 0.3);
    color: var(--accent-color);
}

.btn-share-small svg {
    width: 16px;
    height: 16px;
}

/* Room Badge in Top Bar */
.room-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Brand Info Layout */
.brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.room-info {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 24px;
}

.brand-actions {
    display: flex;
    gap: 8px;
}

/* Search Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 5;
}

.results-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.btn-toggle-results {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-toggle-results:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-toggle-results svg {
    transition: transform 0.3s ease;
}

/* Premium Share Modal Styles */
.share-modal-premium {
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.98) 0%, rgba(10, 10, 20, 1) 100%);
    border-radius: 24px;
    padding: 0;
    max-width: 380px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(90deg, rgba(255, 0, 150, 0.15) 0%, rgba(0, 242, 255, 0.15) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.share-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.btn-close-share {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close-share:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.share-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding: 15px 20px 5px;
    margin: 0;
}

.qr-container-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.qr-wrapper {
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.2), 0 0 40px rgba(255, 0, 150, 0.1);
}

.qr-wrapper img {
    display: block;
}

.room-badge-large {
    margin-top: 15px;
    background: linear-gradient(90deg, rgba(255, 0, 150, 0.2) 0%, rgba(0, 242, 255, 0.2) 100%);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.room-badge-large span {
    color: var(--accent-color);
}

.share-link-section {
    padding: 0 25px 20px;
}

.share-link-section label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.share-link-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-link-row input {
    flex: 1;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 12px;
    color: #fff;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-copy-premium {
    background: linear-gradient(135deg, var(--accent-color) 0%, #00c9ff 100%);
    border: none;
    color: #000;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.4);
}

.btn-close-full {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-full:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Mobile adjustments for share modal */
@media (max-height: 700px) {
    .share-modal-premium {
        max-height: 95vh;
    }

    .qr-container-premium {
        padding: 15px;
    }

    .qr-wrapper {
        padding: 10px;
    }

    .share-modal-header {
        padding: 15px 20px;
    }

    .share-hint {
        padding: 10px 15px 5px;
        font-size: 0.85rem;
    }

    .room-badge-large {
        padding: 8px 20px;
        font-size: 1rem;
    }

    .share-link-section {
        padding: 0 20px 15px;
    }

    .btn-close-full {
        padding: 15px;
    }
}