/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

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

/* Header Styles */
header {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
}

.header-table {
    width: 100%;
    border-collapse: collapse;
}

.header-table td {
    vertical-align: middle;
    padding: 10px;
}

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

.title-cell {
    text-align: center;
}

.title-cell h1 {
    margin: 0;
    font-size: 24px;
}

.count-cell {
    text-align: right;
}

.count-box {
    display: inline-block;
    padding: 5px 10px;
    background-color: #333;
    border-radius: 5px;
}

/* Filter Bar */
.filter-bar {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-bar form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-bar select, 
.filter-bar input[type="text"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-bar button {
    padding: 8px 15px;
    background-color: #d00;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filter-bar button:hover {
    background-color: #b00;
}

/* Recordings List */
.recordings-list {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.recording-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recording-item:last-child {
    border-bottom: none;
}

.recording-header {
    flex: 1;
}

.show-name {
    margin: 0;
    color: #d00;
    cursor: pointer;
}

.show-name:hover {
    text-decoration: underline;
}

.recording-date {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

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

.play-btn, .download-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #d00;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover, .download-btn:hover {
    color: #b00;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.limit-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.limit-selector select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-numbers a {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.page-numbers a:hover {
    background-color: #f0f0f0;
}

.page-numbers a.active {
    background-color: #d00;
    color: white;
    border-color: #d00;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

.footer-content a {
    color: #d00;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
}

.audio-player audio {
    flex: 1;
}

.player-info {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-player {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1001;
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    max-width: 800px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.modal-body {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.modal-left {
    flex: 1;
}

.modal-left img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.modal-right {
    flex: 2;
}

.modal-links {
    margin-top: 20px;
}

.modal-links a {
    display: inline-block;
    margin-right: 15px;
    color: #d00;
    text-decoration: none;
}

.modal-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header-table {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    
    .logo-cell, .title-cell, .count-cell {
        text-align: center;
    }
    
    .count-box {
        margin-top: 10px;
    }
    
    .filter-bar form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .audio-player {
        flex-direction: column;
        gap: 10px;
    }
}
/* Modern, Cozy Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Literata:ital,wght@0,400;0,500;1,400&display=swap');

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

h1, h2, h3 {
    font-family: 'Literata', serif;
    font-weight: 500;
}

/* Narrow Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Improved Filter Bar */
.filter-bar {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-select, .search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-right: 8px;
    background-color: #f8f9fa;
}

.filter-button {
    padding: 8px 16px;
    background-color: #d00;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: background-color 0.2s;
}

.filter-button:hover {
    background-color: #b00;
}

/* Recording Items */
.recording-item {
    background-color: #fff;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.show-name {
    color: #d00;
    margin: 0 0 4px 0;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.show-name:hover {
    color: #b00;
}

.recording-meta {
    font-size: 14px;
    color: #666;
}

.recording-date {
    margin-right: 8px;
}

/* Action Buttons */
.action-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 6px;
    margin-left: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-button:hover {
    background-color: #f0f0f0;
    color: #d00;
}

/* Pagination */
.pagination-container {
    margin-top: 30px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.limit-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-left: 8px;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.page-link {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}

.page-link:hover {
    background-color: #f0f0f0;
}

.page-link.active {
    background-color: #d00;
    color: white;
    border-color: #d00;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .filter-bar form {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-select, .search-input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .recording-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recording-actions {
        margin-top: 12px;
        align-self: flex-end;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
}
/* Header Styles */
header {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    width: 100%;
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-table {
    width: 100%;
    border-collapse: collapse;
}

.header-table td {
    vertical-align: middle;
    padding: 10px;
}

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

.title-cell {
    text-align: center;
}

.title-cell h1 {
    margin: 0;
    font-size: 24px;
    font-family: 'Literata', serif;
}

.count-cell {
    text-align: right;
}

.count-box {
    display: inline-block;
    padding: 5px 10px;
    background-color: #333;
    border-radius: 5px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .header-table {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    
    .logo-cell, .title-cell, .count-cell {
        text-align: center;
    }
    
    .count-box {
        margin-top: 10px;
    }
    
    .logo {
        width: 150px;
        height: 150px;
    }
}
/* Header Styles */
header {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    width: 100%;
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 150px;  /* Reduced from 150px for more compact header */
    height: 150px;
}

.count-box {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.4;
}

.count-box span {
    white-space: nowrap;
}

h1 {
    margin: 0;
    font-size: 20px;
    font-family: 'Literata', serif;
    text-align: center;
    flex-grow: 1;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    h1 {
        order: -1;
        padding: 0;
        font-size: 18px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .count-box {
        flex-direction: row;
        gap: 15px;
    }
}
/* Header Styles */
header {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    width: 100%;
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.count-box {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.4;
}

.count-box span {
    white-space: nowrap;
}

.title-container {
    flex-grow: 1;
    padding: 0 15px;
    text-align: center;
}

h1 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-family: 'Literata', serif;
}

h4 {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
    font-style: italic;
    color: #ccc;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .title-container {
        order: -1;
        padding: 0;
    }
    
    h1 {
        font-size: 18px;
    }
    
    h4 {
        font-size: 12px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .count-box {
        flex-direction: row;
        gap: 15px;
    }
}
