/* ============================================
    RESET & VARIABLES (Tema neutro blanco/gris)
    ============================================ */

body {
  background-color: transparent;
}

.theme-rose{
  --accent: #ffffff;
  --text: #ffffff;
  --mc-text1: #d1aca8;
}


/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  
    .theme-notion {
      --text: #F5F5F5;
      --tab-active-bg: #3a3a3a;
      --tab-active-c: #e0e0e0;
      --modal-overlay: rgba(0, 0, 0, 0.8);
      --modal-shadown:rgb(211 211 211 / 80%);
      --bg-image-url: none;
      --bg-filter: none;
    }

    .top-section {
      background: rgba(26, 26, 26, 0.37);
    }

    .aleatorio-btn img,
    .reset-btn img {
      filter: invert(0);  /* Normal */
    }

    .bottom-bar {
      background: transparent;
    }
}

/* THEMES */

.swatch i {
    width: 22px;
    height: 22px;
    border-radius: 0;
    display: block;
}

/* ============================================
    CONTENEDOR PRINCIPAL - FONDO FULL
    ============================================ */
.app-container {
    width: 100%;
    height: 80%;
    /* background: var(--bg-page); */
    padding: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Pseudo-elemento para la imagen de fondo (cubre toda la pantalla) */
.app-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image-url);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: var(--bg-filter);
    pointer-events: none;
    z-index: 0;
    transition: filter 0.2s ease;
}

.app-container > * {
    position: relative;
    z-index: 1;
}

/* Cuando se selecciona "Ninguno" */
.app-container.no-background {
  background: transparent !important;
  background-color: transparent;
  background-image: none !important;
  --bg-image-url: none !important;
  --bg-filter: none !important; 
}

.app-container.no-background::before {
  display: none !important;
}

/* ============================================
    TOP SECTION (Grid 2 columnas)
    ============================================ */
.top-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2rem;
    flex: 0;
    width: 70%;
    max-width: 1500px;
    /* padding: 2rem; */
    background: var(--bg-card-rgb);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
    PLAYER PANEL (Izquierdo)
    ============================================ */
.player-panel {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.player-panel h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.player-panel p {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 2rem;
    text-align: center;
}

/* Controles de reproducción */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.player-controls button {
    background: var(--btn-play);
    border: 1px solid var(--btn-play-border);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px var(--modal-overlay);
}

.player-controls button:hover {
    background: var(--btn-play-h);
    transform: scale(1.05);
}

.player-controls button:active {
    transform: scale(0.98);
}

.play-btn {
    background: var(--btn-play) !important;
    width: 100px !important;
    height: 100px !important;
    font-size: 2rem !important;
    box-shadow: 0 6px 20px var(--modal-overlay);
    border: none !important;
}

.play-btn:hover {
    background: var(--btn-play-h) !important;
}

.play-btn svg {
  fill: currentColor;
  stroke: none;
  transition: all 0.2s ease;
}

/* Botones Timer, Background, Mute */
.player-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.player-actions button {
    background: var(--btn-play);
    border: 1px solid var(--border);
    padding: 0.7rem 1.4rem;
    border-radius: 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-actions button:hover {
    background: var(--bg-track-active);
    color: var(--text);
    border-color: var(--accent2);
}

.player-actions button:active {
    transform: scale(0.98);
}

.aleatorio-btn img,
.reset-btn img {
    width: 32px;
    height: 32px;
    transition: filter 0.3s ease;
}

@media (prefers-color-scheme: light) {
  .aleatorio-btn img,
  .reset-btn img {
      filter: invert(1) brightness(0.85);  /* Invertido */
    }
}

/* ============================================
    AMBIENT PANEL (Derecho)
    ============================================ */
.ambient-panel {
    padding: 2rem 1.5rem;
    overflow-y: auto;
    scrollbar-color: #a9a9a93d transparent;
    scrollbar-width: thin;
}

.ambient-panel h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid de sonidos */
.sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2rem;
}

.sound-item {
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    border-radius: 0.8rem;
    cursor: default;
}

.icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    display: block;
    width: 80px;
    height: 85px;
    color: var(--accent);
}

