/* ===============================================
   MODAL PODCAST - VREYA
   Stili per modal serie podcast e episodi singoli
   =============================================== */

/* ===============================================
   MODAL SERIE PODCAST
   =============================================== */

#modalSeriePodcast .modal-content {
    max-width: 800px;
    max-height: 85vh;
}

/* Header con copertina grande */
.podcast-modal-header {
    position: relative;
    padding: 0;
    border-bottom: none;
    background: linear-gradient(to bottom, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
}

.podcast-cover-section {
    position: relative;
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.podcast-cover-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.podcast-cover-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
    border: 3px solid rgba(255,255,255,0.15);
}

/* Bottoni header flottanti */
.podcast-header-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.btn-like-series,
.btn-like-episode {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-like-series:hover,
.btn-like-episode:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #ef4444;
    color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
}

.btn-like-series.active,
.btn-like-episode.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    color: white;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.btn-like-series.active:hover,
.btn-like-episode.active:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
}

/* Animazione cuore al click */
@keyframes heartBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}

.btn-like-series.active .heart-icon,
.btn-like-episode.active .heart-icon {
    animation: heartBounce 0.5s ease;
}

.heart-icon {
    width: 16px;
    height: 16px;
    transition: all 0.2s ease;
}

.btn-like-series.active .heart-icon path,
.btn-like-episode.active .heart-icon path {
    fill: currentColor;
}

