:root {
    --bg-black: #000000;
    --bg-dark: #121212;
    --bg-card: #181818;
    --bg-card-hover: #282828;
    --text-white: #ffffff;
    --text-grey: #a7a7a7;
    --accent: #00ffcc;
    --lime: #ccff00;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 72px;
    --player-height: 90px;
    --bottom-nav-height: 0px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Square Sans Text', 'Square Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* SCROLL */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* MODO EMBED */
body.embed-mode .sidebar, 
body.embed-mode .top-bar, 
body.embed-mode .player-bar,
body.embed-mode .view-section {
    display: none !important;
}
body.embed-mode #full-player {
    top: 0 !important;
    z-index: 9999;
    display: flex !important;
}
body.embed-mode .fp-minimize {
    display: none;
}

/* --- LAYOUT --- */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - var(--player-height));
}

/* SIDEBAR */
.sidebar { 
    width: var(--sidebar-width); 
    background-color: var(--bg-black); 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    flex-shrink: 0; 
    z-index: 20; 
    transition: width 0.3s ease;
    position: relative;
}

/* SIDEBAR COLLAPSED STATE */
.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
    padding: 20px 10px;
}
.sidebar.collapsed .logo-full {
    display: none !important;
}
.sidebar.collapsed .logo-icon-only { 
    display: block !important;
    margin: 0 auto;
    width: 40px;
    height: 40px; 
    opacity: 1;
    transition: opacity 0.3s ease;
}
.sidebar.collapsed .logo-fallback {
    display: none !important;
}
.sidebar.collapsed .nav-links li a span {
    display: none;
    opacity: 0;
}
.sidebar.collapsed .nav-links li a {
    justify-content: center;
    padding: 10px 0;
}
.sidebar.collapsed .nav-links li a i {
    margin: 0;
    font-size: 22px;
}

/* HEADER MARCA & LOGO CONTENEDOR */
.brand-header {
    margin-bottom: 20px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
}

.logo-container { 
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%; 
    position: relative;
    border-radius: 8px;
    transition: 0.2s;
}

.sidebar:not(.collapsed) .logo-container:hover .logo-full {
    filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.8)); 
    transition: filter 0.3s ease;
}

/* BOTÓN TOGGLE (|< y >|) COMPORTAMIENTO EXACTO */
.sidebar-toggle-btn {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    cursor: ew-resize; /* Puntero <-> */
}

.sidebar-toggle-btn:hover {
    opacity: 1;
    text-shadow: 0 0 8px white;
}

.expanded-icon {
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: -1px;
}

.collapsed-icon {
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: -1px;
}

.sidebar:not(.collapsed) .expanded-icon {
    display: inline-block;
}
.sidebar:not(.collapsed) .collapsed-icon {
    display: none;
}

/* ESTADO CONTRAIDO */
.sidebar.collapsed .sidebar-toggle-btn {
    opacity: 0; 
    right: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    pointer-events: none;
    width: 100%;
    height: 100%;
}
.sidebar.collapsed .expanded-icon {
    display: none;
}
.sidebar.collapsed .collapsed-icon {
    display: inline-block;
}

.sidebar.collapsed .logo-container {
    cursor: ew-resize; 
} 
.sidebar.collapsed .logo-container:hover .logo-icon-only {
    opacity: 0; 
}
.sidebar.collapsed .logo-container:hover .sidebar-toggle-btn {
    opacity: 1; 
    pointer-events: auto;
}

.logo-img {
    max-height: 100%;
    max-width: 150px;
    object-fit: contain;
}
.logo-icon-only {
    max-height: 40px;
    max-width: 40px;
    display: none;
    object-fit: contain;
}

.logo-fallback {
    font-size: 24px;
    font-weight: bold;
    display: none;
    align-items: center;
    gap: 10px;
    cursor: default;
    user-select: none;
    color: white;
    white-space: nowrap;
}
.logo-fallback i {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.nav-links li a {
    text-decoration: none;
    color: var(--text-grey);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
}
.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--text-white);
}
.nav-links li a i {
    font-size: 18px;
    width: 25px;
    text-align: center;
}