.icon svg {
    width: 100%;
    height: 100%;
}

.icon svg path,
.icon svg circle,
.icon svg rect,
.icon svg polygon,
.icon svg ellipse,
.icon svg g {
    fill: currentColor;
    stroke: currentColor;
    stroke-opacity: 1;
    transition: fill-opacity 0.3s ease;
}

.sound-item p {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.8rem;
}

/* Sliders minimalista */
input[type="range"] {
    width: 100%;
    height: 3px;
    -webkit-appearance: none;
    background: var( --mc-text1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 4px var(--modal-overlay);
    transition: all 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--accent2);
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px var(--modal-overlay);
    transition: all 0.1s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: var(--accent2);
    transform: scale(1.2);
}

/* ============================================
    BOTTOM BAR & FOOTER
    ============================================ */

.div-logo{
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 1.5rem 0 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    gap: 1rem;
    background: transparent;
    z-index: 100;
}

.bottom-bar.hidden {
  visibility: hidden;
}

.bottom-bar a {
    color: var(--text-secondary, #f1f1f1);
    text-decoration: none;
    font-size:1.3rem;
}

.bottom-bar label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    font-weight: 500;
}

.bottom-bar input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border-radius: 4px;
    border: 1.5px solid var(--accent);
    position: relative;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.bottom-bar input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.bottom-bar input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #898989;
    font-size: 14px;
    font-weight: bold;
}

.footer-btn {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
 
.footer-btn:hover {
    background: var(--bg-track);
    border-color: var(--accent);
    color: var(--accent);
}
 
.footer-btn:active {
    transform: scale(0.98);
}
 
/* Animación de rotación cuando está en loading */
.footer-btn.loading span::before {
    content: '';
    display: inline-block;
    animation: spin 1s linear infinite;
}
 
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
 
/* Estados dinámicos */
.footer-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
 
.footer-btn:disabled:hover {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}


/* ============================================
    MODALES
    ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay);
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
}

.modal-content {
    border-radius: 1.2rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px var(--modal-shadown);
    animation: slideUp 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
      transform: translateY(30px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-track);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-track-active);
    transform: scale(1.1);
}

.modal-header {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

h4{
    margin: 2rem 0 1rem;
    color: var(--text-muted);
    font-family: sans-serif;
    font-size: larger;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid;
}

.details-vertical summary{
    color: var(--text-muted);
    padding: 0px 2rem;
    border-bottom: 1px dotted;
}

.details-horizontal summary{
    color: var(--text-muted);
    padding: 0px 2rem;
    border-bottom: 1px dotted;
}

/* ============================================
    MODAL: BACKGROUND
    ============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.2s ease;
    text-align: center;
    color: var(--text);
}

.gallery-item:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--bg-page), 0 0 0 5px var(--accent);
}

/* Galería vertical */
.gallery-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.gallery-vertical-item {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.gallery-vertical-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-vertical-item:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.gallery-vertical-item.selected {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

/* Contenedor del details para mejor spacing */
.details-vertical, .details-horizontal {
    margin-top: 20px;
}

.details-vertical summary, .details-horizontal summary{
    cursor: pointer;
    padding: 12px;
    background: var(--bg-track);
    border-radius: 8px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
    transition: background 0.2s;
    user-select: none;
}

.details-vertical summary:hover, .details-horizontal summary:hover {
    background: var(--bg-track-active);
}

.details-vertical[open] summary, .details-horizontal[open] summary {
    background: var(--bg-track-active);
}

/* Galería horizontal (full-width, max-height 400px) */
.gallery-horizontal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.gallery-horizontal-item {
    position: relative;
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.gallery-horizontal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-horizontal-item:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.gallery-horizontal-item.selected {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

/* Upload area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 0.8rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 2rem;
}

.upload-area:hover {
    border-color: var(--accent);
    background: var(--bg-track);
}

.upload-area input[type="file"] {
    display: none;
}

.upload-area p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Sliders de efectos */
.effect-group {
    margin-bottom: 1.5rem;
}

.effect-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

.effect-value {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ============================================
    MODAL: TIMER
    ============================================ */
.timer-display {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: var(--accent);
    margin: 2rem 0;
    font-variant-numeric: tabular-nums;
    font-family: 'Courier New', monospace;
}

.timer-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.time-input-group {
    display: flex;
    flex-direction: column;
}

.time-input-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.time-input-group input {
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    background: var(--bg-track);
    color: var(--text);
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s ease;
}

.time-input-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card);
}

.timer-buttons {
    display: flex;
    gap: 1rem;
}

.timer-buttons button {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    background: var(--bg-track);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timer-buttons button:hover {
    background: var(--bg-track-active);
}

.timer-buttons button.primary {
    background: var(--accent);
    color: var(--bg-page);
    border-color: var(--accent);
}

.timer-buttons button.primary:hover {
    background: var(--accent2);
    border-color: var(--accent2);
}

/* ============================================
   VIDEO GALLERY STYLES
   ============================================ */
 
/* Sección de videos */
.video-section {
    margin-bottom: 2rem;
}
 
/* Galería de videos */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
 
/* Items de video */
.video-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.2s ease;
    background: var(--bg-track);
}
 
.video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
 
/* Overlay con ícono de play */
.video-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 0.8rem;
}
 
.video-item:hover .video-item-overlay {
    opacity: 1;
}
 
.play-icon {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
 
/* Efecto hover en el item */
.video-item:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 4px 12px var(--modal-overlay);
}
 
/* Estado seleccionado */
.video-item.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--bg-page), 0 0 0 5px var(--accent);
    transform: scale(1.02);
}
 
.video-item.selected .video-item-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}
 
