* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

:root {
    --primary: #4e5eea;
    --primary-light: rgba(124, 77, 255, 0.1);
    --background: #e9edf1;
    --surface: #fff;
    --surface-light: #F1F3F5;
    --text: #1A1A1A;
    --text-secondary: rgba(26, 26, 26, 0.7);
    --radius-xl: 28px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --spacing: 20px;
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --header-height: 60px;
    --accent-color: #7C4DFF;
    --accent-rgb: 33, 150, 243;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-y: auto;
}

a.nocherk:hover,
a.nocherk:focus,
a.nocherk:active {
  text-decoration: none;
}

a.nocherk {
    text-decoration: none;
  }

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
}

.main-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Glass Header */
.app-header {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Glass Header Section */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Brand Section */
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), #5364f7);
    border-radius: 14px;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(124, 77, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(124, 77, 255, 0.5);
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.app-subtitle {
    font-size: 10px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* Glass Controls */
.header-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.glass-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 16px;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.glass-button:active {
    transform: translateY(0px);
}

/* Header Tabs Base Styles */
/* Glass Navigation */
.glass-nav {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.glass-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    justify-content: center;
}

.glass-tab i {
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-tab span {
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.glass-tab.active {
    background: linear-gradient(135deg, var(--primary), #5364f7);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 77, 255, 0.4);
}

.glass-tab.active i,
.glass-tab.active span {
    color: white;
}

.nav-tab.active {
    background: linear-gradient(135deg, var(--primary), #5364f7);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(124, 77, 255, 0.35);
    position: relative;
}

.nav-tab.active .nav-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.15);
}

.nav-tab.active .nav-icon i {
    color: white;
}

.nav-tab.active .nav-title {
    color: white;
}

.nav-tab.active .nav-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.nav-tab:hover:not(.active) {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(124, 77, 255, 0.2);
}

.nav-tab:hover:not(.active) .nav-icon {
    background: rgba(124, 77, 255, 0.2);
    transform: scale(1.1);
}

.nav-tab:hover:not(.active) .nav-icon i {
    color: var(--primary);
}

.nav-tab:hover:not(.active) .nav-title {
    color: var(--primary);
}

.nav-tab:hover:not(.active) .nav-subtitle {
    color: var(--text);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .app-header {
        padding: 12px 16px;
    }

    .glass-header {
        margin-bottom: 16px;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .app-title {
        font-size: 20px;
    }

    .app-subtitle {
        font-size: 10px;
    }

    .header-controls {
        gap: 6px;
    }

    .glass-button {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .glass-nav {
        padding: 12px;
        gap: 8px;
    }

    .glass-tab {
        padding: 10px 16px;
        font-size: 13px;
        gap: 8px;
    }

    .glass-tab i {
        font-size: 14px;
    }
}

/* Enhanced Dark Theme Support */
.dark-theme .header-tabs {
    background: var(--surface);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

.dark-theme .tab-button {
    color: var(--text-secondary);
}

.dark-theme .tab-button.active {
    background: linear-gradient(135deg, var(--primary), #5364f7);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 77, 255, 0.4);
}

.dark-theme .tab-button:hover:not(.active) {
    background: var(--primary-light);
    color: var(--primary);
}

/* Small Mobile Devices */
@media (max-width: 360px) {
    .header-tabs {
        padding: 0.5rem;
        gap: 0.375rem;
        margin: 0 0.125rem;
        border-radius: 12px;
    }

    .tab-button {
        padding: 0.5rem 0.75rem;
        min-width: 100px;
        border-radius: 10px;
        gap: 6px;
    }

    .tab-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .tab-icon i {
        font-size: 12px;
    }

    .tab-title {
        font-size: 11px;
    }

    .tab-subtitle {
        font-size: 9px;
    }
}

/* Add smooth momentum scroll for iOS */
@supports (-webkit-overflow-scrolling: touch) {
    .header-tabs {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .tab-button {
        scroll-snap-align: center;
    }
}

/* Tab Content */
.tab-content {
    display: none;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stations Grid */
.stations-list {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-bottom: calc(90px + var(--safe-area-inset-bottom)); /* Space for mini player */
}

.station-item {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.station-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.station-image {
    position: relative;
    width: 64px;
    height: 64px;
    flex: 0 0 64px; /* Fixed size, no growing, no shrinking */
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-light);
}

.station-image::before {
    content: '';
    display: block;
    padding-top: 100%; /* Force 1:1 aspect ratio */
}

.station-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.station-item-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #888;
}

.station-item-info p {
    font-size: 12px; line-height: 1.2;
    color: #000;
}

.station-frequency {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.favorite-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-button:hover {
    background: var(--surface-light);
}

/* Now Playing View */
.now-playing-view {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    background: var(--background);
    position: relative;
}

.now-playing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px;
    background: var(--background);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.back-button {
    width: auto;
    height: 44px;
    border-radius: 22px;
    border: none;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(124, 77, 255, 0.3);
    padding: 0 20px;
}

.back-button:hover {
    transform: translateX(-2px);
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.4);
}

.back-button:active {
    transform: translateX(-1px);
    box-shadow: 0 2px 4px rgba(124, 77, 255, 0.2);
}

.back-button i {
    margin-right: 8px;
    font-size: 18px;
}

.back-button span {
    font-weight: 500;
}

.station-logo-large {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    margin-top: 60px;
    margin-bottom: 32px;
}

.station-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.now-playing-info {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.now-playing-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.now-playing-info p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Remove old frequency slider styles */
.frequency-slider,
.frequency-scale,
.frequency-numbers,
.frequency-marker,
.frequency-indicator {
    display: none;
}

/* Remove old visualizer styles */
.music-visualizer,
.wave-container,
.wave-bar,
.wave-circle {
    display: none;
}

/* Remove old wave styles */
.music-wave {
    display: none;
}

/* Player Controls */
.player-controls {
    margin-top: 60px;
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
}

.control-button {
    width: 72px;
    height: 72px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(124, 77, 255, 0.3);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.control-button i {
    font-size: 28px;
    transition: all 0.3s ease;
}

.control-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(124, 77, 255, 0.4);
    background: linear-gradient(135deg, var(--primary), #5364f7);
}

.control-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 12px rgba(124, 77, 255, 0.2);
}

/* Pulsing animation for play button */
.control-button.play-pause::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.2;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}



/* Mini Player */
.mini-player {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    display: none;
    align-items: center;
    gap: 16px;
    color: #1A1A1A;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-player:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.mini-player-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.mini-player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.mini-player-info h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-info p {
    font-size: 13px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-player-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2) !important;
    color: #333 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.mini-player-button i {
    transition: all 0.3s ease;
}

.mini-player-button:hover {
    background: rgba(0, 0, 0, 0.3) !important;
    transform: scale(1.05);
}

.mini-player-button:active {
    transform: scale(0.95);
}



/* Dark Theme */
.dark-theme {
    --background: #121212;
    --surface: #1E1E1E;
    --surface-light: #2A2A2A;
    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

/* Dark theme mini player */
.dark-theme .mini-player {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: white;
}

.dark-theme .mini-player:hover {
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.dark-theme .mini-player-button {
    background: rgba(255, 255, 255, 0.15);
}

.dark-theme .mini-player-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.dark-theme .mini-player-button.loading {
    background: rgba(255, 255, 255, 0.1);
}

.dark-theme .mini-player.loading {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.dark-theme .mini-player.loading .mini-player-button::before {
    border-top-color: rgba(255, 255, 255, 0.8);
}

/* Dark theme header */
.dark-theme .app-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .glass-nav {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .glass-button {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dark-theme .glass-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .glass-tab {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dark-theme .glass-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Loading state for mini player */
.mini-player.loading {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.mini-player.loading .mini-player-image {
    opacity: 0.3;
    filter: grayscale(100%);
}

.mini-player.loading .mini-player-info {
    opacity: 0.5;
}

.mini-player.loading .mini-player-button {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
}

.mini-player.loading .mini-player-button i {
    opacity: 0.3;
}

.mini-player.loading .mini-player-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.mini-player.loading .mini-player-info h4::after {
    content: ' • Загрузка';
    font-size: 10px;
    font-weight: 400;
    opacity: 0.7;
    margin-left: 4px;
}

/* Doberman Tab (Journal) Styles */
#doberman-tab .post-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 77, 255, 0.1);
    height: 100%;
}

#doberman-tab .post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 77, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.2);
}

#doberman-tab .post-content {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 16px;
    height: 100%;
}

#doberman-tab .post-media {
    width: 120px;
    height: 120px;
    background: var(--surface-light);
    overflow: hidden;
    border-radius: var(--radius-md);
}

#doberman-tab .post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#doberman-tab .post-card:hover .post-media img {
    transform: scale(1.05);
}

#doberman-tab .post-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    justify-content: space-between;
}

#doberman-tab .post-text h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

#doberman-tab .post-description {
    display: none;
}

/* Channel Tab (Kroshki) Styles */
#channel-tab .post-card {
    width: 100%;
    max-width: 100%;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124, 77, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: auto;
    max-height: none;
    box-sizing: border-box;
}

#channel-tab .post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.2);
}

#channel-tab .post-content {
    width: 100%;
    display: block;
    height: auto;
    max-height: none;
    overflow: hidden;
}

/* Remove the top post media/thumbnail */
#channel-tab .post-media {
    display: none;
}

/* Style images within post description */
#channel-tab .post-description img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 16px 0;
    border-radius: var(--radius-md);
    object-fit: contain;
}

#channel-tab .post-text {
    padding: 24px;
    display: block;
    height: auto;
    max-height: none;
    overflow: hidden;
}

#channel-tab .post-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    width: 100%; display: block;
}

/* Ensure images in post content don't overflow */
#channel-tab .post-description p {
    margin-bottom: 16px;
    overflow: hidden;
    width: 100%; display: block;
}

