/* Основные стили для страницы подкаста */
.podcast-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Шапка подкаста с обложкой */
.podcast-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
    text-align: center;
}

.podcast-cover-container {
    flex: 0 0 auto;
    max-width: 450px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.podcast-cover {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.podcast-info {
    flex: 1;
    padding-top: 10px;
}

.podcast-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.podcast-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 10px;
    margin-bottom: 0px;
    color: #64748b;
    font-size: 0.95rem;
}

.podcast-meta span {
    display: flex;
    align-items: center;
}

.podcast-meta i {
    margin-right: 8px;
}

.podcast-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: transparent;
    color: var(--primary-color, #2563eb);
    border: 2px solid var(--primary-color, #2563eb);
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action i {
    margin-right: 8px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
    background-color: var(--primary-color, #2563eb);
    color: white;
}

.share-podcast {
    color: #0ea5e9;
    border-color: #0ea5e9;
}

.share-podcast:hover {
    background-color: #0ea5e9;
}

.switch-to-video {
    color: #ef4444;
    border-color: #ef4444;
}

.switch-to-video:hover {
    background-color: #ef4444;
}

/* Стили для основного плеера */
.player-container {
    margin-bottom: 40px;
    border-radius: 20px;
    background: white;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.player-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

#podcast-player {
    display: none;  /* Скрытый аудиоэлемент */
}

.waveform-container {
    height: 100px;
    background: linear-gradient(to bottom, #fafafa, #f0f0f0);
    padding: 15px 0;
    width: 100%;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.player-controls {
    display: flex;
    flex-direction: column;
    padding: 20px 25px;
    background: white;
    border-top: 1px solid #e2e8f0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.control-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.control-group.secondary {
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 0;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    transition: all 0.2s ease;
    position: relative;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    background: #f1f5f9;
    color: var(--primary-color, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.play-pause-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ff8585, #dd5e98);
    color: white;
    border-radius: 50%;
    font-size: 1.6rem;
    box-shadow: 0 4px 10px rgba(221, 94, 152, 0.4);
}

.play-pause-btn:hover {
    background: linear-gradient(135deg, #ff8585, #dd5e98);
    color: white;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 15px rgba(221, 94, 152, 0.5);
}

.rewind-btn span, .forward-btn span {
    font-size: 0.7rem;
    position: absolute;
    bottom: 0;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #64748b;
    font-size: 0.9rem;
}

.progress-container {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff8585, #dd5e98);
    border-radius: 4px;
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
    box-shadow: 0 1px 2px rgba(221, 94, 152, 0.2);
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.volume-slider {
    width: 100px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
}

.volume-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff8585, #dd5e98);
    border-radius: 4px;
    width: 80%;
    position: relative;
    transition: all 0.2s ease;
}

.volume-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.speed-control select {
    border: 2px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    background: white;
    color: #1e293b;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
}

.speed-control select:hover,
.speed-control select:focus {
    border-color: #dd5e98;
    box-shadow: 0 1px 4px rgba(221, 94, 152, 0.2);
    outline: none;
}

/* Описание подкаста */
.podcast-description {
    margin-bottom: 40px;
}

.podcast-description h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.description-text {
    line-height: 1.7;
    color: #334155;
}

/* Контейнер кнопки "Поделиться" */
.share-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* Навигация между подкастами */
.podcast-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    margin-bottom: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    background: white;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.nav-link i {
    font-size: 0.9rem;
}



/* Tooltip */
.tooltip {
    position: fixed;
    background: #1e293b;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tooltip.show {
    opacity: 1;
}
