/* ============================================
   SHARED STYLES FOR PODCAST MANAGER
   Used by: index-multi.html, public-show.html, public-episode.html
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
/* ============================================
   MOBILE SAFEGUARDS (prevent horizontal overflow)
   ============================================ */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Força todos os containers principais a não ultrapassarem a largura da tela */
.header-content,
.container,
.episodes-list,
.episodes-grid,
.shows-list,
.shows-grid {
    max-width: 100%;
    overflow-x: hidden;
}
/* ============================================
   MEDIA CONTAINMENT (avoid overflow on mobile)
   ============================================ */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

img.episode-image {
    max-width: 100%;
    /*height: auto;*/
    display: block;
}

/* Ensure rich text / HTML descriptions never overflow */
.episode-description img,
.show-description img,
.episode-description-section img {
    max-width: 100%;
    height: auto;
    display: block;
}
.margin {
	margin-bottom: 12px;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

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

.show-logo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.show-logo-small {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.show-info {
    flex: 1;
}

.show-info-small {
    flex: 1;
}

.show-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
}

.show-title-small {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.show-author-small {
    font-size: 14px;
    color: #666;
}

.show-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
}

.show-description {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
}

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

.show-preview {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #000;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: 0px solid transparent;
    cursor: pointer;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
	text-align: center;
}
/* Safeguard: generic action bars do not stretch buttons unintentionally */
.show-actions .btn { width: auto; flex: 0 0 auto; }

.btn-primary {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn-primary:hover {
    background: #333;
}

/* Normalize anchor/button parity for .btn */
a.btn,
button.btn {
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none;
    line-height: 1;
    border: 1px solid transparent;
    font: inherit;
}

/* Reinforce primary to win against legacy classes and UA styles */
button.btn.btn-primary,
a.btn.btn-primary {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}
button.btn.btn-primary:hover,
a.btn.btn-primary:hover {
    background: #333 !important;
    border-color: #333 !important;
}

/* Ensure buttons inside action bars always render as primary */
.show-actions .btn.btn-primary,
.header .show-actions .btn.btn-primary {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}
.show-actions .btn.btn-primary:hover,
.header .show-actions .btn.btn-primary:hover {
    background: #333 !important;
    border-color: #333 !important;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-back {
    background: #6c757d;
    color: white;
    width: auto;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #5a6268;
}

.btn-ghost {
    background: #f5f5f5;
    color: #333;
}

.btn-ghost:hover {
    background: #e0e0e0;
}

button:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================
   NAVIGATION TABS
   ============================================ */

.nav-tabs {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.nav-tab {
    padding: 15px 0;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.nav-tab.active {
    color: #000;
    border-bottom-color: #000;
}

/* ============================================
   CONTAINERS & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #000;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

/* ============================================
   VIEW TOGGLE (List/Grid)
   ============================================ */

.view-toggle {
    display: inline-flex;
    gap: 8px;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    transition: background .2s, border-color .2s, box-shadow .2s, transform .05s;
}

.toggle-btn:hover {
    background: #f7f7f7;
}

.toggle-btn:active {
    transform: translateY(1px);
}

.toggle-btn.active {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,.06) inset;
}

.toggle-btn svg {
    fill: #333;
}

/* ============================================
   EPISODES LIST (List & Grid Views)
   ============================================ */

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

/* Grid mode */
.episodes-list.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.episodes-list.grid .episode-card {
    cursor: pointer;
}

.episodes-list.grid .episode-header {
    flex-direction: column;
}

.episodes-list.grid .episode-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.episodes-list.grid .episode-title {
    font-size: 18px;
}

.episodes-list.grid .episode-date {
    margin-bottom: 8px;
}

/* Load more button */
.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.btn-load-more {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

.btn-load-more:hover {
    background: #f7f7f7;
}

/* ============================================
   EPISODE CARDS
   ============================================ */

.episode-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.episode-card * {
    max-width: 100%;
    box-sizing: border-box;
}

.episode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.episode-header {
    display: flex;
    gap: 2rem;
    /*margin-bottom: 16px;*/
}

.episode-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.episode-image-large {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 30px;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.episode-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.episode-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.episode-description {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-player {
    margin-top: 16px;
}

.episode-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    color: #666;
    font-size: 14px;
    flex-wrap: wrap;
}

.episode-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   SHOW CARDS (for index-multi.html)
   ============================================ */

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* LIST (shows): vertical stack with consistent spacing (matches grid gap) */
.shows-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Fallback for older browsers without flex gap support */
.shows-list .show-card + .show-card {
    /*margin-top: 20px;*/
}

.show-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
    position: relative;
}

.show-card:hover {
    transform: translateY(-5px);
}

.show-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f0f0f0;
}

.show-card .show-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.show-card .show-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.show-card .show-actions button,
.show-card .show-actions .btn {
    flex: 0 0 auto;   /* largura conforme o conteÃºdo */
    width: auto;
    padding: 8px 14px;
    font-size: 14px;
}

/* ============================================
   EPISODES GRID (for index-multi.html)
   ============================================ */

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

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

.audio-player {
    width: 100%;
    height: 40px;
}

.player-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.player-section .audio-player {
    height: 50px;
}

.player-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.empty-state h2,
.empty-state h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.empty-state p {
    color: #666;
}

/* Grid column span for empty state */
.shows-grid .empty-state,
.episodes-grid .empty-state {
    grid-column: 1/-1;
}

/* ============================================
   MODALS
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

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

.modal-header h2 {
    color: #333;
}

.close-modal {
    background: none;
    width: auto;
    padding: 5px 10px;
    font-size: 24px;
    color: #999;
}

.close-modal:hover {
    color: #333;
    background: none;
}

/* Embed Modal */
.embed-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.5);
    z-index: 9998;
}

.embed-modal {
    max-width: 760px;
    width: 94%;
    max-height: 84vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    z-index: 9999;
}

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

.embed-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.embed-close {
    cursor: pointer;
    border: none;
    background: #eee;
    padding: 6px 10px;
    border-radius: 6px;
}

.embed-body {
    font-size: 14px;
    line-height: 1.5;
}

.embed-textarea {
    width: 100%;
    min-height: 140px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.embed-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* About Modal */
.about-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.5);
    z-index: 9998;
}