.modal-close-podcast {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.05);
    color: #6b7280;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close-podcast:hover {
    background: rgba(255, 255, 255, 1);
    color: #111827;
    transform: rotate(90deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Info serie sotto copertina */
.podcast-info-section {
    padding: 24px 32px;
    background: white;
    text-align: center;
}

.podcast-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.podcast-professional {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.podcast-professional a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.podcast-professional a:hover {
    color: var(--color-dark);
    text-decoration: underline;
}

.podcast-meta-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.meta-badge svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

/* Body della modal */
.podcast-modal-body {
    padding: 0;
}

/* Sezione descrizione */
.podcast-description-section {
    padding: 24px 32px;
    border-bottom: 1px solid #f3f4f6;
}

.podcast-description-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.podcast-description-text {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
    white-space: pre-wrap;
}

/* Tags */
.podcast-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.podcast-tag {
    padding: 4px 12px;
    background: #e8f5e9;
    color: #2E7D32;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

/* Lista episodi */
.podcast-episodes-section {
    padding: 24px 32px;
    max-height: 320px;
    overflow-y: auto;
}

.podcast-episodes-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
}

.podcast-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.podcast-episode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fafafa;
    border: 1.5px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.podcast-episode-item:hover {
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateX(4px);
}

.episode-play-icon {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.podcast-episode-item:hover .episode-play-icon {
    background: var(--color-dark);
    transform: scale(1.1);
}

.episode-play-icon svg {
    width: 16px;
    height: 16px;
    color: white;
    margin-left: 2px;
}

.episode-content {
    flex: 1;
    min-width: 0;
}

.episode-number-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-duration {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    flex-shrink: 0;
}

/* ===============================================
   MODAL EPISODIO SINGOLO (Più piccola)
   =============================================== */

#modalEpisodioPodcast .modal-content {
    max-width: 520px;
    max-height: 70vh;
}

/* Header episodio - più compatto */
.episode-modal-header {
    position: relative;
    padding: 0;
    border-bottom: none;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.episode-cover-section {
    position: relative;
    display: flex;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e5e7eb;
}

.episode-cover-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.episode-header-info {
    flex: 1;
    padding-left: 20px;
    min-width: 0;
}

.episode-number-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--color-primary);
    color: white;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.episode-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-modal-duration {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.episode-modal-duration svg {
    width: 14px;
    height: 14px;
}

/* Azioni episodio nella header */
.episode-header-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

/* Body episodio */
.episode-modal-body {
    padding: 24px;
}

.episode-description-section h4 {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.episode-description-text {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

/* Footer con CTA primaria */
.episode-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-play-episode {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e5631 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-play-episode:hover {
    background: linear-gradient(135deg, #1e5631 0%, #153f20 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
}

.btn-play-episode:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.btn-play-episode svg {
    width: 20px;
    height: 20px;
}

/* ===============================================
   SCROLLBAR CUSTOM
   =============================================== */

.podcast-episodes-section::-webkit-scrollbar {
    width: 8px;
}

.podcast-episodes-section::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.podcast-episodes-section::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.podcast-episodes-section::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 768px) {
    #modalSeriePodcast .modal-content {
        max-width: 95%;
        max-height: 90vh;
    }

    #modalEpisodioPodcast .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .podcast-cover-section {
        height: 200px;
    }

    .podcast-cover-image {
        width: 160px;
        height: 160px;
    }

    .podcast-info-section {
        padding: 20px;
    }

    .podcast-title {
        font-size: 20px;
    }

    .podcast-description-section,
    .podcast-episodes-section {
        padding: 20px;
    }

    .episode-cover-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .episode-cover-image {
        width: 100px;
        height: 100px;
    }

    .episode-header-info {
        padding-left: 0;
        padding-top: 16px;
    }

    .episode-modal-body {
        padding: 20px;
    }

    .btn-like-series,
    .btn-like-episode {
        padding: 6px 12px;
        font-size: 12px;
    }

    .btn-like-series span,
    .btn-like-episode span {
        display: none;
    }

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

@media (max-width: 480px) {
    .podcast-cover-section {
        height: 180px;
    }

    .podcast-cover-image {
        width: 140px;
        height: 140px;
    }

    .podcast-title {
        font-size: 18px;
    }

    .podcast-meta-badges {
        gap: 8px;
    }

    .meta-badge {
        font-size: 12px;
        padding: 4px 10px;
    }

    .episode-cover-image {
        width: 80px;
        height: 80px;
    }

    .episode-modal-title {
        font-size: 16px;
    }
}

/* ===============================================
   STATI LOADING E PLACEHOLDER
   =============================================== */

.podcast-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.podcast-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f4f6;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.podcast-loading-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Empty state */
.podcast-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.podcast-empty-state svg {
    width: 64px;
    height: 64px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.podcast-empty-state p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* ===============================================
   STICKY AUDIO PLAYER
   =============================================== */

.sticky-podcast-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.player-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.player-cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.player-episode-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-series-title {
    font-size: 12px;
    color: var(--color-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.player-btn:hover {
    background: var(--color-gray-light);
    color: var(--color-primary);
}

.player-btn-play {
    background: var(--color-primary);
    color: white;
    width: 48px;
    height: 48px;
}

.player-btn-play:hover {
    background: var(--color-dark);
    color: white;
}

.player-btn-skip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.player-btn-skip svg {
    flex-shrink: 0;
}

.skip-seconds {
    font-size: 10px;
    font-weight: 800;
    color: currentColor;
    pointer-events: none;
    line-height: 1;
    margin-top: -2px;
}

/* Speed Control */
.player-speed-control-wrapper {
    position: relative;
}

.player-btn-speed {
    min-width: 50px;
}

.speed-label {
    font-size: 12px;
    font-weight: 700;
}

.speed-menu {
    position: absolute;
    bottom: 50px;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 100px;
    z-index: 10001;
}

.speed-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: white;
    border: none;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    color: #333;
}

.speed-menu button:hover {
    background: #f3f4f6;
}

.speed-menu button.active {
    background: var(--color-primary);
    color: white;
}

/* Sleep Timer */
.player-sleep-timer-wrapper {
    position: relative;
}

.sleep-timer-menu {
    position: absolute;
    bottom: 50px;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 140px;
    z-index: 10001;
}

.sleep-timer-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: white;
    border: none;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    color: #333;
}

.sleep-timer-menu button:hover {
    background: #f3f4f6;
}

.sleep-timer-menu button.cancel-btn {
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    color: #dc2626;
}

/* Modal Espansa - Speed & Timer Controls */
.player-speed-control-wrapper-expanded,
.player-sleep-timer-wrapper-expanded {
    position: relative;
}

.player-speed-control-wrapper-expanded button,
.player-sleep-timer-wrapper-expanded button {
    background: var(--color-gray-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    transition: all 0.2s;
}

.player-speed-control-wrapper-expanded button:hover,
.player-sleep-timer-wrapper-expanded button:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.speed-label-expanded {
    font-size: 14px;
    font-weight: 700;
}

.player-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.player-time-current,
.player-time-duration {
    font-size: 12px;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
    min-width: 40px;
}

.player-progress-bar {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.player-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.player-progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.player-progress-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.player-progress-bar::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.player-btn-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--color-secondary);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.player-btn-close:hover {
    background: var(--color-gray-light);
    color: var(--color-red);
}

/* Responsive */
@media (max-width: 768px) {
    .player-content {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px 16px;
    }

    .player-info {
        order: 1;
        flex: 1;
    }

    .player-cover {
        order: 0;
        width: 48px;
        height: 48px;
    }

    .player-controls {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .player-progress-container {
        order: 2;
        width: 100%;
        max-width: none;
    }

    .player-btn-close {
        order: 4;
        position: absolute;
        top: 8px;
        right: 8px;
    }
}

/* ===============================================
   MODAL ESPANSA PLAYER
   =============================================== */

#expandedPlayerModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.expanded-player-modal {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.3s ease-out;
}

/* Hover effects per bottoni */
.player-btn-expanded:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-close-modal:hover {
    opacity: 0.7;
}

.btn-action-expanded:hover {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Progress bar styling per modal espansa */
#expandedProgressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s;
}

#expandedProgressBar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(45, 90, 61, 0.2);
}

#expandedProgressBar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

#expandedProgressBar::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(45, 90, 61, 0.2);
}

/* Responsive modal espansa */
@media (max-width: 768px) {
    #expandedPlayerModal {
        padding: 10px;
    }

    .expanded-player-modal {
        max-width: 100%;
        border-radius: 12px;
    }

    .expanded-player-modal .modal-header {
        padding: 16px !important;
    }

    .expanded-player-modal .modal-body {
        padding: 24px !important;
    }

    .expanded-player-modal h2 {
        font-size: 20px !important;
    }

    .expanded-player-modal p {
        font-size: 14px !important;
    }

    .player-btn-expanded {
        width: 48px !important;
        height: 48px !important;
    }

    .player-btn-expanded svg {
        width: 20px !important;
        height: 20px !important;
    }

    #expandedPlayPauseBtn {
        width: 64px !important;
        height: 64px !important;
    }

    #expandedPlayPauseBtn svg {
        width: 28px !important;
        height: 28px !important;
    }
}

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

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

/* ===============================================
   BADGE ACQUISTO EPISODIO
   =============================================== */

.premium-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1.5px solid #f59e0b;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4); }
}

.btn-purchase-episode:hover {
    background: var(--color-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

/* Bottone Play Bloccato */
.btn-play-locked {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #78350f !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

.btn-play-locked:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

.btn-play-locked svg {
    margin-right: 8px;
}

/* ===============================================
   NOTIFICATION ACQUISTO PREMIUM
   =============================================== */

.purchase-notification {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 10001;
    background: white;
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: calc(100% - 48px);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.purchase-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.purchase-notification.fade-out {
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease-in;
}

.purchase-notification-content {
    position: relative;
    text-align: center;
}

.notification-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-gray-light);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-secondary);
}

.notification-close:hover {
    background: var(--color-border);
    color: var(--color-text);
    transform: rotate(90deg);
}

.notification-icon {
    font-size: 56px;
    margin-bottom: 16px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.notification-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-notification-primary {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

.btn-notification-primary:hover {
    background: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 61, 0.4);
}

.btn-notification-secondary {
    background: transparent;
    color: var(--color-secondary);
    border: 1.5px solid var(--color-border);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-notification-secondary:hover {
    background: var(--color-gray-light);
    color: var(--color-text);
    border-color: var(--color-secondary);
}

/* Responsive notification */
@media (max-width: 768px) {
    .purchase-notification {
        top: 20px;
        right: 12px;
        left: 12px;
        max-width: none;
        width: calc(100% - 24px);
        padding: 20px;
    }

    .notification-icon {
        font-size: 48px;
        margin-bottom: 12px;
    }

    .btn-notification-primary,
    .btn-notification-secondary {
        font-size: 14px;
        padding: 12px 20px;
    }
}