#channel-tab .post-description p img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px 0;
    border-radius: var(--radius-md);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #channel-tab .post-description img,
    #channel-tab .post-description p img {
        margin: 12px 0;
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 480px) {
    #channel-tab .post-description img,
    #channel-tab .post-description p img {
        margin: 8px 0;
    }
}

#channel-tab .post-meta {
    padding: 24px;
    padding-top: 0;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(124, 77, 255, 0.1);
}

#channel-tab .post-date {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

#channel-tab .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#channel-tab .read-more:hover {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
}

#channel-tab .read-more i {
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #channel-posts-container {
        padding: 12px;
    }

    #channel-tab .post-media {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .post-media-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 480px) {
    #channel-posts-container {
        padding: 8px;
    }

    .post-media-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 6px;
    }
}

/* Dark theme support */
.dark-theme #channel-tab .post-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme #channel-tab .post-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.dark-theme #channel-tab .post-media {
    background: rgba(0, 0, 0, 0.2);
}

/* Loading and Error States */
#channel-posts-container .loading,
#channel-posts-container .error {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    background: var(--surface);
    border-radius: var(--radius-lg);
    margin: 20px 0;
}

#channel-posts-container .error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Podcasts Tab Styles */
#podcasts-tab .post-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 77, 255, 0.1);
    height: 100%;
    cursor: pointer;
}