/* CONTENIDO */
.content {
    flex: 1;
    background-color: var(--bg-dark);
    padding: 20px 30px;
    overflow-y: auto;
    background: linear-gradient(180deg, #222 0%, var(--bg-dark) 40%);
    position: relative;
    padding-bottom: 120px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 300; 
    position: relative;
}

.mobile-logo-container {
    display: none;
}

.nav-btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    margin-right: 15px;
    background-color: #000;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.nav-btn-icon.mode-home i {
    color: var(--accent);
}
.nav-btn-icon.mode-back i {
    color: white;
}
.nav-btn-icon:hover {
    transform: scale(1.1);
    background-color: #222;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}
.search-bar {
    background: #333;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
    transition: 0.3s;
}
.search-bar input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 100%;
}

/* PERFIL DROPDOWN */
.profile-container {
    position: relative;
}
.profile-icon {
    width: 35px;
    height: 35px;
    background: var(--text-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-black);
    cursor: pointer;
    transition: 0.2s;
}

.profile-dropdown { 
    position: absolute;
    top: 45px;
    right: 0; 
    background-color: #222;
    width: 250px; 
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
    display: none;
    flex-direction: column; 
    z-index: 2100;
    border: 1px solid #333;
    overflow: hidden;
}
.profile-dropdown.show {
    display: flex;
}

.menu-view {
    list-style: none;
    transition: transform 0.3s ease;
    width: 100%;
    padding: 10px 0;
}
.menu-view.hidden {
    display: none;
}

.profile-dropdown li {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ddd;
    transition: 0.2s;
}
.profile-dropdown li:hover {
    background-color: #333;
    color: white;
}
.logout-item {
    color: #ff5555 !important;
    border-top: 1px solid #333;
    margin-top: 5px;
}
.mobile-close-btn {
    display: none;
}

/* HERO BANNER */
.hero-banner {
    background-color: #000;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #222;
    transition: all 0.3s ease;
}
.hero-banner.hidden-search {
    display: none;
}
.hero-banner::before {
    content: "↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    color: #222;
    font-size: 20px;
    line-height: 30px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    word-break: break-all;
    letter-spacing: 15px;
}
.hero-content {
    z-index: 2;
    max-width: 50%;
}
.hero-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.1;
    color: white;
}
.hero-content p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
    max-width: 90%;
}
.hero-buttons {
    display: flex;
    gap: 15px;
}
.btn-listen {
    background-color: var(--lime);
    color: black;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}
