:root {
    --bg-primary: #1a1410;
    --bg-secondary: #2d2419;
    --bg-tertiary: #3d3225;
    --border-color: #5c4a32;
    --border-light: #7a6548;
    --text-primary: #d4c4a8;
    --text-secondary: #a89878;
    --text-muted: #786a54;
    --accent: #8b4513;
    --accent-hover: #a0522d;
    --gold: #c9a227;
    --gold-light: #e0c060;
    --red: #8b3a3a;
    --red-hover: #a54545;
    --green: #4a6b4a;
    --shadow: rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(139, 69, 19, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(201, 162, 39, 0.05) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold-light);
}

.site-header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.5));
}

.site-title {
    font-size: 1.5rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

.main-nav {
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--gold);
    border-color: var(--border-color);
    background: rgba(201, 162, 39, 0.1);
}

.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.site-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-rune {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

.footer-small {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border-light);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-icon {
    font-size: 0.85em;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.section-divider {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 0.3em;
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

.hero {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(201, 162, 39, 0.02) 20px,
            rgba(201, 162, 39, 0.02) 21px
        );
    pointer-events: none;
}

.hero-emblem {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(201, 162, 39, 0.5);
    animation: pulse 3s ease-in-out infinite;
}

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

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.categories-section {
    margin-bottom: 4rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: block;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.category-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
}

.latest-section {
    margin-bottom: 4rem;
}

.podcasts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.podcast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.podcast-item:hover {
    border-color: var(--border-light);
    background: var(--bg-tertiary);
}

.podcast-info {
    flex: 1;
}

.podcast-category {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.podcast-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.podcast-title a {
    color: var(--text-primary);
}

.podcast-title a:hover {
    color: var(--gold);
}

.podcast-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
}

.btn-listen {
    white-space: nowrap;
}

.about-section {
    text-align: center;
    padding: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.about-emblem {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.about-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.gallery-page {
    padding: 1rem 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-style: italic;
}

.gallery-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.gallery-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--gold);
    text-align: center;
}

.category-filter {
    list-style: none;
}

.category-filter li {
    margin-bottom: 0.5rem;
}

.category-filter a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.category-filter a:hover,
.category-filter a.active {
    color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
    border-color: var(--border-color);
}

.filter-icon {
    font-size: 1.1rem;
}

.filter-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gallery-main {
    flex: 1;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-subtext {
    color: var(--text-muted);
    font-style: italic;
}

.podcasts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.podcast-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.podcast-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: 0.75rem;
}

.card-category {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.audio-player {
    width: 100%;
    margin-bottom: 0.75rem;
    height: 40px;
    filter: sepia(20%) hue-rotate(10deg) saturate(80%);
}

.audio-player::-webkit-media-controls-panel {
    background: var(--bg-tertiary);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.listen-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb .separator {
    color: var(--border-color);
}

.breadcrumb .current {
    color: var(--text-primary);
}

.listen-article {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    margin-bottom: 3rem;
}

.listen-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.listen-category {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.listen-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.listen-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    color: var(--gold);
}

.listen-content {
    padding: 2rem;
}

.player-section {
    text-align: center;
    margin-bottom: 2rem;
}

.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.player-artwork {
    width: 120px;
    height: 120px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-emblem {
    font-size: 3rem;
    color: var(--gold);
}

.main-player {
    width: 100%;
    max-width: 500px;
    height: 50px;
    filter: sepia(20%) hue-rotate(10deg) saturate(80%);
}

.main-player::-webkit-media-controls-panel {
    background: var(--bg-tertiary);
}

.player-actions {
    display: flex;
    justify-content: center;
}

.btn-download {
    background: transparent;
    border: 1px solid var(--border-color);
}

.btn-download:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.listen-description {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.description-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
}

.related-section {
    margin-top: 2rem;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.related-item:hover {
    border-color: var(--border-light);
}

.related-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.related-title a {
    color: var(--text-primary);
}

.related-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

@media (max-width: 900px) {
    .gallery-layout {
        grid-template-columns: 1fr;
    }
    
    .gallery-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        padding: 1rem;
        min-width: 200px;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .podcast-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .podcast-description {
        max-width: 100%;
    }
    
    .podcasts-grid {
        grid-template-columns: 1fr;
    }
    
    .listen-title {
        font-size: 1.5rem;
    }
    
    .listen-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .related-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .related-description {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .hero {
        padding: 2.5rem 1.5rem;
    }
    
    .hero-emblem {
        font-size: 3rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}