#podcasts-tab .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(124, 77, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.2);
}

#podcasts-tab .post-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#podcasts-tab .post-media {
    position: relative;
    width: 100%;
    padding-top: 100%;
    margin: 0;
    overflow: hidden;
}

#podcasts-tab .post-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

#podcasts-tab .podcast-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
}

#podcasts-tab .post-card:hover .podcast-play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#podcasts-tab .post-card:hover .post-media img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

#podcasts-tab .post-text {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#podcasts-tab .post-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text);
}

#podcasts-tab .post-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden; display: block;
}

/* Common Meta Styles */
.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(124, 77, 255, 0.1);
    margin-top: auto;
}

.post-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.read-more:hover {
    transform: translateX(4px);
}

.read-more i {
    font-size: 14px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #doberman-tab .post-content {
        grid-template-columns: 100px 1fr;
        gap: 12px;
        padding: 12px;
    }

    #doberman-tab .post-media {
        width: 100px;
        height: 100px;
    }

    #podcasts-tab .post-text {
        padding: 16px;
    }

    #podcasts-tab .post-text h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

/* Dark theme adjustments */
.dark-theme .post-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .post-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dark-theme .post-meta {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-secondary);
    font-size: 16px;
    gap: 12px;
}

.loading::after {
    content: "";
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.error-message {
    text-align: center;
    padding: 40px 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    color: var(--text);
}

.error-message p {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-secondary);
}