.btn-listen:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}
.btn-dismiss {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}
.btn-dismiss:hover {
    background-color: #333;
}
.hero-visual {
    text-align: right;
    z-index: 1;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.hero-text-line {
    font-size: 42px;
    font-weight: 400;
    line-height: 0.9;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-bold {
    font-weight: 800;
}
.hero-lime {
    color: var(--lime);
}

/* GRID */
h2 {
    margin-bottom: 20px;
    margin-top: 30px;
    font-size: 22px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-hidden {
    display: none !important;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.card {
    background-color: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    position: relative;
}
.card:hover {
    background-color: var(--bg-card-hover);
}
.card.track-unavailable {
    opacity: 0.5;
    filter: grayscale(80%);
}
.card.track-unavailable:hover {
    background-color: var(--bg-card);
    cursor: not-allowed;
}
.card.track-unavailable .play-btn-hover {
    display: none !important;
}
.card-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.card-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-desc {
    color: var(--text-grey);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.play-btn-hover {
    position: absolute;
    right: 20px;
    bottom: 80px;
    background-color: var(--accent);
    color: black;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transform: translateY(10px);
    z-index: 5;
}
.card:hover .play-btn-hover {
    opacity: 1;
    transform: translateY(0);
}
.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 18px;
    opacity: 0;
    transition: 0.2s;
    z-index: 6;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}
.card:hover .fav-btn {
    opacity: 1;
}
.fav-btn.active {
    color: var(--accent);
    opacity: 1;
}
.fav-btn:hover {
    transform: scale(1.2);
}
.empty-message {
    color: var(--text-grey);
    font-style: italic;
    grid-column: 1 / -1;
    padding: 20px;
    text-align: center;
    border: 1px dashed #333;
    border-radius: 10px;
    width: 100%;
}

/* MINI PLAYER */
.player-bar { 
    height: var(--player-height);
    background-color: #0d0d0d;
    border-top: 1px solid #282828; 
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
    transition: bottom 0.3s;
    cursor: pointer;
}
.song-info {
    display: flex;
    align-items: center;
    width: 25%;
    gap: 15px;
}
.song-info img {
    width: 55px;
    height: 55px;
    border-radius: 4px;
    object-fit: cover;
}
.song-text {
    overflow: hidden;
}
.song-text h4 {
    font-size: 14px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-text p {
    font-size: 11px;
    color: var(--text-grey);
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 45%;
    gap: 5px;
}
.control-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
}
.control-buttons i {
    color: var(--text-grey);
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
}
.control-buttons i:hover {
    color: white;
}
.play-pause-btn {
    background: white;
    color: black !important;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    cursor: pointer;
    transition: 0.2s;
}
.play-pause-btn:hover {
    transform: scale(1.05);
}
.play-pause-btn i {
    color: black !important;
    transition: none;
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-grey);
}

input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: #444;
}
input[type="range"]::-webkit-slider-thumb { 
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    background: white;
    border-radius: 50%;
    margin-top: -4px; 
    opacity: 1;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); 
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-controls {
    width: 30%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    color: var(--text-grey);
}
.bitrate-badge {
    background: #333;
    color: #ccc;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: default;
    border: 1px solid #444;
}
.share-icon {
    cursor: pointer;
    transition: 0.2s;
    font-size: 16px;
}
.share-icon:hover {
    color: var(--accent);
}
.vol-container-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100px;
}
.vol-container-mini input[type=range] {
    flex: 1;
    height: 4px;
}

.volume-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.vol-popup {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 120px;
    background: #222;
    border-radius: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid #333;
    z-index: 200;
    padding: 10px 0;
}
.vol-popup.show {
    display: flex;
}
.vol-popup input[type=range] {
    width: 100px;
    height: 4px;
    transform: rotate(-90deg);
    transform-origin: center;
}
.cast-connected {
    color: var(--accent) !important;
    text-shadow: 0 0 10px var(--accent);
}

/* FULL PLAYER */
.full-player {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #222 0%, #000 100%);
    z-index: 500;
    transition: top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}
.full-player.active {
    top: 0;
}
.fp-header {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    align-items: center;
}
.fp-minimize {
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    padding: 10px;
}
.fp-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.cast-btn-fp-top {
    display: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}
.cast-btn-fp-top:hover {
    color: var(--accent);
}
.fp-art-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.fp-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fp-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
}
.fp-info p {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 10px;
}
#fp-bitrate {
    margin-top: 5px;
    margin-bottom: 30px;
    display: inline-block;
}
.fp-controls {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Controles Principales Full Player */
.fp-main-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 28px;
    color: white;
    position: relative;
    width: 100%;
}
.fp-main-controls .fa-list-ul {
    position: absolute;
    right: 0px;
    font-size: 20px;
    color: var(--text-grey);
    cursor: pointer;
    opacity: 0.8;
}
.fp-play-btn {
    width: 70px;
    height: 70px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
}
.fp-play-btn:hover {
    transform: scale(1.1);
}
.fp-play-btn i {
    color: black !important;
}

/* QUEUE */
.queue-panel {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 60%;
    background: #111;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transition: bottom 0.3s ease;
    z-index: 600;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #333;
}
.queue-panel.open {
    bottom: 0;
}
.queue-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
.queue-list {
    overflow-y: auto;
    flex: 1;
}
.queue-item {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
    border-bottom: 1px solid #222;
    cursor: pointer;
}
.queue-item:hover {
    background: #222;
}
.queue-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}
.queue-text h5 {
    margin: 0;
    font-size: 14px;
    color: white;
}
.queue-text p {
    margin: 0;
    font-size: 12px;
    color: grey;
}