.video-item.selected .play-icon {
    font-size: 3rem;
    color: var(--accent);
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    display: none;
}


/* Botón More sounds */
.more-sounds-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    border-radius: 2rem;
    color: #0C0E1A;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.more-sounds-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Estilos para los ítems de sonidos extra en el modal */
.extra-sounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.extra-sound-item {
    background: var(--bg-track);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
}
.extra-sound-item:hover {
    background: var(--bg-card);
    transform: translateY(-2px);
}
.extra-sound-item p {
    font-size: 0.85rem;
    margin: 0.5rem 0;
    color: var(--text);
}
.listen-btn {
    background: var(--accent);
    border: none;
    border-radius: 2rem;
    padding: 0.3rem 1rem;
    color: #0C0E1A;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.listen-btn:hover {
    transform: scale(1.02);
    background: var(--accent2);
}

/* Formulario de suscripción dentro del modal */
.subscribe-form-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}
.subscribe-form-mini input {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}
.subscribe-form-mini button {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}
.subscribe-form-mini button:hover {
    transform: translateY(-2px);
}
#extra-subscribe-message {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}


/* ============================================
    RESPONSIVE
    ============================================ */
@media (max-width: 900px) {
    .top-section {
      grid-template-columns: 1fr;
      max-width: 500px;
    }

    .player-panel#player-panel-p {
        display: none;
    }
}

