@import url('https://fonts.googleapis.com/css2?family=Cousine&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Mono:wght@300;400;500&display=swap');

@font-face {
    font-family: 'DrukCondSuper';
    src: url('https://file.garden/ZxWsiWA7WCEI6WK0/DrukCond-Super-Trial.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

body {
    background: linear-gradient(145deg, #1b1f1b, #1f3c26);
    color: #ffffff;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100vh;
}

body.theme-auto {
    background: linear-gradient(135deg, #2ecc71, #1abc9c);
    color: #ffffff;
}

body.theme-dark {
    background: linear-gradient(135deg, #333333, #121212);
    color: #ffffff;
}

body.theme-dark .drag-area {
    border-color: #555555;
}

body.theme-dark .visualizer,
body.theme-dark button {
    background-color: #444444;
    color: #fff;
}

body.theme-dark .now-playing {
    background-color: #222222;
}

body.theme-dark .playlist-item:hover {
    background-color: #444444;
}

body.theme-black {
    background-color: #000000;
    color: #ffffff;
}

body.theme-black .drag-area {
    border-color: #333;
}

body.theme-black .visualizer,
body.theme-black button {
    background-color: #222;
    color: #fff;
}

body.theme-black .now-playing {
    background-color: #111;
}

body.theme-space {
    background-color: #0a0a2a;
    color: #e0e0ff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="10" height="10"><circle cx="50" cy="50" r="1" fill="white" opacity="0.5"/></svg>');
}

body.theme-space .visualizer {
    background-color: rgba(30, 30, 80, 0.5);
    border-color: #5050ff;
}

body.theme-space .now-playing {
    background-color: rgba(30, 30, 80, 0.8);
}

body.theme-space .now-playing-bar {
    background-color: #5050ff;
}

body.theme-golden {
    background-color: #0a0000;
    color: #ffdc73;
    background-image: linear-gradient(45deg, #2b2000 25%, transparent 25%, transparent 75%, #2b2000 75%),
                      linear-gradient(45deg, #2b2000 25%, transparent 25%, transparent 75%, #2b2000 75%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

body.theme-golden button {
    background-color: #b8860b;
    color: #000;
}

body.theme-golden .visualizer {
    background-color: rgba(184, 134, 11, 0.2);
    border-color: #d4af37;
}

body.theme-golden .now-playing {
    background-color: #372800;
}

body.theme-golden .now-playing-bar {
    background-color: #d4af37;
}

body.theme-educational {
    background-color: #f0f5ff;
    color: #003366;
    font-family: 'Arial', sans-serif;
}

body.theme-educational h1,
body.theme-educational h2,
body.theme-educational h3 {
    color: #004d99;
}

body.theme-educational button {
    background-color: #0066cc;
    color: white;
}

body.theme-educational .now-playing {
    background-color: #e6f0ff;
    color: #003366;
}

body.theme-educational .now-playing-bar {
    background-color: #0066cc;
}

body.theme-animated {
    background-color: #000;
    color: #fff;
    background-image: url('https://media.giphy.com/media/U3qYN8S0j3bpK/giphy.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.theme-animated button {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.theme-animated .visualizer {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

body.theme-animated .now-playing {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

body.custom-gif-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.theme-background-only {
    background-color: #121212;
    background-image: linear-gradient(135deg, #333 0%, #111 100%);
}

body.theme-background-only .visualizer,
body.theme-background-only button,
body.theme-background-only .drag-area,
body.theme-background-only .now-playing,
body.theme-background-only input {
    background-color: inherit;
    color: inherit;
    border-color: inherit;
}

body.theme-neon {
    background-color: #000000;
    color: #00ff99;
    background-image: linear-gradient(90deg, rgba(33, 3, 73, 0.6) 0%, rgba(5, 5, 30, 0.8) 100%);
    text-shadow: 0 0 5px #00ff99, 0 0 10px #00ff99;
}

body.theme-neon button {
    background-color: transparent;
    border: 1px solid #00ff99;
    box-shadow: 0 0 10px #00ff99;
    color: #00ff99;
}

body.theme-neon .now-playing {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff99;
    box-shadow: 0 0 10px #00ff99;
}

body.theme-neon .now-playing-bar {
    background-color: #00ff99;
    box-shadow: 0 0 5px #00ff99;
}

body.theme-sunset {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: #fff;
}

body.theme-sunset button {
    background-color: rgba(255, 126, 95, 0.6);
    color: #fff;
}

body.theme-sunset .now-playing {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

body.theme-ocean {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: #fff;
}

body.theme-ocean .visualizer {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

body.theme-ocean .now-playing {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

body.theme-forest {
    background: linear-gradient(135deg, #134e5e, #71b280);
    color: #fff;
}

body.theme-forest button {
    background-color: rgba(19, 78, 94, 0.8);
    color: #fff;
}

body.theme-retro {
    background-color: #fdcf58;
    color: #757575;
    background-image: 
        linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
        linear-gradient(#eee .1em, transparent .1em);
    background-size: 100% 1.2em;
}

body.theme-retro button {
    background-color: #ff9a3c;
    color: #333;
    border: 2px solid #333;
}

body.theme-retro .now-playing {
    background-color: #f9f2e7;
    color: #333;
    border: 2px solid #333;
}

body.theme-cyberpunk {
    background-color: #0d0221;
    color: #00ff9f;
    background-image: 
        linear-gradient(90deg, #fc00ff 0%, #00dbde 100%),
        repeating-linear-gradient(45deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 2px, transparent 2px, transparent 4px);
    background-blend-mode: overlay;
}

body.theme-cyberpunk button {
    background-color: #fc00ff;
    color: #fff;
    text-shadow: 0 0 5px #fc00ff;
}

body.theme-cyberpunk .now-playing {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff9f;
}

body.theme-pastel {
    background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
    color: #6b7280;
}

body.theme-pastel button {
    background-color: #ffb6c1;
    color: #6b7280;
}

body.theme-pastel .now-playing {
    background-color: rgba(255, 255, 255, 0.5);
    color: #6b7280;
}

.sidebar {
    position: fixed; inset: 0 auto 0 0; width: 220px; background:#0b0b10; color:#fff;
    padding: 20px; display:flex; flex-direction:column; gap:14px; z-index:1002;
}
.sidebar-brand { font-family:'DM Sans', sans-serif; font-weight:700; letter-spacing:.5px; }
.sidebar .nav-link { color:#bbb; text-decoration:none; padding:8px 0; display:block; }
.sidebar .nav-link:hover { color:#fff; }
/* Remove desktop left margin so content fits edges */
.main-container { margin-left: 0; }
/* Mobile: collapse sidebar */
@media (max-width: 768px){ .sidebar{position:sticky; width:auto; inset:auto; flex-direction:row; gap:12px;}
.main-container{margin-left:0;} }

body.theme-blueblack{ background:linear-gradient(135deg,#0f172a,#000); color:#e2e8f0; }
body.theme-sand{ background:#f4efe6; color:#2b2b2b; }
body.theme-purple{ background:linear-gradient(135deg,#1e1633,#6b46c1); color:#f3e8ff; }

.container {
    max-width: 800px;
    width: 100%;
    text-align: left;
    position: relative;
    margin: 0 auto;
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* New main content layout: responsive two-column card grid */
.main-content {
    flex: 1;
    padding: 16px 18px 96px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
    gap: 16px;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Left column: upload + visualizer + progress */
.main-content .drag-area,
.main-content .primary-action-circle-row,
.main-content .filegarden-import,
.main-content .youtube-container,
.main-content .visualizer,
.main-content .player-progress {
    grid-column: 1 / 2;
}

/* Right column: controls + playlist */
.main-content .primary-control-circle-row,
.main-content .controls,
.main-content .playlist-container {
    grid-column: 2 / 3;
}

/* Now playing spans full width at top of layout */
.main-content .now-playing {
    grid-column: 1 / -1;
    order: -1;
}

/* Bottom persistent controls stay full-width */
.main-content #bottomControls {
    grid-column: 1 / -1;
}

/* Mobile: single-column stack */
@media only screen and (max-width: 768px) {
    .main-content {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px 12px 88px;
        gap: 12px;
        max-height: 100vh;
        overflow-y: auto;
    }

    .main-content .drag-area,
    .main-content .primary-action-circle-row,
    .main-content .filegarden-import,
    .main-content .youtube-container,
    .main-content .visualizer,
    .main-content .player-progress,
    .main-content .primary-control-circle-row,
    .main-content .controls,
    .main-content .playlist-container,
    .main-content .now-playing,
    .main-content #bottomControls {
        grid-column: 1 / -1;
    }
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* BEOBIM beta banner */
.beobim-banner {
    margin: 10px 16px 0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
    color: #e5e7eb;
}

.beobim-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #a3e635);
    color: #0b1120;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.beobim-copy {
    flex: 1;
    min-width: 0;
}

.beobim-link {
    margin-left: 6px;
    color: #bbf7d0;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.beobim-link:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 768px) {
    .beobim-banner {
        margin: 8px 12px 0;
        border-radius: 16px;
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.8rem;
    }

    .beobim-link {
        display: inline-block;
        margin-left: 0;
        margin-top: 2px;
    }
}

.top-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.install-app-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.offline-status {
    display: flex;
    align-items: center;
}

.drag-area {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 28px 18px;
    margin: 16px 0;
    text-align: center;
    transition: all 0.25s ease;
    background: rgba(0, 0, 0, 0.14);
}

.drag-area:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.1);
}

.drag-area.dragover {
    border-color: #1DB954;
    background: rgba(29, 185, 84, 0.1);
    transform: scale(1.02);
}

.drag-icon {
    margin-bottom: 15px;
    opacity: 0.7;
}

.drag-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.drag-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: max-height 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.controls.control-panel-open {
    max-height: 420px; /* enough to show any group */
    opacity: 1;
    transform: translateY(0);
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.slider-container span:last-child {
    min-width: 80px;
    text-align: right;
    font-size: 0.85rem;
    opacity: 0.9;
}

.pill-toggle {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.6);
    margin-left: 4px;
    white-space: nowrap;
}

input[type="range"] {
    width: 300px;
}

input[type="file"] {
    display: none;
}

.file-input-label {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1DB954, #17a44a);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.file-input-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

button {
    padding: 10px 20px;
    background-color: rgba(10, 10, 10, 0.55);
    color: #F5F5F5;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-family: 'DM Mono', monospace;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.18s ease, opacity 0.25s ease;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

button:hover {
    opacity: 0.8;
}

.audio-player {
    margin-top: 20px;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
}

.visualizer {
    width: 100%;
    height: 96px;
    background-color: rgba(0, 0, 0, 0.32);
    border-radius: 16px;
    margin: 18px 0;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

canvas {
    width: 100%;
    height: 100%;
}

.update-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #000;
    color: #F5F5F5;
    min-width: 250px;
    padding: 0;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s, transform 0.5s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.update-popup.visible {
    opacity: 1;
    transform: translateY(0);
}

.update-title {
    background-color: #1DB954;
    color: white;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}

.update-content {
    padding: 15px;
}

.youtube-container {
    margin: 20px 0;
    width: 100%;
}

.youtube-container.offline {
    opacity: 0.6;
    position: relative;
}

.youtube-container.offline::after {
    content: "Not available offline";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    pointer-events: none;
}

.youtube-input {
    width: 70%;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 4px;
    font-family: 'DM Mono', monospace;
    margin-right: 10px;
}

.youtube-container {
    margin: 12px 0 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.youtube-container .loading-spinner {
    width: 18px;
    height: 18px;
    border-width: 3px;
}

.now-playing {
    padding: 10px 15px;
    width: 100%;
    height: auto;
    min-height: 80px;
    background-color: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #F5F5F5;
    overflow: hidden;
    position: relative;
}

.now-playing-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.now-playing-info {
    margin-left: 0;
    text-align: left;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
    flex-grow: 1;
}

.now-playing-title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.now-playing-bars {
    display: flex;
    align-items: flex-end;
    height: 40px;
    gap: 2px;
    margin: 0 15px 0 0;
    z-index: 1;
}

.now-playing-bar {
    width: 4px;
    background-color: #1DB954;
    border-radius: 2px;
}

.now-playing-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 15px;
}

.now-playing-control-btn {
    background-color: transparent;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s;
}

.now-playing-control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#pipBtn {
    background-color: transparent;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s;
}

#pipBtn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#pipBtn svg {
    width: 20px;
    height: 20px;
}

/* PiP button is now always visible; unsupported browsers will show a notification instead */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fullscreen-btn {
    background: transparent;
    color: #F5F5F5;
    padding: 5px;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    z-index: 1001;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.fs-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #450af5, #c4efd9);
    opacity: 0.3;
    z-index: 1;
}

.fs-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 800px;
}

.fs-album-art {
    width: 300px;
    height: 300px;
    background-color: #333;
    border-radius: 8px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.fs-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.fs-info {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.fs-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-artist {
    font-size: 1.2em;
    color: #b3b3b3;
}

.fs-controls {
    width: 100%;
    margin-bottom: 40px;
}

.fs-progress-bar {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.fs-progress {
    height: 100%;
    background-color: #1DB954;
    width: 0%;
    transition: width 0.5s;
}

.fs-time {
    display: flex;
    justify-content: space-between;
    color: #b3b3b3;
    font-size: 0.9em;
}

.fs-visualizer-container {
    width: 100%;
    height: 100px;
    margin-bottom: 30px;
}

#fsVisualizer {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.close-fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    color: white;
    padding: 10px;
    border-radius: 50%;
}

.close-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.platform-install-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.platform-install-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: 'DM Mono', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.platform-install-btn.chromebook-btn {
    position: relative;
    overflow: hidden;
}

.platform-install-btn.chromebook-btn::after {
    content: "Available now!";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ea4335;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    transform: rotate(45deg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.platform-install-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.platform-install-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.platform-install-btn:active {
    transform: translateY(0);
}

.platform-install-btn.hidden {
    display: none;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(66, 133, 244, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    }
}

.cut-controls {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cut-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 5px;
}

.cut-input-group input {
    width: 60px;
    padding: 5px;
    border: 1px solid #000;
    border-radius: 4px;
}

body.theme-dark .cut-input-group input {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

#applyCutBtn {
    padding: 5px 10px;
    margin-left: 5px;
    background-color: #1DB954;
}

.playlist-container {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 20px;
    padding: 18px;
    margin: 18px 0;
}

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

.playlist-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.playlist-stats {
    font-size: 0.9rem;
    opacity: 0.7;
}

.playlist {
    border: none;
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.05);
}

.playlist-item {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, transform 0.15s ease;
    border-radius: 10px;
    margin-bottom: 4px;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.playlist-item.active {
    background: rgba(0, 0, 0, 0.55);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.playlist-item-info {
    flex-grow: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-progress-container {
    width: 100px;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin-right: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.playlist-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #1DB954;
    transition: width 0.3s;
    pointer-events: none;
}

body.theme-dark .playlist-progress-container {
    background-color: rgba(255, 255, 255, 0.1);
}

.playlist-item-controls {
    display: flex;
    gap: 5px;
}

.playlist-item-btn {
    background: transparent;
    color: inherit;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.playlist-item-btn svg {
    width: 18px;
    height: 18px;
}

.crossfade-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.crossfade-label {
    font-size: 0.9em;
    color: #666;
}

.install-app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #1DB954;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    margin: 20px auto;
    font-family: 'DM Mono', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.install-app-btn:hover {
    background-color: #18a84a;
    transform: translateY(-2px);
}

.install-app-btn:active {
    transform: translateY(0);
}

.install-app-btn.hidden {
    display: none;
}

.install-button {
    background-color: #1DB954;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    margin: 10px 0;
    font-family: 'DM Mono', monospace;
    cursor: pointer;
    transition: background-color 0.3s;
    display: none;
}

.install-button:hover {
    background-color: #18a84a;
}

.theme-selector {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    width: 100%;
}

body.theme-dark .theme-selector {
    background-color: rgba(255, 255, 255, 0.05);
}

.theme-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    justify-content: center;
}

.theme-option {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.theme-option:hover {
    transform: translateY(-2px);
}

.theme-option.active {
    background-color: #1DB954;
    font-weight: bold;
}

.custom-theme-options {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0 20px 0;
}

.custom-option {
    display: flex;
    align-items: center;
    margin: 10px 0;
    gap: 8px;
}

.gif-bg-uploader {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gif-preview {
    width: 100%;
    height: 100px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #666;
}

.visualizer-style {
    margin: 15px 0;
}

.visualizer-style select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
}

body.theme-dark .visualizer-style select {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

.audio-manipulation-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.audio-manipulation-controls button,
.advanced-manipulation-controls button {
    background-color: #1DB954;
    color: white;
    flex: 1;
    min-width: 120px;
}

.advanced-manipulation-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.metadata-editor {
    margin: 30px 0;
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    text-align: left;
}

body.theme-dark .metadata-editor {
    background-color: rgba(255, 255, 255, 0.05);
}

.metadata-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
}

.form-group input[type="text"] {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: 'DM Mono', monospace;
    background-color: #fff;
}

body.theme-dark .form-group input[type="text"] {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

.album-art-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.album-art-preview {
    width: 150px;
    height: 150px;
    background-color: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.theme-dark .album-art-preview {
    background-color: #222;
}

.album-art-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-btn {
    background-color: #1DB954;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.upload-btn:hover {
    background-color: #18a84a;
}

.offline-indicator {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(29, 185, 84, 0.2);
    color: #1DB954;
    border: 1px solid rgba(29, 185, 84, 0.3);
}

.offline-indicator.offline {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border-color: rgba(255, 152, 0, 0.3);
}

.offline-mode .online-only {
    opacity: 0.5;
    pointer-events: none;
}

.offline-mode .offline-ready {
    display: block;
}

.offline-ready {
    display: none;
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #1DB954;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    max-width: 90%;
    text-align: center;
}

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

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

body.theme-dark .modal-content {
    background-color: #333;
    color: white;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.login-btn {
    background-color: #1DB954;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    margin-top: 15px;
    cursor: pointer;
}

.credits-display,
.credits-notification,
.cost-badge,
.premium-option,
.premium-options {
    display: none !important;
}

.party-container {
    width: 100%;
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

body.theme-dark .party-container {
    background-color: rgba(255, 255, 255, 0.05);
}

.party-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.room-control {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.room-code-input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'DM Mono', monospace;
    flex: 1;
    min-width: 200px;
}

body.theme-dark .room-code-input {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

.party-status {
    text-align: center;
    font-weight: bold;
    color: #1DB954;
    margin: 10px 0;
}

.party-members {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.party-member {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
}

body.theme-dark .party-member {
    background-color: rgba(255, 255, 255, 0.1);
}

.party-member-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #1DB954;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.party-member-name {
    font-size: 0.9em;
}

.party-member.current {
    background-color: #1DB954;
    color: white;
}

.soundcloud-container {
    margin: 20px 0;
    width: 100%;
    position: relative;
}

.soundcloud-container::after {
    content: "Add 'pitxh.soundcloud.com/' before the actual SoundCloud URL";
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    text-align: left;
    padding-left: 10px;
}

.soundcloud-input {
    width: 70%;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 4px;
    font-family: 'DM Mono', monospace;
    margin-right: 10px;
}

.soundcloud-input.invalid-url {
    border-color: #ff3333;
    background-color: rgba(255, 51, 51, 0.1);
}

body.theme-dark .soundcloud-input {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

#soundcloudBtn {
    background-color: #ff5500;
    color: white;
}

#soundcloudBtn:hover {
    background-color: #ff7700;
}

.shared-track-indicator {
    font-size: 0.8em;
    margin-left: 5px;
    background-color: #1DB954;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
}

/* iOS-style Liquid Glass surfaces */
.glass-surface {
    background: rgba(15, 15, 15, 0.55);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: background 0.25s ease, border-color 0.25s ease,
                box-shadow 0.25s ease, transform 0.18s ease;
    position: relative;
    overflow: hidden;
}

.glass-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.20), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(255,255,255,0.10), transparent 45%);
    opacity: 0.45;
    pointer-events: none;
    mix-blend-mode: screen;
}

.glass-surface:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

body.ios-device .glass-surface {
    background: color-mix(in srgb, rgba(15,15,15,0.72) 60%, rgba(255,255,255,0.12));
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
}

body.ios-device .glass-surface::before {
    opacity: 0.65;
}

/* Subtle “liquid” shimmer for iOS so you can see it in action */
@keyframes iosLiquidGlassFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body.ios-device .glass-surface {
    background-image:
        linear-gradient(120deg,
            rgba(255, 255, 255, 0.24),
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.18));
    background-size: 200% 200%;
    animation: iosLiquidGlassFlow 14s ease-in-out infinite;
}

/* Make bottom-controls keep their layout but inherit liquid glass look */
.bottom-controls.glass-surface {
    background: rgba(0, 0, 0, 0.88);
    border-radius: 24px 24px 0 0;
}
body.ios-device .bottom-controls.glass-surface {
    background: rgba(0, 0, 0, 0.82);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2ecc71, #1abc9c);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite alternate;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    color: white;
    text-align: center;
}

@keyframes pulse {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.1); opacity: 0.8; }
}

.update-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #F5F5F5;
    min-width: 250px;
    max-width: 350px;
    padding: 0;
    overflow: hidden;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.update-notification.visible {
    transform: translateY(0);
    opacity: 1;
}

.update-notification-title {
    background: linear-gradient(90deg, #2ecc71, #1abc9c);
    color: white;
    padding: 12px;
    font-weight: bold;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
}

.update-notification-content {
    padding: 15px;
    font-family: 'DM Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.update-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.header-with-settings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.settings-link {
    display: none;
}

.color-picker-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.color-picker-group label {
    min-width: 130px;
}

.settings-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.limited-time-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
    position: relative;
    padding: 20px;
    border: 2px dashed #ff9800;
    border-radius: 8px;
    background-color: rgba(255, 152, 0, 0.1);
}

.limited-time-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff9800;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.limited-feature-btn {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    flex: 1;
    min-width: 120px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.limited-feature-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    z-index: -1;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-50%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

body.theme-dark .limited-time-controls {
    border-color: #ff9800;
    background-color: rgba(255, 152, 0, 0.05);
}

.highlight {
    color: #ff9800;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

.summer-time-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
    position: relative;
    padding: 20px;
    border: 2px dashed #ff5e92;
    border-radius: 8px;
    background-color: rgba(255, 94, 146, 0.1);
}

.summer-time-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ff5e92, #ff9a5e);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.summer-feature-btn {
    background: linear-gradient(135deg, #ff5e92, #ff9a5e);
    color: white;
    flex: 1;
    min-width: 120px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.summer-feature-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    z-index: -1;
    animation: shimmer 3s linear infinite;
}

body.theme-dark .summer-time-controls {
    border-color: #ff5e92;
    background-color: rgba(255, 94, 146, 0.05);
}

.summer-highlight {
    color: #ff5e92;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

.icloud-files-btn {
    display: none;
    margin-top: 10px;
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    align-items: center;
    gap: 8px;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    width: 80%;
    max-width: 300px;
    margin: 15px auto;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.icloud-files-btn svg {
    stroke: white;
}

.icloud-files-btn:hover {
    background-color: #0062CC;
    transform: translateY(-2px);
}

.icloud-files-btn:active {
    transform: translateY(0);
}

.ios-only {
    display: none;
}

body.ios-device .ios-only {
    display: flex;
}

/* Community Playlists Styles */
.community-playlists {
    width: 100%;
    margin: 30px 0;
    border-radius: 8px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.05);
}

body.theme-dark .community-playlists {
    background-color: rgba(255, 255, 255, 0.05);
}

.community-playlists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.community-playlists-header h2 {
    margin: 0;
}

.community-playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.community-playlist-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.community-playlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.community-playlist-cover {
    width: 100%;
    aspect-ratio: 1;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.community-playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.community-playlist-info {
    padding: 15px;
}

.community-playlist-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.community-playlist-creator {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 5px;
}

.creator-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #1DB954;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

.community-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
}

.community-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.community-stat svg {
    width: 14px;
    height: 14px;
}

.publish-playlist-btn {
    padding: 8px 16px;
    background-color: #1DB954;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.publish-playlist-btn:hover {
    background-color: #18a84a;
}

.filter-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-option {
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
    font-size: 0.8em;
}

.filter-option:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.filter-option.active {
    background-color: #1DB954;
    color: white;
}

.dj-mode-container {
    width: 100%;
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

body.theme-dark .dj-mode-container {
    background-color: rgba(255, 255, 255, 0.05);
}

.dj-mode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dj-mode-header h3 {
    margin: 0;
}

.toggle-dj-mode-btn {
    padding: 8px 16px;
    background-color: #1DB954;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.dj-mode-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.crossfader-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.crossfader {
    width: 70%;
    height: 15px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #ff4800, #1db954);
    outline: none;
    border-radius: 10px;
}

.crossfader::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: grab;
}

.crossfader::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: grab;
}

.deck-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deck {
    flex: 1;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: center;
}

.deck-title {
    margin-bottom: 10px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deck-select-btn {
    padding: 5px 10px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

body.theme-dark .deck-select-btn {
    background-color: #444;
}

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

.deck-track-list {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 15px;
}

.deck-track-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

body.theme-dark .deck-track-item {
    border-bottom-color: #555;
}

.deck-track-item:hover {
    background-color: #f5f5f5;
}

body.theme-dark .deck-track-item:hover {
    background-color: #444;
}

.mp3-trimmer {
    width: 100%;
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

body.theme-dark .mp3-trimmer {
    background-color: rgba(255, 255, 255, 0.05);
}

.trimmer-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trimmer-waveform {
    height: 100px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.trimmer-waveform canvas {
    width: 100%;
    height: 100%;
}

.trimmer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.trimmer-time {
    display: flex;
    gap: 20px;
}

.trimmer-actions {
    display: flex;
    gap: 10px;
}

.trimmer-handle {
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #1DB954;
    cursor: ew-resize;
}

.trimmer-handle.left {
    left: 0;
}

.trimmer-handle.right {
    right: 0;
}

.trimmer-selection {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: rgba(29, 185, 84, 0.2);
    pointer-events: none;
}

/* Mobile-specific styles */
@media only screen and (max-width: 768px) {
    .main-container {
        padding: 15px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .top-header {
        padding: 10px 15px;
    }
    
    .top-header h1 {
        font-size: 1.3rem;
    }
    
    .slider-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    input[type="range"] {
        width: 100%;
    }
    
    .slider-container span {
        margin-bottom: 5px;
        display: block;
    }
    
    .controls button {
        margin: 5px;
        width: calc(50% - 10px);
        font-size: 0.9rem;
    }
    
    .audio-manipulation-controls button,
    .advanced-manipulation-controls button,
    .limited-time-controls button,
    .summer-time-controls button {
        min-width: calc(50% - 10px);
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .platform-install-buttons {
        flex-direction: column;
    }
    
    .platform-install-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .deck-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .crossfader-container {
        flex-direction: column;
        align-items: center;
    }
    
    .crossfader {
        width: 100%;
        margin: 10px 0;
    }
    
    .community-playlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .filter-options {
        padding-bottom: 5px;
        gap: 5px;
    }
    
    .filter-option {
        padding: 5px 8px;
        font-size: 0.75em;
    }
    
    /* Audio player fixes for iOS */
    .audio-player {
        display: none; /* Hide default audio player on mobile */
    }
    
    /* Enhance touch targets for iOS */
    button, 
    .playlist-item-btn,
    .now-playing-control-btn,
    .theme-option {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Adjust fullscreen player for mobile devices */
    .fs-album-art {
        width: 80%;
        height: auto;
        aspect-ratio: 1;
        max-width: 200px;
    }
    
    .fs-title {
        font-size: 1.5em;
    }
    
    /* Optimize visualizer size for mobile */
    .visualizer {
        height: 80px;
    }
    
    /* Make drag area more mobile-friendly */
    .drag-area {
        padding: 30px 15px;
        margin: 15px 0;
    }
    
    .drag-text {
        font-size: 1rem;
    }
    
    /* Adjust playlist items for touch */
    .playlist-item {
        padding: 15px;
    }
    
    .playlist-item-controls {
        gap: 12px;
    }
    
    /* Adjust now playing for mobile */
    .now-playing {
        padding: 10px;
        min-height: 60px;
    }
    
    .now-playing-title {
        font-size: 1rem;
    }
    
    .now-playing-bars {
        display: none; /* Hide on very small screens */
    }
    
    /* Make theme options more mobile-friendly */
    .theme-options {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

/* iPad-specific adjustments */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .main-container {
        max-width: 90%;
    }
    
    .audio-manipulation-controls,
    .advanced-manipulation-controls,
    .limited-time-controls,
    .summer-time-controls {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .audio-manipulation-controls button,
    .advanced-manipulation-controls button,
    .limited-time-controls button,
    .summer-time-controls button {
        min-width: calc(33.333% - 10px);
    }
    
    .community-playlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Enhanced iOS support */
.ios-device .bottom-controls {
    padding-bottom: env(safe-area-inset-bottom);
}

.ios-device .main-content {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

/* Animation for bottom controls */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.bottom-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: none;
}

.bottom-controls.visible {
    transform: translateY(0);
}

.bottom-controls-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.bottom-now-playing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-track-info {
    flex: 1;
}

.bottom-track-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.bottom-track-artist {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.bottom-collapse-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 5px;
    cursor: pointer;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bottom-visualizer {
    height: 60px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.bottom-visualizer canvas {
    width: 100%;
    height: 100%;
}

.bottom-audio-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.bottom-control-group {
    flex: 1;
    min-width: 150px;
}

.bottom-control-group label {
    display: block;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.bottom-control-group input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
}

.bottom-control-group span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.bottom-main-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bottom-main-controls button {
    flex: 1;
    min-width: 100px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.bottom-main-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.control-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.control-buttons button {
    flex: 1;
    min-width: 96px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.76);
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    transition: all 0.2s;
}

.control-buttons button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
}

.control-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Better focus states for keyboard accessibility on macOS */
body.mac-device button:focus {
    outline: 2px solid #1DB954;
    outline-offset: 2px;
}

/* Fix click area for buttons on macOS Safari */
body.mac-device button, 
body.mac-device .playlist-item-btn,
body.mac-device .now-playing-control-btn {
    position: relative;
}

body.mac-device button::after, 
body.mac-device .playlist-item-btn::after,
body.mac-device .now-playing-control-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
}

#resetBtn,
#bottomResetBtn {
    background-color: #dc3545;
    color: white;
}

#loopPlaylistBtn,
#bottomLoopPlaylistBtn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#resetBtn:hover,
#bottomResetBtn:hover {
    background-color: #c82333;
}

.filegarden-import{ display:flex; gap:8px; align-items:center; margin:10px 0 0; }
.filegarden-input{ flex:1; padding:10px; border:2px solid #000; border-radius:4px; font-family:'DM Mono', monospace; }
body.sidebar-collapsed .sidebar{ width:56px; padding:20px 12px; }
body.sidebar-collapsed .sidebar-brand,
body.sidebar-collapsed .sidebar-nav .nav-link{ display:none; }
body.sidebar-collapsed .main-container{ margin-left:76px; }
.collapse-menu-btn{ padding:8px 12px; border-radius:8px; display:flex; align-items:center; gap:6px; }
@media (max-width: 768px){ .collapse-menu-btn{ display:none; } }

.player-progress { position: relative; width: 100%; height: 6px; background: rgba(255,255,255,0.25); border-radius: 4px; margin: 10px 0 20px; cursor: pointer; }
.player-progress-bar { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: #1DB954; border-radius: 4px; transition: width 0.2s linear; }
.player-time { display: flex; justify-content: flex-end; gap: 6px; font-size: 0.85rem; opacity: 0.8; margin-top: 6px; }

/* pitxh Rewind 2025 page */
.rewind-page {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 24px 16px 32px;
    background: linear-gradient(135deg, #226214, #43cc25);
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.rewind-inner {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.rewind-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 20px;
    align-items: center;
}

.rewind-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.rewind-title {
    margin: 10px 0 8px;
    font-family: 'DrukCondSuper', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.rewind-subtitle {
    margin: 0 0 10px;
    font-size: 0.95rem;
    max-width: 360px;
    opacity: 0.9;
}

.rewind-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.rewind-tag {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
}

.rewind-hero-art {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 0, 0, 0.4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.rewind-hero-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rewind-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rewind-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.rewind-card-title {
    margin: 0 0 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    font-family: 'DrukCondSuper', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.rewind-metric-main {
    margin: 0 0 2px;
    font-size: 1.4rem;
    font-weight: 700;
}

.rewind-metric-sub {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.rewind-card-wide {
    grid-column: 1 / -1;
}

.rewind-list {
    margin: 4px 0 0;
    padding-left: 18px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.rewind-share {
    margin-top: 4px;
}

.rewind-share-text {
    margin: 0;
    font-size: 0.9rem;
}

.rewind-link {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* iOS “Add to Home Screen” install sheet */
.ios-install-instructions {
    position: fixed;
    inset: auto 12px 16px 12px;
    max-width: 420px;
    margin: 0 auto;
    padding: 14px 16px 14px 16px;
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.92);
    color: #F5F5F5;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    z-index: 1100;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    animation: slideUp 0.25s ease-out;
}

.ios-install-instructions h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
}

.ios-install-instructions ol {
    margin: 6px 0 0;
    padding-left: 20px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.ios-install-instructions li + li {
    margin-top: 4px;
}

.ios-install-instructions .close-instructions {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #F5F5F5;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-install-instructions .close-instructions:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Circular primary action buttons (uploads) */
.primary-action-circle-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.circle-icon-btn {
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #f9fafb;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.circle-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
    background: rgba(0, 0, 0, 0.85);
}

.circle-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.22), rgba(15,15,15,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

/* Rounded primary control row (Volume / Speed / Reverb) */
.primary-control-circle-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    margin-top: 12px;
    margin-bottom: 4px;
}

/* Hide original file label – input is still there for accessibility */
.hidden-input {
    display: none;
}

/* Sub-panels for URL inputs start collapsed on the new layout */
.filegarden-import,
.youtube-container {
    display: none;
}

/* Smooth slider highlight when jumped to from circle buttons */
.slider-pulse {
    box-shadow: 0 0 0 0 rgba(29,185,84,0.6);
    animation: sliderPulse 0.6s ease-out;
}

@keyframes sliderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(29,185,84,0.6);
    }
    100% {
        box-shadow: 0 0 0 18px rgba(29,185,84,0);
    }
}

/* Full-width Now Playing banner at top of layout */
.now-playing {
    padding: 10px 14px;
    width: 100%;
    max-width: 960px;
    min-height: 64px;
    margin: 4px auto 8px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #F5F5F5;
    position: relative;
    z-index: 20;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.now-playing-bars {
    display: flex;
    align-items: flex-end;
    height: 32px;
    gap: 2px;
    margin: 0 10px;
}

.now-playing-info {
    max-width: 55%;
}

/* Floating menu remains in the lower-right but independent of now-playing */
.floating-menu-btn {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.85);
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    cursor: pointer;
    z-index: 950;
}

.floating-menu-panel {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom));
    right: -260px;
    width: 220px;
    border-radius: 18px;
    padding: 12px 14px;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 16px 40px rgba(0,0,0,0.75);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 940;
    transition: right 0.25s ease-out, opacity 0.25s ease-out;
    opacity: 0;
}

.floating-menu-panel.open {
    right: 16px;
    opacity: 1;
}

.floating-menu-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.7;
    margin-bottom: 4px;
}

.floating-menu-panel .nav-link {
    padding: 6px 4px;
    border-radius: 10px;
    text-decoration: none;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.floating-menu-panel .nav-link:hover {
    background: rgba(255,255,255,0.06);
}

/* Mobile: now playing sticks to top of scrollable content, menu hugs bottom edge */
@media only screen and (max-width: 768px) {
    .now-playing {
        max-width: 100%;
        margin: 4px 0 8px;
    }

    .floating-menu-btn {
        bottom: calc(12px + env(safe-area-inset-bottom));
        right: 10px;
    }

    .floating-menu-panel {
        bottom: calc(70px + env(safe-area-inset-bottom));
        right: -260px;
    }

    .floating-menu-panel.open {
        right: 10px;
    }
}

/* "The End." announcement overlay */
.end-announcement {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.end-announcement-card {
    position: relative;
    max-width: 420px;
    width: 100%;
    padding: 18px 18px 20px;
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.9);
    color: #f9fafb;
    text-align: left;
}

.end-announcement-title {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 700;
}

.end-announcement-body {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.end-announcement-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #f9fafb;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.end-announcement-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .end-announcement-card {
        max-width: 360px;
        padding: 16px 16px 18px;
    }
}