/* --- SETTINGS NATIVE VIEW (Integrado en web) --- */
#view-settings {
    padding-top: 10px;
}
.settings-layout {
    display: flex;
    gap: 40px;
    width: 100%;
}
.settings-sidebar-nav {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.tab-pill {
    padding: 12px 15px;
    text-align: left;
    background: transparent;
    color: #a7a7a7;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
}
.tab-pill:hover, .tab-pill.active {
    background: #222;
    color: white;
}
.settings-content-area {
    flex: 1;
    max-width: 700px;
}
.settings-section {
    display: none;
    animation: fadeIn 0.3s;
}
.settings-section.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Componentes de Settings (Desktop PC Base) */
.lang-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}
.lang-text .setting-label {
    font-size: 16px;
    font-weight: 600;
    color: white;
}
.lang-text .setting-desc {
    display: none; /* Oculto en PC */
}
.custom-select {
    width: 220px;
    padding: 12px;
    background: #222;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.toggle-box {
    background: #181818;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.toggle-box .setting-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: white;
}
.toggle-box .setting-desc {
    font-size: 13px;
    color: #a7a7a7;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: white;
}
input:checked + .slider:before {
    transform: translateX(22px);
    background-color: black;
}

.multi-link-box {
    margin-top: 30px;
    border-top: 1px solid #282828;
}
.multi-link-box .setting-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #282828;
    cursor: pointer;
    color: white;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s;
}
.multi-link-box .setting-item-link:hover {
    color: var(--accent);
}

.about-box {
    background: #111;
    border: 1px solid #333;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}
.about-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}
.about-ver {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}
.about-date {
    color: #666;
    font-size: 12px;
}
.legal-text {
    font-family: monospace;
    color: #888;
    font-size: 11px;
    line-height: 1.6;
    background: #000;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #222;
    height: 200px;
    overflow-y: auto;
    text-align: left;
}

/* PANEL DE PRIVACIDAD (Deslizante Izquierdo) */
.privacy-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2999;
    display: none;
    opacity: 0;
    transition: 0.3s;
    backdrop-filter: blur(2px);
}
.privacy-overlay.show {
    display: block;
    opacity: 1;
}
.privacy-panel {
    position: fixed;
    top: 0; left: -100%; width: 450px; max-width: 90%; height: 100%;
    background: #181818;
    z-index: 3000;
    transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid #333;
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
}
.privacy-panel.open {
    left: 0;
}
.privacy-header {
    padding: 30px 25px 15px;
    position: relative;
}
.privacy-header h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    border: none;
    padding: 0;
    display: block;
    color: white;
}
.privacy-close {
    position: absolute;
    top: 25px;
    right: 20px;
    cursor: pointer;
    color: #aaa;
    font-size: 20px;
}
.privacy-close:hover {
    color: white;
}
.privacy-body {
    padding: 0 25px;
    flex: 1;
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
}
.privacy-body p {
    margin-bottom: 15px;
}
.privacy-opt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #282828;
    color: white; /* Ajuste genérico para todo .privacy-opt */
}
.privacy-opt span {
    font-weight: bold;
    color: white;
    font-size: 14px;
}
.always-active {
    color: #888 !important;
    font-size: 12px !important;
}
.privacy-footer {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    background: #121212;
    border-top: 1px solid #222;
}
.btn-privacy {
    flex: 1;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    font-size: 14px;
}
.btn-privacy.reject {
    background: white;
    color: black;
}
.btn-privacy.confirm {
    background: white;
    color: black;
}
.btn-privacy:hover {
    transform: scale(1.05);
}

/* SHORTCUTS MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.modal.open {
    display: flex;
}
.modal-content {
    background-color: #000;
    border: 1px solid #333;
    width: 80%;
    max-width: 900px;
    height: auto;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
}
.modal-body {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    position: relative;
    color: white; /* Añadido color por defecto */
}
.modal-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
}
.close-modal:hover {
    color: white;
}
.shortcut-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
}
.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}
.shortcut-label {
    font-size: 14px;
    font-weight: 500;
    color: white;
}
.shortcut-keys {
    display: flex;
    gap: 5px;
}
.kbd {
    background: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid #444;
    color: white;
}