/* Pantallas muy pequeñas (altura < 400px, ancho >= 100px) */
@media (max-height: 400px) {
    .app-container {
      justify-content: flex-start;
      padding-top: 0.4rem;
    }

    .top-section {
      grid-template-columns: 0.5fr 1fr;
      gap: 0.6rem;
      width: 98%;
      max-width: 100%;
      padding: 0.6rem;
      margin-bottom: 0.3rem;
    }

    .player-panel {
      grid-column: 1;
      padding: 0;
      gap: 0.2rem;
      width: auto;
    }

    .player-panel h2 {
      display: none;
    }
    
    .player-panel p {
        display: none;
    }

    .player-controls {
        gap: 0.2rem;
        margin: 0;
    }


    .player-controls button {
      width: 36px;
      height: 36px;
      font-size: 0.9rem;
      flex-shrink: 0;
      margin: 1rem;
    }


    .player-actions {
      /* display: grid; */
      grid-template-columns: 1fr 1fr 1fr;
      gap: 0.2rem;
      margin-top: 0.2rem;
      width: 100%;
    }

    .player-actions button {
      padding: 0.3rem 0.5rem;
      font-size: 0.65rem;
      white-space: nowrap;
      border-radius: 0.5rem;
    }

    .ambient-panel {
      grid-column: 2;
      padding: 0.3rem;
      max-height: 280px;
      overflow-x: auto;
      overflow-y: hidden;
    }

    .ambient-panel h3 {
      display: none;
    }

    .sound-grid {
      display: flex;
      flex-direction: row;
      gap: 3rem;
      overflow-x: auto;
      overflow-y: visible;
      padding: 0;
      margin: 0;
      height: 150px;
      align-items: center;
    }

    .sound-item {
      padding: 0.3rem 0.2rem;
      min-width: 62px;
      flex-shrink: 0;
    }

    .icon {
      width: 48px;
      height: 48px;
      margin: 0 auto 0.15rem;
    }

    .sound-item p {
      font-size: 0.62rem;
      margin-bottom: 0.15rem;
      line-height: 1;
    }

    input[type="range"] {
      width: 52px;
      height: 2px;
      margin: 1rem;
    }

    .bottom-bar {
      padding: 0.5rem 1rem;
      height: auto;
    }

    .bottom-bar label {
      font-size: 0.68rem;
      gap: 0.3rem;
    }

    .bottom-bar input[type="checkbox"] {
      width: 15px;
      height: 15px;
    }

    .div-logo {
      opacity: 0;
    }
}

