/* Modern Reset & Variables */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #38bdf8;
    /* Sky Blue */
    --accent-secondary: #818cf8;
    /* Indigo */
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --border-color: #334155;
    --nav-height: 70px;
    --container-width: 1200px;
    --radius-lg: 16px;
    --radius-md: 8px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Disable double-tap zoom on mobile */
html {
    touch-action: manipulation;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    margin-left: auto;
}

/* Hero Section */
.hero {
    margin-top: var(--nav-height);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-button {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.6);
}

/* Featured Section */
.featured-section {
    padding: 40px 0;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.featured-image {
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.03);
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 2.5rem;
    margin: 16px 0;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.featured-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* News Grid */
.latest-news {
    padding: 0 0 60px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    border-color: var(--accent-primary);
}

.small-image {
    height: 160px;
    /* Smaller thumbnail height */
    position: relative;
    overflow: hidden;
}

.small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .small-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
}

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.podcast-type-badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.7rem;
    color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.podcast-type-badge.newsletter {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.15);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* Tertiary News Section */
.tertiary-news {
    padding-bottom: 60px;
}

.tertiary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tertiary-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    transition: border-color 0.3s ease;
}

.tertiary-card:hover {
    border-color: var(--accent-primary);
}

.tertiary-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.tertiary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tertiary-title {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.3;

    margin: 0;
}

/* List View Page */
.list-page {
    margin-top: var(--nav-height);
    padding: 40px 0;
}

.list-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-card {
    display: flex;
    min-height: 135px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
}

.list-card:hover {
    border-color: var(--text-secondary);
}

.list-thumbnail {
    width: 240px;
    background: #000;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    align-self: stretch;
}

.list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.list-card.no-thumbnail .list-content {
    padding: 12px 16px;
}