/* SHARE MODAL */
#share-modal .modal-content {
    height: auto;
    max-width: 400px;
    padding: 0;
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.share-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f1f1f;
    color: white;
}
.share-header i {
    font-size: 18px;
    color: #ccc;
}
.share-header i:hover {
    color: white;
}
.share-subtitle {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    font-weight: normal;
}
.share-options {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}
.share-btn {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: 0.2s;
    color: white;
    border: none;
    background: none;
    font-size: 15px;
    width: 100%;
    text-align: left;
    font-weight: 600;
}
.share-btn:hover {
    background-color: #333;
}
.share-btn i {
    width: 20px;
    text-align: center;
    color: #ccc;
    font-size: 18px;
}

/* EMBED MODAL (REDISEÑADO TIPO TIDAL) */
#embed-modal .modal-content {
    height: auto;
    max-width: 550px;
    padding: 0;
    background: #181818;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: none;
}
.embed-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    background: transparent;
    border-bottom: none;
    color: white;
}
.embed-body {
    padding: 0 25px 25px;
    display: flex;
    flex-direction: column;
}

/* Contenedor Player Vista Previa */
.ep-container {
    background: #000;
    border-radius: 12px;
    display: flex;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    align-items: stretch;
    border: 1px solid #222;
}
.ep-art {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.ep-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
}
.ep-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.ep-title-artist {
    display: flex;
    flex-direction: column;
}
.ep-title-artist h4 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.ep-explicit {
    background: #444;
    color: #ddd;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.ep-title-artist p {
    font-size: 13px;
    color: #a7a7a7;
    font-weight: 600;
    margin: 0;
}
.ep-logo-area {
    color: white;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ep-logo-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.ep-player-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.ep-curr, .ep-tot {
    font-size: 11px;
    color: #888;
    font-family: monospace;
}
.ep-progress-line {
    flex: 1;
    height: 3px;
    background: #333;
    border-radius: 2px;
    position: relative;
}
.ep-progress-fill {
    position: absolute;
    left: 0; top: 0; height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
}
.ep-dots {
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    transition: 0.2s;
    margin-left: 5px;
}
.ep-dots:hover { color: white; }
.ep-btn-play {
    width: 32px;
    height: 32px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
    flex-shrink: 0;
}
.ep-btn-play:hover { transform: scale(1.05); }

/* MENÚ CRISTALINO SOBRE REPRODUCTOR EMBED */
.ep-glass-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ep-glass-menu.show {
    display: flex;
    opacity: 1;
}
.glass-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}
.glass-menu-item:hover {
    transform: scale(1.1);
    color: var(--accent);
}
.glass-menu-item i {
    font-size: 26px;
}
.glass-menu-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.glass-menu-close:hover {
    color: white;
    background: rgba(0,0,0,0.8);
}

/* Textarea Code Box */
.embed-code-wrapper {
    background: #000;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #222;
    position: relative;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}
.embed-code-area {
    width: 100%;
    background: transparent;
    border: none;
    color: #ccc;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.5;
    resize: none;
    outline: none;
    height: 100px;
}
.btn-copy-embed {
    align-self: flex-end;
    margin-top: 10px;
    background: white;
    color: black;
    font-weight: bold;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}
.btn-copy-embed:hover {
    transform: scale(1.05);
}

.embed-footer-legal {
    font-size: 12px;
    color: #888;
    font-family: 'Square Sans Text', 'Square Sans', 'Segoe UI', sans-serif;
}
.embed-footer-legal a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

/* ERROR TOAST */
.error-toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #444;
}
.error-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.btn-toast-close {
    background: #444;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}
.btn-toast-close:hover {
    background: #555;
}

/* UPDATE OVERLAY */
#update-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Square Sans Text', 'Square Sans', 'Segoe UI', sans-serif;
}
#update-overlay.active {
    display: flex;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.update-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}
.update-sub {
    font-size: 14px;
    color: #888;
}
.update-success {
    color: var(--lime);
    display: none;
    font-size: 40px;
    margin-bottom: 20px;
}