@media (max-height: 600px) {
    .player-panel p {
        display: none;
    }

    .ambient-panel{
        max-height: 500px;
    }
    .sound-grid{
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .more-sounds-wrapper {
        display: none;
    }
    
}

@media (max-width: 600px) {
    .top-section {
        padding: 1rem;
        max-width: 100%;
        margin: 0 1rem;
    }

    .player-panel h2 {
        font-size: 1.3rem;
    }

    .player-panel p{
        display: none;
    }
    
    .player-panel#player-panel-p{
        display: none;
    }

    .play-btn {
        width: 80px !important;
        height: 80px !important;
        font-size: 1.6rem !important;
    }

    .player-controls button {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }


    .ambient-panel{
        max-height: 600px;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .timer-display {
        font-size: 2.2rem;
    }

    .toast {
        bottom: 80px;
        right: 1rem;
        left: 1rem;
    }

    .bottom-bar {
        padding: 1rem;
    }

    .video-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .video-item {
        aspect-ratio: 16/9;
        border-radius: 0.6rem;
    }
    
    .play-icon {
        font-size: 2rem;
    }
    
    .video-item.selected .play-icon {
        font-size: 2.2rem;
    }
}

@media (max-width: 400px) {
    /* Contenedor principal */
    .app-container {
      justify-content: flex-start;
      align-items: center;
      padding-top: 0.5rem;
      height: 100vh;
    }

    /* TOP SECTION - Stack vertical */
    .top-section {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
      width: 95%;
      max-width: 380px;
      height: calc(100vh - 60px);
      padding: 0.8rem;
      margin-bottom: 5rem;
      border-radius: 1rem;
    }

    /* PLAYER PANEL - Arriba, full width */
    .player-panel {
        padding: 0.8rem;
        gap: 0.6rem;
        width: 100%;
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .player-panel h2 {
      font-size: 1.1rem;
      margin-bottom: 0.4rem;
      display: none; /* Ocultar título para más espacio */
    }

    .player-panel p{
        display: none;
    }

    /* PLAYER CONTROLS - Vertical (prev, play, next en columna) */
    .player-controls {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.4rem;
        margin: 0.4rem 0;
        width: 100%;
    }

    /* Botones prev/next */
    .player-controls button {
        width: 48px;
        height: 48px;
        font-size: 1rem;
        border-radius: 50%;
        flex-shrink: 0;
        padding: 0;
        border: 1px solid var(--btn-play-border);
    }

    /* Play button GRANDE en el centro */
    .play-btn {
        width: 88px !important;
        height: 88px !important;
        font-size: 2rem !important;
        margin: 0.2rem 0 !important;
    }

    /* PLAYER ACTIONS - Vertical (stacked) */
    .player-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.4rem;
        width: 100%;
    }

    .player-actions button {
        padding: 0.7rem;
        font-size: 0.8rem;
        font-weight: 500;
        border-radius: 0.6rem;
        text-align: center;
        width: 100%;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .player-panel p{
        display: none;
    }

    /* AMBIENT PANEL - Debajo, full width */
    .ambient-panel {
        padding: 0.6rem;
        max-height: 350px;
        width: 100%;
        order: 2;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 700px;
    }

    .ambient-panel h3 {
       display: none;
    }

    /* SOUND GRID - Una columna vertical */
    .sound-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        overflow: visible;
        height: auto;
        padding: 0;
        margin: 0;
        align-items: stretch;
    }

    .sound-item {
        padding: 0.6rem;
        min-width: unset;
        flex-shrink: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        text-align: center;
    }

    /* ICON - Centrado */
    .icon {
        width: 56px;
        height: 56px;
        margin: 0 auto;
        display: block;
        flex-shrink: 0;
    }

    .sound-item p {
      font-size: 0.8rem;
        margin-bottom: 0;
        line-height: 1.2;
        margin: 0;
    }

    /* SLIDERS - Full width en cada item */
    input[type="range"] {
        width: 100%;
        height: 3px;
        margin: 0;
    }

    /* BOTTOM BAR - Fijo en base */
    .bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.6rem 1rem;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        border-top: 1px solid var(--border);
    }

    .bottom-bar label {
        font-size: 0.7rem;
        gap: 0.4rem;
        white-space: nowrap;
    }

    .bottom-bar input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    /* MODAL - Adaptado a 400px */
    .modal-content {
        width: 92%;
        max-width: 360px;
        padding: 1.2rem;
        max-height: 85vh;
        border-radius: 1rem;
        background: var(--bg-page);
    }

    .modal-header {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-right: 2rem;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    /* GALLERY */
    .gallery {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .gallery-item {
        aspect-ratio: 16/9;
        border-radius: 0.6rem;
    }

    /* UPLOAD AREA */
    .upload-area {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
        border-radius: 0.6rem;
    }

    .upload-area p {
        font-size: 0.8rem;
    }

    /* EFFECT GROUPS */
    .effect-group {
        margin-bottom: 1rem;
    }

    .effect-label {
        font-size: 0.8rem;
    }

    .effect-value {
        font-size: 0.7rem;
    }

    /* TIMER MODAL */
    .timer-display {
        font-size: 2.5rem;
        margin: 1.5rem 0;
    }

    .timer-inputs {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .time-input-group label {
        font-size: 0.7rem;
    }

    .time-input-group input {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .timer-buttons {
        gap: 0.8rem;
    }

    .timer-buttons button {
        padding: 0.7rem;
        font-size: 0.85rem;
        border-radius: 0.6rem;
    }

    /* TOAST */
    .toast {
        bottom: 70px;
        right: 0.5rem;
        left: 0.5rem;
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }

    .video-gallery {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
  
    .video-section {
        margin-bottom: 1.5rem;
    }
  
    .play-icon {
        font-size: 1.8rem;
    }
  
    .video-item.selected .play-icon {
        font-size: 2rem;
    }

    .div-logo {
      display: none;
    }
}

/* ============================================
   RESPONSIVE: 900x600 to 600x600 (Pantalla cuadrada)
   ============================================ */
@media (min-aspect-ratio: 1/1.5) and (max-width: 900px) {
    .app-container {
        height: 100vh;
    }

    .top-section {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 60px;
        width: 95%;
        max-width: 100%;
        padding: 1rem;
        border-radius: 1rem;
    }

    /* PLAYER PANEL - Compacto */
    .player-panel {
        padding: 0.6rem;
        gap: 0.4rem;
        width: 100%;
    }

    .player-panel h2 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
        font-weight: 600;
    }

    .player-panel p {
        display: none;
    }

    /* PLAYER CONTROLS - Horizontal compacto */
    .player-controls {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0.6rem;
        margin: 0.5rem 0;
        width: 100%;
    }

    .player-controls button {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
        padding: 0;
    }

    .play-btn {
        width: 72px !important;
        height: 72px !important;
        font-size: 1.8rem !important;
        margin: 0 !important;
    }

    /* PLAYER ACTIONS - Grid 3 columnas */
    .player-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        margin-top: 0.4rem;
        width: 100%;
    }

    .player-actions button {
        padding: 0.5rem;
        font-size: 0.75rem;
        min-height: 36px;
        font-weight: 500;
    }

    /* AMBIENT PANEL - Scroll horizontal */
    .ambient-panel {
        padding: 0;
        width: 100%;
        max-height: 120px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .ambient-panel h3 {
        display: none;
    }

    /* SOUND GRID - Horizontal scroll */
    .sound-grid {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.5rem 0.5rem;
        width: 100%;
        min-width: min-content;
    }

    .sound-item {
        padding: 0;
        flex-shrink: 0;
        width: 90px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
    }

    .icon {
        width: 50px;
        height: 50px;
        margin: 0;
    }

    .sound-item p {
        font-size: 0.7rem;
        margin: 0;
        line-height: 1;
    }

    input[type="range"] {
        width: 85px;
        height: 3px;
    }

    /* BOTTOM BAR */
    .bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.5rem 1rem;
        height: 50px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.8rem;
        border-top: 1px solid var(--border);
    }

    .div-logo {
        display: none;
    }

    .footer-btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.75rem !important;
        min-height: auto !important;
        height: 36px;
    }

    .footer-btn span {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

    .bottom-bar label {
        font-size: 0.7rem;
        white-space: nowrap;
        display: flex;
        gap: 0.3rem;
        align-items: center;
    }

    .bottom-bar input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   Altura constrained (max-height: 650px)
   ============================================ */
@media (max-height: 650px) and (min-aspect-ratio: 1/1.2) {
    .app-container {
        height: 100vh;
    }

    .top-section {
        margin-bottom: 60px;
        padding: 0.8rem;
    }

    .player-panel {
        padding: 0.5rem;
        gap: 0.3rem;
    }

    .player-panel h2 {
        font-size: 1rem;
        margin: 0;
    }

    .player-panel p{
        display: none;
    }

    .player-controls {
        gap: 0.5rem;
        margin: 0.3rem 0;
    }

    .player-controls button {
        width: 40px;
        height: 40px;
    }

    .play-btn {
        width: 64px !important;
        height: 64px !important;
        font-size: 1.6rem !important;
    }

    .player-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
        margin-top: 0.3rem;
    }

    .player-actions button {
        padding: 0.4rem;
        font-size: 0.7rem;
        min-height: 32px;
    }

    .ambient-panel{
        max-height: 500px;
    }
}

/* ============================================
   EXTRA: 320px (Ultra-pequeño)
   ============================================ */

@media (min-width: 240px) and (max-width: 320px) {
    .app-container {
        padding-top: 0.3rem;
        height: 100vh;
    }

    .top-section {
        height: calc(100vh - 55px);
        padding: 0;
    }

    .player-panel {
        padding: 0.6rem;
        gap: 0.4rem;
    }

    .player-panel h2 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        display: none;
    }
    
    .player-panel p{
        display: none;
    }


    .player-controls {
        gap: 0.3rem;
        margin: 0.3rem 0;
    }

    .player-controls button {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    .play-btn {
        width: 80px !important;
        height: 80px !important;
        font-size: 1.8rem !important;
    }

    .player-actions {
        gap: 0.4rem;
        margin-top: 0.3rem;
        padding: 0 0.6rem;
    }

    .player-actions button {
        padding: 0.6rem;
        font-size: 0.75rem;
        min-height: 38px;
    }

    .ambient-panel {
        max-height: 700px;
        padding: 0.4rem;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .player-panel p{
        display: none;
    }

    .sound-grid {
        gap: 0.8rem;
    }

    .sound-item {
        padding: 0.5rem;
        gap: 0.3rem;
    }

    .icon {
        width: 52px;
        height: 52px;
    }

    .sound-item p {
        font-size: 0.75rem;
    }

    .bottom-bar {
        height: 55px;
        padding: 0.5rem 0.8rem;
    }

    .bottom-bar label {
        font-size: 0.65rem;
        gap: 0.3rem;
    }

    .bottom-bar input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }

    .div-logo {
      display: none;
    }
}
/* ============================================
   RESPONSIVE: 401px–600px Portrait
   Layout: controles arriba fijos + grid 2 col
   que expande para llenar el alto disponible.
   Target principal: ~532×800 (portrait mobile)
   ============================================ */
@media (min-width: 401px) and (max-width: 600px) {
    .top-section{
        margin-top: 2rem;
    }

    /* App container: columna que ocupa toda la pantalla */
    .app-container {
        justify-content: flex-start;
        align-items: center;
        padding-top: 0.5rem;
        height: 100vh;
        overflow: hidden;
    }

    /* TOP SECTION: columna flex que llena el espacio entre
       el top padding y el bottom bar (50px) */
    .top-section {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 95%;
        max-width: 580px;
        height: calc(90vh - 60px);
        margin-bottom: 60px;
        padding: 0;
        border-radius: 1rem;
    }

    /* ── PLAYER PANEL ──
       flex-shrink: 0 → tamaño fijo, no cede espacio al grid */
    .player-panel {
        flex-shrink: 0;
        padding: 0.7rem 1rem 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        width: 100%;
        order: 1;
    }

    .player-panel h2 {
        font-size: 1rem;
        margin-bottom: 0;
        letter-spacing: 0.5px;
    }

    .player-panel p {
        display: none;
    }

    /* Controles de reproducción: horizontal centrado */
    .player-controls {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1.2rem;
        margin: 0.3rem 0;
        width: 100%;
    }

    .player-controls button {
        width: 46px;
        height: 46px;
        font-size: 1rem;
        border-radius: 50%;
        padding: 0;
        flex-shrink: 0;
    }

    .play-btn {
        width: 76px !important;
        height: 76px !important;
        font-size: 1.7rem !important;
        margin: 0 !important;
    }

    /* Timer / Background / Mute → 3 col, compactos */
    .player-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        margin-top: 0.3rem;
        width: 100%;
    }

    .player-actions button {
        padding: 0.45rem 0.3rem;
        font-size: 0.75rem;
        min-height: 34px;
        font-weight: 500;
    }

    /* ── AMBIENT PANEL ──
       flex: 1 → absorbe todo el alto restante
       overflow-y: auto → scroll vertical si hay muchos sonidos */
    .ambient-panel {
        flex: 1;
        min-height: 150px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0.6rem 0.6rem 0.4rem;
        width: 100%;
        order: 2;
        scrollbar-width: thin;
        scrollbar-color: var(--bg-track) transparent;
    }

    .ambient-panel h3 {
        display: none;
    }

    /* SOUND GRID: 2 columnas que llenan el ancho */
    .sound-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 0;
    }

    /* Cada sound item: horizontal (icono | label + slider)
       para maximizar info visible por fila */
    .sound-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.6rem;
        border-radius: 0.6rem;
        width: 100%;
        min-width: 0;
    }

    .icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        margin: 0;
    }

    /* Columna derecha del sound item: nombre + slider */
    .sound-item > *:not(.icon) {
        min-width: 0;
    }

    .sound-item p {
        font-size: 0.68rem;
        margin: 0 0 0.25rem;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    input[type="range"] {
        width: 100%;
        height: 3px;
        margin: 0;
    }

    /* ── BOTTOM BAR ── */
    .bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.5rem 1rem;
        height: 50px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.8rem;
        border-top: 1px solid var(--border);
    }

    .div-logo {
        display: none;
    }

    .footer-btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.75rem !important;
        min-height: auto !important;
        height: 36px;
    }

    .bottom-bar label {
        font-size: 0.72rem;
        white-space: nowrap;
        display: flex;
        gap: 0.3rem;
        align-items: center;
    }

    .bottom-bar input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}