.about-modal {
    max-width: 720px;
    width: 92%;
    max-height: 80vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    z-index: 9999;
}

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

.about-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.about-close {
    cursor: pointer;
    border: none;
    background: #eee;
    padding: 6px 10px;
    border-radius: 6px;
}

.about-body {
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    margin-top: 10px;
    border-radius: 8px;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ============================================
   SHARE SECTION
   ============================================ */

.share-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* ============================================
   EPISODE DESCRIPTION SECTION
   ============================================ */

.episode-description-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.episode-description-section .episode-description {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

.episode-description-section .episode-description p {
    margin-bottom: 16px;
}

/* ============================================
   FAB BUTTON (for index-multi.html)
   ============================================ */

.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    border: none;
}

.fab-btn:hover {
    background: #218838;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Embed mode adjustments */
body.embed .show-logo {
    display: none;
}

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

@media (max-width: 1024px) {
    .episodes-list.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    /* Prevenir overflow horizontal em TODOS os containers */
    .container,
    .episodes-list,
    .episodes-grid,
    .shows-list,
    .shows-grid,
    .episode-card,
    .show-card {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        max-width: 100%;
    }

    .show-logo {
        width: 150px;
        height: 150px;
    }

    .show-title {
        font-size: 24px;
    }

    .show-meta {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }

    .show-actions {
        justify-content: center;
    }

    .episode-header {
        flex-direction: column;
    }

    .episode-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }
    
    .episodes-list.grid .episode-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    .episode-image-large,
    .show-image,
    .show-logo {
        max-width: 100%;
        height: auto;
    }

    .episode-title {
        font-size: 24px;
    }

    .player-actions {
        flex-direction: column;
    }

    .player-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .episodes-list.grid {
        grid-template-columns: 1fr;
    }

    /* Hide view toggle on mobile (force single option) */
    .view-toggle { 
        display: none !important; 
    }

    /* Force list-like behavior even if a .grid class is present (defensive) */
    .episodes-list.grid .episode-header { 
        flex-direction: column !important; 
    }
    .episodes-list.grid .episode-image { 
        width: 100% !important; 
        height: auto !important; 
        aspect-ratio: auto !important; 
    }
}

@media (max-width: 640px) {
    .episodes-list.grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Tighten paddings to gain horizontal space */
    .episode-card,
    .show-card {
        padding: 16px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .episode-header {
        gap: 12px;
        max-width: 100%;
    }
    
    /* Garantir que episode-header não force overflow */
    .episode-header img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Ensure any big artwork scales to the viewport */
    .episode-image-large,
    .show-image,
    .show-logo {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /* Images inside dynamic HTML (descriptions, notes, etc.) */
    .episode-description img,
    .show-description img,
    .episode-description-section img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}
/* Page-specific styles for episode view */
        .episode-header {
            background: white;
            border-radius: 12px;
            /*margin-bottom: 30px;*/
            
        }
        .episode-header-padding{
            padding: 40px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .episode-title {
            font-size: 32px;
            font-weight: 700;
            color: #000;
            margin-bottom: 16px;
            line-height: 1.2;
        }
        /* --- Episode hero (artwork left, info right) --- */
        .episode-hero{
            display:grid;
            grid-template-columns: 300px 1fr;
            gap: 5rem;
            align-items:start;
        }
        .episode-art{
            display:flex;
            flex-direction:column;
            gap:14px;
        }
        .episode-art-img{
            width:100%;
            aspect-ratio:1/1;
            object-fit:cover;
            border-radius:12px;
            /* sombra suave, mais concentrada na parte de baixo */
            box-shadow: 0 12px 20px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
        }
        .show-blurb{
            color:#555;
            font-size:14px;
            line-height:1.5;
        }
        .all-episodes-link{
            display:inline-block;
            margin-top:4px;
            font-weight:600;
            color:#000;
            text-decoration:underline;
        }
        .crumb-show{
            font-weight:700;
            color:#555;
            margin-bottom:8px;
        }
        .episode-meta-line{
            color:#666;
            font-size:14px;
            margin:8px 0 16px;
        }
        .player-inline{
            margin-top:8px;
        }
        .episode-notes-inline{
            margin-top:12px;
        }
        @media (max-width: 900px){
            .episode-hero{
                grid-template-columns: 1fr;
            }
        }
        /* Footer styles */
        .footer {
            text-align: center;
            padding: 40px 20px;
            color: #666;
            font-size: 14px;
            background: #f9f9f9;
            border-top: 1px solid #e0e0e0;
            margin-top: 60px;
        }
        .footer-logo {
            width: 100px;
            height: 100px;
            object-fit: contain;
            margin-bottom: 10px;
        }
        .footer-title {
            font-weight: 600;
            font-size: 18px;
            color: #555;
            margin-bottom: 20px;
        }
        .footer small {
            display: block;
            color: #888;
            margin-top: 10px;
        }

/* ADMIN-ONLY SCOPE: Prefixed with .admin-app to avoid affecting public-show/public-episode */
/* =============================
   SHOWS LIST VIEW (LIST: 2 colunas | GRID jÃ¡ coberto acima)
   ============================= */

.admin-app .shows-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card base (sem flex) */
.admin-app .shows-list .show-card {
  display: block;               /* evita conflito com layouts internos */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  overflow: hidden;
  padding: 16px;
  transition: box-shadow 0.2s ease;
}
.admin-app .shows-list .show-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Header vira GRID: imagem Ã  esquerda, conteÃºdo Ã  direita */
.admin-app .shows-list .show-card .episode-header {
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-areas:
    "cover title"
    "cover desc"
    "cover actions";
  gap: 16px 20px;
  align-items: start;
}

/* Imagem (capa) */
.admin-app .shows-list .show-card .episode-header img,
.admin-app .shows-list .show-card > img.show-image { /* fallback para show-image fora do header */
  grid-area: cover;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* TÃ­tulo / DescriÃ§Ã£o / AÃ§Ãµes no lado direito */
.admin-app .shows-list .show-card .episode-header .episode-info { grid-column: auto; }
.admin-app .shows-list .show-card .episode-header .episode-title {
  grid-area: title;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
}
.admin-app .shows-list .show-card .episode-header .episode-description {
  grid-area: desc;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 8px;
}
.admin-app .shows-list .show-card .show-actions {
  grid-area: actions;
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.admin-app .shows-list .show-card .show-actions button,
.admin-app .shows-list .show-card .show-actions .btn {
  flex: 0 0 auto;
  width: auto;
  padding: 8px 14px;
  font-size: 14px;
}

/* Links longos (ex: RSS) quebram linha sem quebrar layout */
.admin-app .shows-list .show-card a { word-break: break-all; }

/* Responsivo: empilha em 1 coluna */
@media (max-width: 600px) {
  .admin-app .shows-list .show-card .episode-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cover"
      "title"
      "desc"
      "actions";
    text-align: left;
  }
}
/* ADMIN-ONLY SCOPE: Prefixed with .admin-app to avoid affecting public-show/public-episode */
/* =====================================
   SHOWS: mesmo layout dos episÃ³dios
   ===================================== */

/* GRID (shows): imagem em cima */
.admin-app .shows-grid .episode-card .episode-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.admin-app .shows-grid .episode-card .episode-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0;
}

/* LIST (shows): 2 colunas â€” capa Ã  esquerda, conteÃºdos Ã  direita */
.admin-app .shows-list .episode-card .episode-header {
  display: grid !important;                /* vence inline style se existir */
  grid-template-columns: 160px 1fr;
  gap: 16px 20px;
  align-items: start;
}
.admin-app .shows-list .episode-card .episode-image {
  grid-column: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}
.admin-app .shows-list .episode-card .episode-info {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Responsivo: empilha em 1 coluna */
@media (max-width: 600px) {
  .admin-app .shows-list .episode-card .episode-header {
    grid-template-columns: 1fr;
  }
  .admin-app .shows-list .episode-card .episode-image {
    grid-column: 1;
  }
  .admin-app .shows-list .episode-card .episode-info {
    grid-column: 1;
  }
}

/* ADMIN-ONLY SCOPE: Prefixed with .admin-app to avoid affecting public-show/public-episode */
/* ============================================
   LIST VIEW (EPISODES): duas colunas
   ============================================ */
.admin-app .episodes-list .episode-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-areas:
    "cover title"
    "cover meta"
    "cover desc"
    "cover audio"
    "cover actions";
  gap: 16px 20px;
  align-items: start;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Coluna da esquerda (imagem) */
.admin-app .episodes-list .episode-card > img.episode-image,
.admin-app .episodes-list .episode-card > img.episode-image-large {
  grid-area: cover;
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Coluna da direita (conteÃºdo) */
.admin-app .episodes-list .episode-card > .episode-title {
  grid-area: title;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
  margin: 2px 0 4px;
}
.admin-app .episodes-list .episode-card > .episode-date {
  grid-area: meta;
  font-size: 14px;
  color: #6B7280;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.admin-app .episodes-list .episode-card > .episode-description {
  grid-area: desc;
  font-size: 15px;
  color: #4B5563;
  line-height: 1.6;
}
.admin-app .episodes-list .episode-card > .audio-lazy { grid-area: audio; }
.admin-app .episodes-list .episode-card > .episode-actions {
  grid-area: actions;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* BotÃµes mais compactos no list */
.admin-app .episodes-list .episode-card .btn {
  padding: 8px 12px;
  font-size: 14px;
}

/* Responsivo: vira uma coluna no mobile */
@media (max-width: 700px) {
  .admin-app .episodes-list .episode-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cover"
      "title"
      "meta"
      "desc"
      "audio"
      "actions";
  }
}

/* (removed duplicate .shows-list .show-card .episode-header and .shows-list .show-card .episode-header img/.episode-info to avoid conflicts with .shows-list .episode-card above) */

/* Optional: garantir que imagens grandes nÃ£o â€œestouremâ€ */
.shows-list img.episode-image-large,
.episodes-list img.episode-image-large {
  max-width: 100%;
}
@media (max-width: 768px) {
  /* Remove regras que causam overflow - as imagens já são responsivas */
  
  .show-logo {
    width: 60px !important;
    height: 60px !important;
  }
  
  /* Garantir que imagens de episódio respeitem o container */
  .episodes-list .episode-image,
  .episodes-grid .episode-image {
    max-width: 100%;
    height: auto;
  }
  
  /* Garantir que cards não ultrapassem a tela */
  .episode-card,
  .show-card {
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Garantir que imagens dentro de cards também respeitem limites */
  .episode-card img,
  .show-card img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}