.view-section {
    display: block;
}
.hidden {
    display: none !important;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .sidebar {
        width: 200px;
    }
    .hero-text-line {
        font-size: 32px;
    }
}

@media (max-width: 850px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sidebar {
        display: none;
    }
    :root {
        --bottom-nav-height: 60px;
    }
    .sidebar.mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: var(--bottom-nav-height);
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        background-color: rgba(0,0,0,0.95);
        backdrop-filter: blur(10px);
        padding: 0;
        border-top: 1px solid #333;
        z-index: 200;
    }
    .sidebar.mobile-nav .logo-container {
        display: none;
    }
    .sidebar.mobile-nav .nav-links {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        margin: 0;
    }
    .sidebar.mobile-nav .nav-links li a {
        flex-direction: column;
        gap: 5px;
        font-size: 10px;
    }
    .brand-header {
        display: none;
    } 
    .player-bar {
        bottom: var(--bottom-nav-height);
        border-bottom: 1px solid #222;
    }
    .main-container {
        height: 100vh;
        padding-bottom: calc(var(--player-height) + var(--bottom-nav-height));
    }
}

@media (max-width: 600px) {
    .top-bar {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }
    .nav-arrows {
        display: none;
    }
    .mobile-logo-container {
        display: block;
        flex-shrink: 0;
    }
    .mobile-logo-img {
        width: 35px;
        height: 35px;
        object-fit: contain;
    }
    .user-actions {
        flex: 1;
        width: auto;
        justify-content: flex-end;
        gap: 10px;
    }
    .search-bar {
        width: 100%;
        flex: 1;
    }
    .profile-container {
        flex-shrink: 0;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .hero-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-visual {
        display: none;
    }
    .song-info {
        width: 50%;
    }
    .player-controls {
        width: auto;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: row;
    }
    .control-buttons {
        gap: 15px;
        pointer-events: auto;
    }
    .progress-container {
        display: none;
    }
    .volume-controls {
        display: none;
    }
    .play-pause-btn {
        width: 40px;
        height: 40px;
    }
    
    /* REPRODUCTOR FULL MOBILE */
    .fp-header {
        padding: 0 20px;
    }
    .fp-art-container {
        max-width: 280px;
    }
    .fp-info h1 {
        font-size: 22px;
    }
    .fp-main-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 15px;
        position: relative;
        gap: 0;
    }
    .fp-main-controls .fa-list-ul, .volume-wrapper {
        position: static !important;
        right: auto !important;
        left: auto !important;
    }
    .fp-main-controls i {
        font-size: 20px !important;
    }
    .fp-play-btn {
        width: 60px !important;
        height: 60px !important;
        font-size: 22px !important;
        flex-shrink: 0;
    }
    .fp-main-controls i.fa-backward-step, .fp-main-controls i.fa-forward-step {
        font-size: 26px !important;
    }
    .cast-btn-fp-top {
        display: inline-block;
        font-size: 20px;
        color: white;
    }
    .cast-btn-fp-bottom {
        display: none !important;
    }
    
    /* MOBILE PROFILE MENU */
    .profile-dropdown {
        position: fixed;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background-color: rgba(0,0,0,0.6);
        backdrop-filter: blur(2px);
        border: none;
        border-radius: 0;
        box-shadow: none;
        z-index: 2100;
        display: none;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        padding-bottom: 30px;
    }
    .profile-dropdown.show {
        display: flex;
    }
    .profile-dropdown ul {
        width: 92%;
        background-color: rgba(30,30,30,0.9);
        backdrop-filter: blur(20px);
        border-radius: 14px;
        padding: 0;
        margin-bottom: 10px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    .profile-dropdown li {
        justify-content: flex-start;
        font-size: 16px;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-weight: 500;
        color: #fff;
    }
    .profile-dropdown li:last-child {
        border-bottom: none;
    }
    .profile-dropdown li:hover {
        background-color: rgba(255,255,255,0.1);
    }
    .mobile-help-item {
        display: flex;
        justify-content: space-between !important;
        align-items: center;
        width: 100%;
    }
    .mobile-close-btn {
        display: block;
        width: 92%;
        padding: 16px;
        background-color: rgba(44,44,44, 0.95);
        color: white;
        text-align: center;
        border-radius: 14px;
        font-weight: bold;
        font-size: 16px;
        cursor: pointer;
        margin-bottom: 10px;
    }
    
    /* SETTINGS NATIVE MOBILE */
    .settings-layout {
        flex-direction: column;
        gap: 0;
    }
    .settings-sidebar-nav {
        flex-direction: row;
        border-bottom: 1px solid #222;
        width: 100%;
        padding-bottom: 0;
        margin-bottom: 20px;
        gap: 20px;
        overflow-x: auto;
    }
    .tab-pill {
        padding: 10px 0;
        border-radius: 0;
        text-align: center;
        width: auto;
        font-size: 16px;
    }
    .tab-pill.active {
        box-shadow: 0 2px 0 white;
        background: transparent;
    }
    .settings-content-area {
        padding: 0 10px;
    }
    
    .lang-row {
        flex-direction: column;
        align-items: flex-start;
        background: #1c1c1e;
        padding: 15px 20px;
        border-radius: 10px;
        border-bottom: none;
        gap: 10px;
        margin-bottom: 20px;
    }
    .lang-text .setting-desc {
        display: block;
        font-size: 13px;
        color: #888;
        margin-top: 5px;
    }
    .lang-select-wrap {
        width: 100%;
    }
    .custom-select {
        width: 100%;
        background: #2c2c2e;
        border: 1px solid #3c3c3e;
    }
    
    .toggle-box {
        background: #1c1c1e;
        border-radius: 10px;
        padding: 15px 20px;
        margin-bottom: 15px;
    }
    
    .multi-link-box {
        background: #1c1c1e;
        border-radius: 10px;
        padding: 0;
        overflow: hidden;
        margin-top: 30px;
        border: none;
    }
    .multi-link-box .setting-item-link {
        padding: 15px 20px;
        border-bottom: 1px solid #2c2c2e;
        margin: 0;
        font-size: 14px;
    }
    .multi-link-box .setting-item-link:last-child {
        border-bottom: none;
    }

    /* SHORTCUTS MODAL MOBILE FIX */
    #shortcuts-modal .modal-content {
        width: 90%;
        max-width: 400px;
        height: auto;
        padding: 25px;
        border-radius: 12px;
    }
    #shortcuts-modal .modal-body {
        padding: 0;
    }
    #shortcuts-modal .modal-title {
        font-size: 18px;
        margin-bottom: 20px;
        padding-left: 0;
        text-align: left;
    }
    #shortcuts-modal .close-modal {
        top: 15px;
        right: 15px;
    }
    .shortcut-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .shortcut-item {
        padding-bottom: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* EMBED MODAL MOBILE FIX */
    #embed-modal .modal-content {
        height: auto;
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        position: absolute;
        bottom: 0;
        width: 100%;
    }
    .ep-container {
        height: auto;
        padding: 10px;
    }
    .ep-art {
        width: 65px;
        height: 65px;
    }
}