/* ============================================
   MORE SOUNDS — BUTTON (below sound-grid)
   ============================================ */

.more-sounds-wrapper {
    width: 100%;
    padding: 0.8rem 0.5rem 0.5rem;
    flex-shrink: 0;
}

.more-sounds-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: transparent;
    border: 1.5px dashed var(--border);
    border-radius: 0.8rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.more-sounds-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-track);
}

.more-sounds-btn:active {
    transform: scale(0.99);
}

/* ============================================
   MORE SOUNDS — MODAL OVERRIDES
   ============================================ */

.more-sounds-modal-content {
    max-width: 540px;
}

.more-sounds-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ============================================
   MORE SOUNDS — PREVIEW GRID
   ============================================ */

.more-sounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.8rem;
}

/* Inherits .sound-item base; overrides for preview context */
.preview-sound-item {
    padding: 1rem 0.7rem 0.8rem;
    background: var(--bg-track);
    border-radius: 0.8rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.preview-sound-item:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.preview-icon {
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto 0.5rem !important;
    opacity: 0.75;
}

/* ============================================
   MORE SOUNDS — LISTEN BUTTON
   ============================================ */

.listen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    background: var(--btn-play);
    border: 1px solid var(--btn-play-border);
    border-radius: 2rem;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    white-space: nowrap;
}