.retry-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.2);
}

/* Moods Tab Styles */
.moods-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.moods-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mood-category {
    border-radius: 20px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Repeating pattern for mood categories */
.mood-category:nth-child(4n + 1) {
    background: linear-gradient(135deg, #ff6b6b, #ffd3d3);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.mood-category:nth-child(4n + 2) {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
}

.mood-category:nth-child(4n + 3) {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
    box-shadow: 0 4px 15px rgba(132, 250, 176, 0.2);
}

.mood-category:nth-child(4n + 4) {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    box-shadow: 0 4px 15px rgba(161, 140, 209, 0.2);
}

.mood-category:hover {
    transform: translateY(-5px);
}

.mood-category h2 {
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mood-category h2 i {
    font-size: 24px;
}

.mood-stations {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.mood-stations .station-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mood-stations .station-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.mood-stations .station-item .station-item-info {
    color: #1A1A1A;
}

.mood-stations .station-item .station-item-info h3 {
    color: #1A1A1A;
    font-size: 18px;
    margin-bottom: 8px;
}

.mood-stations .station-item .station-item-info p {
    color: rgba(26, 26, 26, 0.7);
    font-size: 14px;
}

/* Dark theme support */
.dark-theme .mood-category {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark-theme .mood-stations .station-item {
    background: rgba(255, 255, 255, 0.8);
}

.dark-theme .mood-stations .station-item:hover {
    background: white;
}

@media (max-width: 768px) {
    .moods-content {
        padding: 16px;
    }

    .moods-grid {
        gap: 16px;
    }

    .mood-category {
        padding: 20px;
    }

    .mood-category h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .mood-stations {
        gap: 12px;
        grid-template-columns: 1fr;
    }
}



/* Стиль для рекомендаций из MOOD */
.station-item.recomendation {
    position: relative;
    border: 2px solid #5062fe;
    background: linear-gradient(135deg, rgba(80, 98, 254, 0.05), rgba(124, 77, 255, 0.05));
}

.station-item.recomendation::before {
    content: "stream из moods";
    position: absolute;
    top: 0px;
    right: 0px;
    background: linear-gradient(135deg, #5062fe, #7C4DFF);
    color: white;
    font-size: 7px;
    font-weight: 700;
    padding: 3px 12px 3px 6px;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(80, 98, 254, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.station-item.recomendation:hover {
    border-color: #7C4DFF;
    background: linear-gradient(135deg, rgba(80, 98, 254, 0.1), rgba(124, 77, 255, 0.1));
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(80, 98, 254, 0.15);
}

.dark-theme .station-item.recomendation {
    border-color: #5062fe;
    background: linear-gradient(135deg, rgba(80, 98, 254, 0.1), rgba(124, 77, 255, 0.1));
}

.dark-theme .station-item.recomendation::before {
    background: linear-gradient(135deg, #5062fe, #7C4DFF);
    color: white;
    box-shadow: 0 4px 12px rgba(80, 98, 254, 0.5);
}

.dark-theme .station-item.recomendation:hover {
    border-color: #7C4DFF;
    background: linear-gradient(135deg, rgba(80, 98, 254, 0.15), rgba(124, 77, 255, 0.15));
    box-shadow: 0 12px 32px rgba(80, 98, 254, 0.2);
}


/* Error message styles */
.error-message {
    padding: 20px;
    text-align: center;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--radius-lg);
    margin: 20px 0;
}

.error-message a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.error-message a:hover {
    text-decoration: underline;
}

/* Dark theme adjustments */
.dark-theme .tgme_widget_message_text {
    color: var(--text);
}

.dark-theme .tgme_widget_message_text a {
    color: var(--primary);
}

.retry-button {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: #5364f7;
    transform: translateY(-2px);
}

.post-media {
    margin-bottom: 15px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-light);
    position: relative;
}

.post-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.post-media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.gallery-item {
    position: relative;
    padding-bottom: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb {
    position: relative;
    cursor: pointer;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.video-thumb:hover .video-play-button {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.post-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 5px;
    white-space: pre-wrap;
    word-break: break-word;display: block;
}

.post-description a {
    color: var(--primary);
    text-decoration: none;
}

.post-description a:hover {
    text-decoration: underline;
}

/* Dark theme adjustments */
.dark-theme .post-media {
    background: var(--surface);
}

.dark-theme .video-play-button {
    background: rgba(255, 255, 255, 0.2);
}

.dark-theme .video-thumb:hover .video-play-button {
    background: var(--primary);
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.telegram-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-light);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.telegram-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
}

.telegram-link i {
    font-size: 20px;
}

.info11 {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-secondary);
    background: var(--surface-light);
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    text-align: justify;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dark-theme .info11 {
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .info11 {
        margin: 16px;
        padding: 12px;
        text-align: left;
    }
}

/* Issues Tab Styles */
.issues-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.issues-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.issues-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.issues-section {
    margin-bottom: 32px;
    color: var(--text);
}

.issues-section hr {
    border: none;
    height: 1px;
    background: var(--surface-light);
    margin: 16px 0;
}

.issues-section p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--text);
}

.issues-section ul {
    list-style-type: none;
    padding: 0;
    margin: 16px 0;
}

.issues-section li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

.issues-section li:last-child {
    margin-bottom: 0;
}

.issues-section li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Dark theme support */
.dark-theme .issues-card {
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Accordion Styles */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--background);
    transition: all 0.3s ease;
}

.accordion-header {
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: var(--surface-light);
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: var(--primary);
    font-size: 14px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 16px;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    opacity: 1;
    padding: 0 16px 16px 16px;
}

.accordion-content p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.accordion-content ul {
    list-style-type: none;
    padding: 0;
    margin: 12px 0;
}

.accordion-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.accordion-content li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.solution {
    margin-top: 16px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    color: var(--text);
}

.solution strong {
    color: var(--primary);
}

.settings-info {
    margin-top: 16px;
    padding: 16px;
    background: var(--surface-light);
    border-radius: var(--radius-sm);
}

.settings-info h4 {
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 600;
}

/* Dark theme support */
.dark-theme .accordion-item {
    background: var(--surface);
}

.dark-theme .accordion-header:hover {
    background: var(--surface-light);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .issues-content {
        padding: 16px;
    }

    .issues-card {
        padding: 16px;
    }

    .accordion-header {
        padding: 14px;
        font-size: 15px;
    }

    .accordion-content {
        font-size: 14px;
    }
}

/* Podcast styles */
.podcast-media {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.podcast-media:hover {
    transform: scale(1.02);
}

.podcast-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0.9;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
}

.podcast-media:hover .podcast-play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(124, 77, 255, 0.4);
}

.post-card .post-media.podcast-media img {
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.post-card:hover .post-media.podcast-media img {
    filter: brightness(0.8);
}

/* Dark theme support */
.dark-theme .podcast-play-button {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.4);
}

.dark-theme .post-card .post-media.podcast-media img {
    filter: brightness(0.8);
}

.dark-theme .post-card:hover .post-media.podcast-media img {
    filter: brightness(0.7);
}

/* Podcast specific styles */
#podcasts-grid {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

#podcasts-grid .post-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 77, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

#podcasts-grid .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(124, 77, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.2);
}

#podcasts-grid .post-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#podcasts-grid .post-media {
    width: 100%;
    padding-top: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
}

#podcasts-grid .post-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

#podcasts-grid .podcast-play-button {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--primary);
    width: 56px;
    height: 56px;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.3);
}