/* --- VISTA PODCASTS (ESTILO SPOTIFY) --- */
.podcast-hero-bg {
    background: linear-gradient(180deg, #1e325c 0%, var(--bg-dark) 100%);
    padding: 40px 30px;
    display: flex;
    gap: 25px;
    align-items: flex-end;
    border-radius: 8px 8px 0 0;
}
.pc-hero-img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.pc-hero-info {
    display: flex;
    flex-direction: column;
}
.pc-label {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}
.pc-hero-info h1 {
    font-size: 65px;
    font-weight: 900;
    line-height: 1;
    color: white;
    margin-bottom: 15px;
    letter-spacing: -2px;
}
.pc-hero-info h2 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
    border: none;
    padding: 0;
}
.podcast-content-area {
    padding: 0 30px 40px 30px;
}
.pc-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0 30px 0;
}
.pc-btn-follow {
    background: transparent;
    border: 1px solid #777;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.pc-btn-follow:hover {
    border-color: white;
    transform: scale(1.05);
}
.pc-dots {
    font-size: 24px;
    color: #a7a7a7;
    cursor: pointer;
}
.pc-dots:hover { color: white; }
.pc-about h3, .pc-episodes-section h3 {
    font-size: 20px;
    color: white;
    margin-bottom: 15px;
    border: none;
    padding: 0;
}
.pc-about p {
    font-size: 15px;
    color: #a7a7a7;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 40px;
}