.listen-btn:hover {
    background: var(--btn-play-h);
    transform: scale(1.04);
}

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

/* Active/playing state */
.listen-btn.listening {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-page);
    animation: pulse-listen 1.8s ease-in-out infinite;
}

@keyframes pulse-listen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent), 0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(0,0,0,0); }
}

/* ============================================
   MORE SOUNDS — SUBSCRIBE SECTION
   ============================================ */

.more-sounds-subscribe {
    border-top: 1px solid var(--border);
    padding-top: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.more-sounds-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.more-sounds-email-row {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}

.more-sounds-email-input {
    flex: 1;
    background: var(--bg-track);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.65rem 0.9rem;
    border-radius: 0.7rem;
    font-size: 0.88rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

.more-sounds-email-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.more-sounds-email-input:focus {
    border-color: var(--accent);
    background: var(--bg-track-active);
}

.more-sounds-submit-btn {
    background: var(--accent);
    color: var(--bg-page);
    border: none;
    padding: 0.65rem 1.2rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.more-sounds-submit-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.more-sounds-submit-btn:active {
    transform: scale(0.98);
}

/* ============================================
   MORE SOUNDS — RESPONSIVE: 401-600px
   In the portrait mobile layout the grid switches
   to a compact 2-column horizontal row.
   ============================================ */

@media (min-width: 401px) and (max-width: 600px) {
    .more-sounds-wrapper {
        padding: 0.5rem 0;
    }

    .more-sounds-btn {
        font-size: 0.78rem;
        padding: 0.55rem 0.8rem;
        border-radius: 0.6rem;
    }

    .more-sounds-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .more-sounds-email-row {
        flex-direction: column;
    }

    .more-sounds-submit-btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .more-sounds-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .more-sounds-email-row {
        flex-direction: column;
    }

    .more-sounds-submit-btn {
        width: 100%;
    }
}