#podcasts-grid .post-media:hover .podcast-play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#podcasts-grid .post-media:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

#podcasts-grid .post-text {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#podcasts-grid .post-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#podcasts-grid .post-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden; display: block;
}

#podcasts-grid .post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid rgba(124, 77, 255, 0.1);
    margin-top: auto;
    background: var(--surface-light);
}

#podcasts-grid .post-date {
    font-size: 13px;
    color: var(--text-secondary);
}

#podcasts-grid .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

#podcasts-grid .read-more:hover {
    transform: translateX(4px);
}

#podcasts-grid .read-more i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

/* Dark theme adjustments */
.dark-theme #podcasts-grid .post-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme #podcasts-grid .post-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.dark-theme #podcasts-grid .post-meta {
    background: rgba(0, 0, 0, 0.2);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    #podcasts-grid {
        padding: 16px;
        gap: 16px;
        grid-template-columns: 1fr;
    }

    #podcasts-grid .post-media {
        padding-top: 75%; /* 4:3 aspect ratio for mobile */
    }

    #podcasts-grid .post-text {
        padding: 12px;
    }

    #podcasts-grid .post-text h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    #podcasts-grid .post-description {
        font-size: 13px;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }

    #podcasts-grid .post-meta {
        padding: 10px 12px;
    }
}

