:root {
    --bg-main: #0a0f1c; /* Deep dark blue */
    --bg-card: rgba(30, 41, 59, 0.4);
    --text-main: #f8fafc;
    --text-muted: #ffffff; /* Changed from #94a3b8 per user request */
    --text-white: #ffffff;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --border: rgba(255, 255, 255, 0.08);
    --nav-height: 80px;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients for modern feel */
body::before, body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}
body::before {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
}
body::after {
    bottom: 20%;
    right: -10%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0) 70%);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #60a5fa;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Navigation Overrides */
.navbar {
    background: rgba(10, 15, 28, 0.75) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 1rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 2rem);
}

.search-icon {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.search-icon:hover {
    color: var(--primary) !important;
}

/* --- Homepage & General Components --- */
.section {
    padding: 5rem 0;
}
.bg-light-dark {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 2.25rem;
    margin: 0;
}

.page-header {
    padding: 6rem 0 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.info-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    text-align: center;
}

.form-box {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(16px);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
.view-all {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.view-all:hover {
    color: #60a5fa;
}

/* Typography elements */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Buttons Extension */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    color: white;
}

/* Grid Tweaks */
.grid-3, .grid-4, .grid-2 {
    display: grid;
    gap: 2rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }

/* Hero Section */
.hero {
    padding: 100px 0;
    position: relative;
}
.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
}
.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}
.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Glass Card */
.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.featured-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
.featured-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    box-sizing: border-box;
}
.category-tag {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.featured-info h3 {
    font-size: 1.8rem;
    margin: 1rem 0 0.5rem 0;
}
.featured-meta {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 0;
}
.play-circle {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.play-circle:hover {
    transform: scale(1.1);
}

/* Episode Cards */
.episode-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.episode-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}
.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.episode-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}
.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.episode-card:hover .play-overlay {
    opacity: 1;
}
.play-overlay a {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.episode-card:hover .play-overlay a {
    transform: translateY(0);
}
.card-content {
    padding: 1.5rem;
}
.tag {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}
.card-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
}
.card-content h3 a {
    color: var(--text-main);
}
.card-content h3 a:hover {
    color: var(--primary);
}
.meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Category Cards */
.category-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-main);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.category-card i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.category-card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}
.category-card:hover i {
    transform: scale(1.1);
}
.category-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 5rem;
    background: rgba(10, 15, 28, 0.9);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--primary);
}

.footer-links h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: white;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Page Headers */
.content-container {
    max-width: 900px;
    margin: 0 auto;
}

.episode-header {
    padding: 4rem 0 0 0;
}

.episode-title {
    font-size: 2.8rem;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.episode-meta {
    color: var(--text-muted);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

.media-player-box {
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.audio-header-player {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
}

.audio-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.audio-controls-overlay audio {
    width: 100%;
    border-radius: 30px;
}

/* Bootstrap Override Extras */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-main);
        padding: 2rem;
        margin-top: 1rem;
        border-radius: 1rem;
        border: 1px solid var(--border);
    }
    
    .nav-link::after {
        display: none;
    }
}