/* Filas de Episodios */
.episodes-list-container {
    display: flex;
    flex-direction: column;
}
.episode-row {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #282828;
    border-top: 1px solid transparent;
    transition: 0.2s;
    cursor: pointer;
}
.episode-row:hover {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 20px 10px;
}
.episode-row.track-unavailable {
    opacity: 0.4;
}
.episode-row.track-unavailable:hover {
    cursor: not-allowed;
    background: transparent;
}
.ep-row-img {
    width: 130px;
    height: 75px;
    border-radius: 8px;
    object-fit: cover;
}
.ep-row-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ep-row-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}
.ep-row-meta {
    font-size: 13px;
    color: #a7a7a7;
    font-weight: 600;
    margin-bottom: 10px;
}
.ep-row-desc {
    font-size: 14px;
    color: #a7a7a7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}
.ep-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}
.ep-row-date {
    font-size: 13px;
    color: white;
    font-weight: 600;
}
.ep-play-btn-list {
    width: 35px;
    height: 35px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.2s;
}
.episode-row:hover .ep-play-btn-list { transform: scale(1.05); }

/* Adaptación Mobile */
@media (max-width: 600px) {
    .podcast-hero-bg { flex-direction: column; align-items: center; text-align: center; }
    .pc-hero-info h1 { font-size: 40px; }
    .episode-row { flex-direction: column; gap: 10px; }
    .ep-row-img { width: 100%; height: auto; aspect-ratio: 16/9; }
}

/* Menú de Opciones del Podcast (Estilo Spotify Vertical) */
.podcast-options-menu {
    position: absolute;
    top: 100%;
    left: 80px;
    background: #282828;
    border-radius: 4px;
    width: 240px;
    box-shadow: 0 16px 24px rgba(0,0,0,0.5), 0 6px 8px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 100;
    border: 1px solid #3e3e3e;
    margin-top: 10px;
    padding: 5px 0;
}
.podcast-options-menu.show {
    display: flex;
}
.po-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.po-item {
    padding: 12px 15px;
    color: #e5e5e5;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
    position: relative;
}
.po-item:hover {
    background: #3e3e3e;
    color: white;
}
.po-item i {
    font-size: 16px;
    color: #aaa;
    width: 20px;
    text-align: center;
}
.po-item:hover i {
    color: white;
}
.po-item-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

/* El Submenú Flotante de Compartir */
.po-has-submenu {
    position: relative;
}
.po-submenu {
    position: absolute;
    top: -5px;
    left: 100%; /* Lo empuja hacia la derecha */
    background: #282828;
    border-radius: 4px;
    box-shadow: 0 16px 24px rgba(0,0,0,0.5);
    min-width: 220px;
    display: none; /* Oculto por defecto */
    z-index: 101;
    padding: 5px 0;
    list-style: none;
    border: 1px solid #3e3e3e;
}
.po-has-submenu:hover .po-submenu {
    display: block; /* Se muestra al pasar el mouse */
}

/* Vista Interna de Estrellas */
.po-rating-view {
    padding: 10px 15px 15px;
}
.po-rating-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    cursor: pointer;
    padding-bottom: 10px;
    border-bottom: 1px solid #3e3e3e;
    transition: 0.2s;
}
.po-rating-header:hover {
    color: var(--accent);
}
.po-rating-header i { font-size: 14px; color: #aaa; }
.po-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 24px;
    cursor: pointer;
}
.po-stars i {
    color: #555;
    transition: 0.2s;
}
.po-stars i.active {
    color: #f5c518;
}
.po-rating-label {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    display: block;
    margin-top: 12px;
}

/* Adaptación Mobile del Submenú */
@media (max-width: 600px) {
    .po-submenu {
        left: auto;
        right: 0;
        top: 100%;
    }
}