/* Loading animation for podcasts */
#podcasts-grid .loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#podcasts-grid .loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* About Tab Styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.about-hero {
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
}

.about-hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #000, #333);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-tag {
    font-size: 13px;
    padding: 0.5rem 1rem;
    background: #f8f8f8;
    border-radius: 100px;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.about-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: left;
}

.about-description p {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    letter-spacing: 0.01em;
}

.about-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.about-item:hover {
    transform: translateX(8px);
    border-color: #e0e0e0;
    background: #fafafa;
}

.item-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1;
}

.item-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    letter-spacing: 0.01em;
}

.item-content p {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    margin: 0;
    letter-spacing: 0.01em;
}

.about-cta {
    text-align: center;
    margin-top: 3rem;
}

.minimal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 100px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.minimal-cta:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.minimal-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.minimal-cta:hover svg {
    transform: translateX(4px);
}

/* Header Tabs Mobile Improvements */
@media (max-width: 768px) {
    .header-tabs {
        padding: 0.75rem 1rem;
    }

    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 13px;
    }

    .tab-button i {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .tab-button span {
        font-weight: 500;
        letter-spacing: 0.01em;
    }
}

/* Dark theme support */
.dark-theme .about-hero h1 {
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
}

.dark-theme .hero-tag {
    background: #222;
    color: #fff;
}

.dark-theme .about-item {
    background: #1a1a1a;
    border-color: #333;
}

.dark-theme .about-item:hover {
    background: #222;
    border-color: #444;
}

.dark-theme .item-number {
    color: #444;
}

.dark-theme .item-content h3 {
    color: #fff;
}

.dark-theme .item-content p,
.dark-theme .about-description p {
    color: #999;
}