.list-content {
    padding: 8px 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.list-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 6px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/*.list-title:hover {
    text-decoration: underline;
}*/

.list-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.list-meta-bottom {
    display: flex;
    gap: 16px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.list-meta-bottom span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.list-meta-bottom span:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.list-meta-bottom .meta-date {
    color: var(--text-secondary);
    cursor: default;
}

.list-meta-bottom .meta-date:hover {
    background: transparent;
}

.list-meta-bottom .view-episode-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.list-meta-bottom .view-episode-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.list-meta-bottom .view-episode-link i {
    font-size: 0.65rem;
}

/* View All Link */
.view-all-container {
    padding-bottom: 80px;
}

.view-all-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.view-all-card:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.view-all-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.view-all-card h3 i {
    font-size: 1.2rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.view-all-card:hover h3 i {
    transform: translateX(5px);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
    background: #0b1120;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 32px;
        padding-left: 20px;
    }

    /* Stack Featured Article on Mobile */
    .featured-article {
        grid-template-columns: 1fr;
        margin-bottom: 30px;
        gap: 0;
    }

    /* List View Mobile */
    .list-card {
        flex-direction: column;
    }

    .list-thumbnail {
        width: 100%;
        height: 200px;
    }

    .featured-image {
        height: 250px;
    }

    .featured-content {
        padding: 24px;
    }

    .featured-title {
        font-size: 1.8rem;
    }
}

/* Podcast Page */
.podcast-page {
    margin-top: var(--nav-height);
    padding: 40px 0;
}

.podcast-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.podcast-hero:has(.podcast-hero-content:only-child) {
    grid-template-columns: 1fr;
}

.podcast-title {
    font-size: 3.5rem;
    margin: 0 0 16px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.podcast-date {
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.podcast-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.podcast-description h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-top: 28px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.podcast-description h3:first-child {
    margin-top: 20px;
}

.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    width: 100%;
}

.play-btn {
    background: var(--accent-gradient);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.play-btn.not-ready {
    background: rgba(100, 100, 100, 0.3);
    cursor: not-allowed;
}

.play-btn.not-ready:hover {
    transform: none;
    box-shadow: none;
}

.play-btn.not-ready i {
    color: var(--text-secondary);
}

.play-btn.downloading {
    background: rgba(56, 189, 248, 0.2);
    cursor: wait;
}

.play-btn.downloading:hover {
    transform: none;
    box-shadow: none;
}

.play-btn .download-percent {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.play-btn.ready {
    background: var(--accent-gradient);
}

.play-btn.error {
    background: rgba(239, 68, 68, 0.3);
}

.play-btn.error i {
    color: #ef4444;
}

.skip-btn {
    background: transparent;
    background-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.skip-btn:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.skip-btn:active {
    transform: scale(0.95);
}

.progress-container {
    background: #334155;
    height: 6px;
    width: auto;
    flex-grow: 1;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.progress-bar {
    background: var(--accent-gradient);
    height: 100%;
    width: 0%;
    border-radius: 6px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s;
}

.progress-container:hover .progress-bar::after,
.progress-container:active .progress-bar::after {
    transform: translateY(-50%) scale(1.2);
}

.time-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    min-width: 35px;
    /* Prevent jumping */
    text-align: center;
}

.podcast-hero-image {
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.podcast-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .podcast-hero {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
        text-align: center;
    }

    .podcast-hero-content {
        order: 2;
    }

    .podcast-hero-image {
        order: 1;
        height: 250px;
    }

    .podcast-title {
        font-size: 2rem;
    }
}

/* Forms & Tools Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    /* Default for textareas in this context */
    font-size: 0.95rem;
    line-height: 1.6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color-scheme: dark;
}

.form-input {
    font-family: var(--font-body);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background: #2d3b4e;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.3);
}

.btn-success:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Alerts & Info Boxes */
.alert {
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border-left: 4px solid var(--accent-primary);
    background: rgba(56, 189, 248, 0.1);
    color: var(--text-primary);
    line-height: 1.6;
}

.alert-info {
    border-color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.1);
}

.alert-success {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.alert-error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Metadata Display */
.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.metadata-item {
    background: var(--bg-dark);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
}

.metadata-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.metadata-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-heading);
}

.source-item {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.source-item:last-child {
    border-bottom: none;
}

.source-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.source-link {
    color: var(--accent-primary);
    text-decoration: none;
}

.source-link:hover {
    text-decoration: underline;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table thead {
    background: rgba(56, 189, 248, 0.1);
}

.table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-striped tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.table-sm th,
.table-sm td {
    padding: 8px;
    font-size: 0.9rem;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    min-width: 44px;
    text-align: center;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--accent-gradient);
    color: var(--bg-dark);
    border-color: transparent;
    font-weight: 700;
    cursor: default;
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 10px 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pagination-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Auth Pages */
.auth-page {
    margin-top: var(--nav-height);
    padding: 60px 0;
    min-height: calc(100vh - var(--nav-height));
}

.auth-page.centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.auth-form .form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form .form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.auth-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.auth-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-form .checkbox-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-form .btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.auth-form .btn-auth:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.auth-form .btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-links a {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.auth-alert.show {
    display: block;
}

.auth-alert.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.auth-alert.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.auth-alert.alert-info {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.forgot-link {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 20px;
}

.forgot-link a {
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 28px 24px;
    }

    .auth-title {
        font-size: 1.75rem;
    }
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 999;
    display: none;
}

body.is-offline .offline-indicator {
    display: block;
}

body.is-offline .podcast-page,
body.is-offline .auth-page,
body.is-offline .list-page {
    margin-top: calc(var(--nav-height) + 36px);
}

/* Homepage Hero & Feature Grid */
#hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

#hero-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

#features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card-link {
    text-decoration: none;
    display: block;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-card-thumbnail {
    position: relative;
    overflow: hidden;
}

.feature-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.feature-card:hover img {
    transform: scale(1.05);
}

.listen-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--accent-primary);
    opacity: 0.85;
    transition: width 0.3s ease;
}

.feature-card-content {
    padding: 16px;
}

.feature-card-content h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-card-meta {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Homepage Mobile Responsive */
@media (max-width: 768px) {
    .homepage {
        padding-top: 90px !important;
    }

    #hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #hero-title {
        font-size: 1.5rem;
    }

    #features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        display: flex;
        flex-direction: row;
        min-height: auto;
    }

    .feature-card-thumbnail {
        width: 120px;
        flex-shrink: 0;
    }

    .feature-card img {
        width: 120px;
        height: 80px;
        aspect-ratio: auto;
    }

    .feature-card-content {
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .feature-card-content h3 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
}

/* Podcast View Page Styles */
#podcast-thumb-desc {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

#podcast-thumb-desc img {
    max-width: 300px;
    border-radius: 8px;
    flex-shrink: 0;
}

#more-episodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.more-episode-link {
    text-decoration: none;
    display: block;
}

.more-episode-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.more-episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.more-episode-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.more-episode-content {
    padding: 16px;
    height: 76px;
}

.more-episode-content h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Podcast View Page Mobile Responsive */
@media (max-width: 768px) {
    .podcast-hero {
        padding: 24px;
        text-align: left;
    }

    .podcast-title {
        font-size: 1.75rem;
    }

    .podcast-description {
        text-align: left;
    }

    .podcast-description h3:first-child {
        margin-top: 20px;
    }

    #podcast-thumb-desc {
        flex-direction: column;
        gap: 16px;
    }

    #podcast-thumb-desc img {
        max-width: 100%;
        width: 100%;
    }

    .custom-audio-player {
        padding: 10px 14px;
        gap: 10px;
    }

    .custom-audio-player .time-text {
        font-size: 0.7rem;
    }

    .skip-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .play-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    #more-episodes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .more-episode-card {
        display: flex;
        flex-direction: row;
    }

    .more-episode-card img {
        width: 120px;
        height: 80px;
        aspect-ratio: auto;
        flex-shrink: 0;
    }

    .more-episode-content {
        padding: 12px;
        height: auto;
        display: flex;
        align-items: center;
    }

    .more-episode-content h3 {
        font-size: 0.9rem;
    }
}