.dark-theme .minimal-cta {
    color: #fff;
    border-color: #333;
}

.dark-theme .minimal-cta:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* Enhanced responsive styles */
@media (max-width: 480px) {
    .about-content {
        padding: 3rem 1rem;
    }

    .about-hero {
        margin-bottom: 2rem;
    }

    .hero-tag {
        font-size: 12px;
        padding: 0.4rem 0.875rem;
    }

    .about-item {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .item-number {
        font-size: 1.125rem;
    }

    .minimal-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .about-content {
        padding: 5rem 2rem;
    }

    .about-grid {
        gap: 2rem;
    }

    .about-item {
        padding: 1.75rem;
    }
}

#channel-posts-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 100%;
}

#channel-tab .post-card {
    width: 100%;
    max-width: 100%;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124, 77, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: auto;
    max-height: none;
    box-sizing: border-box;
}

#channel-tab .post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.2);
}

#channel-tab .post-content {
    width: 100%;
    display: block;
    height: auto;
    max-height: none;
    overflow: hidden;
}

#channel-tab .post-media {
    display: none;
}

#channel-tab .post-text {
    padding: 24px;
    display: block;
    height: auto;
    max-height: none;
    overflow: hidden;
}

#channel-tab .post-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    width: 100%;
}

#channel-tab .post-description p {
    margin-bottom: 16px;
    overflow: hidden;
    width: 100%;
}

#channel-tab .post-description p img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px 0;
    border-radius: var(--radius-md);
}

#channel-tab .post-meta {
    padding: 24px;
    padding-top: 0;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(124, 77, 255, 0.1);
}

#channel-tab .post-date {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

#channel-tab .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#channel-tab .read-more:hover {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
}

#channel-tab .read-more i {
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #channel-posts-container {
        padding: 12px;
    }

    #channel-tab .post-media {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .post-media-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 480px) {
    #channel-posts-container {
        padding: 8px;
    }

    .post-media-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 6px;
    }
}

/* Dark theme support */
.dark-theme #channel-tab .post-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme #channel-tab .post-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.dark-theme #channel-tab .post-media {
    background: rgba(0, 0, 0, 0.2);
}

/* Loading and Error States */
#channel-posts-container .loading,
#channel-posts-container .error {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    background: var(--surface);
    border-radius: var(--radius-lg);
    margin: 20px 0;
}

#channel-posts-container .error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Dark theme for stations */
.dark-theme .station-item {
    background: var(--surface);
    color: var(--text);
}

.dark-theme .station-item:hover {
    background: var(--surface-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dark-theme .station-item-info h3 {
    color: var(--text);
}

.dark-theme .station-item-info p {
    color: var(--text-secondary);
}

.dark-theme .station-frequency {
    color: var(--text-secondary);
}

.dark-theme .favorite-button {
    color: var(--text-secondary);
}

.dark-theme .favorite-button:hover {
    background: var(--surface-light);
}

/* Dark theme for main content */
.dark-theme .stations-list {
    background: var(--background);
}

.dark-theme .tab-content {
    background: var(--background);
    color: var(--text);
}

.dark-theme .main-view {
    background: var(--background);
}

.dark-theme .app-container {
    background: var(--background);
}

/* Now Playing View */
.dark-theme .now-playing-view {
    background: var(--background);
}

.dark-theme .now-playing-header {
    background: var(--background);
}

.dark-theme .back-button {
    background: var(--primary);
}

.dark-theme .station-logo-large {
    border-radius: 50%;
    overflow: hidden;
    margin-top: 60px;
    margin-bottom: 32px;
}

.dark-theme .station-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dark-theme .now-playing-info {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.dark-theme .now-playing-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dark-theme .now-playing-info p {
    font-size: 16px;
    color: var(--text-secondary);
}

.dark-theme .control-button {
    background: var(--primary);
}

.dark-theme .control-button:hover {
    background: linear-gradient(135deg, var(--primary), #5364f7);
}

.dark-theme .control-button:active {
    background: var(--primary);
}

.dark-theme .player-controls {
    margin-top: 60px;
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
}

.dark-theme .mini-player {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: white;
}

.dark-theme .mini-player:hover {
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.dark-theme .mini-player-button {
    background: rgba(255, 255, 255, 0.15);
}

.dark-theme .mini-player-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.dark-theme .mini-player-button.loading {
    background: rgba(255, 255, 255, 0.1);
}

.dark-theme .mini-player.loading {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.dark-theme .mini-player.loading .mini-player-button::before {
    border-top-color: rgba(255, 255, 255, 0.8);
}

.dark-theme .mini-player-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.dark-theme .mini-player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dark-theme .mini-player-info {
    flex: 1;
    min-width: 0;
}

.dark-theme .mini-player-info h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-theme .mini-player-info p {
    font-size: 13px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-theme .mini-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark-theme .mini-player-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.dark-theme .mini-player-button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05);
}

.dark-theme .mini-player-button:active {
    transform: scale(0.95);
}

.dark-theme .solution {
    margin-top: 16px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    color: var(--text);
}

.dark-theme .solution strong {
    color: var(--primary);
}

.dark-theme .settings-info {
    margin-top: 16px;
    padding: 16px;
    background: var(--surface-light);
    border-radius: var(--radius-sm);
}

.dark-theme .settings-info h4 {
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 600;
}

.dark-theme .accordion-item {
    background: var(--surface);
}

.dark-theme .accordion-header:hover {
    background: var(--surface-light);
}

.dark-theme .accordion-header i {
    color: var(--primary);
}

.dark-theme .accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.dark-theme .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 16px;
    opacity: 0;
}

.dark-theme .accordion-item.active .accordion-content {
    max-height: 1000px;
    opacity: 1;
    padding: 0 16px 16px 16px;
}

.dark-theme .accordion-content p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.dark-theme .accordion-content ul {
    list-style-type: none;
    padding: 0;
    margin: 12px 0;
}

.dark-theme .accordion-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.dark-theme .accordion-content li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.dark-theme .podcast-media {
    background: var(--surface);
}

.dark-theme .podcast-media:hover {
    transform: scale(1.02);
}

.dark-theme .podcast-play-button {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.4);
}

.dark-theme .podcast-media:hover .podcast-play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(124, 77, 255, 0.4);
}

.dark-theme .post-card .post-media.podcast-media img {
    filter: brightness(0.8);
}

.dark-theme .post-card:hover .post-media.podcast-media img {
    filter: brightness(0.7);
}

.dark-theme #podcasts-grid .post-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme #podcasts-grid .post-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.dark-theme #podcasts-grid .post-meta {
    background: rgba(0, 0, 0, 0.2);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.dark-theme #podcasts-grid .post-date {
    color: var(--text-secondary);
}

.dark-theme #podcasts-grid .read-more {
    color: var(--primary);
}

.dark-theme #podcasts-grid .read-more:hover {
    transform: translateX(4px);
}

.dark-theme #podcasts-grid .read-more i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.dark-theme .telegram-embed {
    background: var(--surface);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.dark-theme .telegram-embed iframe {
    border: none !important;
    width: 100% !important;
}

.dark-theme .error-message {
    padding: 20px;
    text-align: center;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--radius-lg);
    margin: 20px 0;
}

.dark-theme .tgme_widget_message_photo_wrap {
    margin-bottom: 15px;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 100%;
}

.dark-theme .tgme_widget_message_photo {
    max-width: 100%;
    height: auto;
    display: block;
}

.dark-theme .tgme_widget_message_text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.dark-theme .tgme_widget_message_text a {
    color: var(--primary);
    text-decoration: none;
}

.dark-theme .tgme_widget_message_text a:hover {
    text-decoration: underline;
}
