/* Ana container */
.main-container {
    margin-top: var(--header-height); 
    padding-top: 2rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Player özel stilleri */
.plyr {
    border-radius: 12px;
    overflow: hidden;
    --plyr-color-main: var(--primary-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

/* İşleme ekranı stilleri */
.processing-title {
    color: var(--primary-color); 
    margin-bottom: 1rem; 
    font-size: 1.5rem;
}

.processing-text {
    color: var(--text-color); 
    margin-bottom: 1.5rem; 
    line-height: 1.6;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Lyrics stil - ortalanmış */
.lyrics-container {
    margin: 2.5rem auto;
    background: var(--surface-hover);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

.lyrics {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 12px;
    line-height: 1.8;
    margin-top: 1rem;
    text-align: center; /* Sözleri ortalama */
    font-size: 1.1rem; /* Daha okunaklı boyut */
    position: relative; /* Gösterge için pozisyon referansı */
}

/* Mobil kaydırma göstergesi */
.mobile-scroll-indicator {
    display: none; /* Varsayılan olarak gizli */
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--primary-color);
    font-size: 0.85rem;
    animation: fadeInOut 2s ease-in-out infinite;
    background: linear-gradient(to top, var(--surface-color) 60%, transparent);
    padding-top: 30px;
    pointer-events: none; /* Tıklamaya engel olmaması için */
}

.scroll-arrow {
    margin-bottom: 5px;
    animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

.lyrics::-webkit-scrollbar {
    width: 6px;
}

.lyrics::-webkit-scrollbar-track {
    background: transparent;
}

.lyrics::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 6px;
}

/* Bölüm başlıkları */
.section-title {
    color: var(--heading-color);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Medya bölümü */
.media-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.media-block {
    background: var(--surface-hover);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.audio-player, .video-player {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: var(--surface-color);
}

.video-player {
    max-height: 300px;
}

/* CTA buton hover */
.cta-container {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(45deg, var(--primary-light), var(--surface-hover));
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.cta-container a:first-child:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cta-container a:last-child:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

/* İndirme butonu */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.download-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* Aksiyon butonları */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.share-btn {
    background: var(--primary-color);
    color: white;
}

.share-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
}

.separate-btn, .cover-btn {
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.separate-btn:hover, .cover-btn:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

/* İkon stilleri */
.section-icon, .meta-icon, .btn-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

.lyrics-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'%3E%3C/path%3E%3C/svg%3E");
}

.audio-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3'%3E%3C/path%3E%3C/svg%3E");
}

.video-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M17 4v16M3 8h4m10 0h4M3 12h18M3 16h4m10 0h4M4 20h16a1 1 0 001-1V5a1 1 0 00-1-1H4a1 1 0 00-1 1v14a1 1 0 001 1z'%3E%3C/path%3E%3C/svg%3E");
}

.voice-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z'%3E%3C/path%3E%3C/svg%3E");
}

.download-icon {
    background-image: url("data:image/svg+xml,%3Csvg 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'%3E%3Cpath d='M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4'%3E%3C/path%3E%3C/svg%3E");
    width: 18px;
    height: 18px;
}

.share-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z'%3E%3C/path%3E%3C/svg%3E");
}

.separate-icon {
    background-image: url("data:image/svg+xml,%3Csvg 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'%3E%3Cpath d='M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z'%3E%3C/path%3E%3C/svg%3E");
}

.cover-icon {
    background-image: url("data:image/svg+xml,%3Csvg 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'%3E%3Cpath d='M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3'%3E%3C/path%3E%3C/svg%3E");
}

.date-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2374787d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'%3E%3C/path%3E%3C/svg%3E");
    width: 16px;
    height: 16px;
}

.genre-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2374787d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3'%3E%3C/path%3E%3C/svg%3E");
    width: 16px;
    height: 16px;
}

/* Animasyonlar */
@keyframes spinner {
    to { transform: rotate(360deg); }
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Spinner */
.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(var(--primary-color-rgb), 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spinner 1.2s linear infinite;
}

.mini-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(var(--primary-color-rgb), 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spinner 1s linear infinite;
}

/* Progress bar */
.progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    width: 100%;
    background: var(--primary-color);
    animation: progress 2s infinite ease-in-out;
}

/* Şarkı görünümü */
.song-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding-bottom: 5rem; /* Player için alt boşluk */
}

.song-view.processing {
    text-align: center;
}

.song-title {
    text-align: center;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.song-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.song-meta div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.song-controls {
    background: var(--surface-hover);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Şarkı kontrol butonları */
.song-control-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.control-link {
    text-decoration: none;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.control-link:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* Mobil düzen için */
@media (max-width: 600px) {
    .song-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .song-control-buttons {
        width: 100%;
    }
}

/* Sabit alt player - doğrudan koyu arkaplan tanımlama */
.fixed-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #282c34 !important; /* Doğrudan koyu renk */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    color: white;
    transform: none !important; /* Scroll ile kaybolmasını engelle */
}

.fixed-player:hover {
    transform: none;
}

.fixed-player-inner {
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.fixed-player .song-info {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    max-width: 200px;
    margin-left: 0;
}

.fixed-player .player-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.fixed-player .player-style {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
}

.fixed-player .player-controls {
    display: flex;
    align-items: center;
    flex-grow: 1;
    position: relative;
}

/* Player kontrolleri için özel stil */
.fixed-player .plyr {
    flex-grow: 1;
    --plyr-color-main: var(--primary-color);
    --plyr-range-thumb-background: white;
    --plyr-range-fill-background: var(--primary-color);
    --plyr-audio-controls-background: transparent;
    --plyr-audio-control-color: rgba(255, 255, 255, 0.8);
    --plyr-audio-control-color-hover: white;
    box-shadow: none;
}

.fixed-player .plyr__controls {
    padding: 0;
}

.fixed-player .download-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    color: white !important;
}

.fixed-player .download-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.3) !important;
}

.fixed-player .download-btn i,
.fixed-player .download-btn svg,
.fixed-player .download-btn path,
.fixed-player .download-btn .download-icon {
    color: white !important;
    fill: white !important;
    stroke: white !important;
    filter: brightness(10) !important;
}

/* SVG etiketleri doğrudan hedefle */
.fixed-player .download-btn svg * {
    stroke: white !important;
    fill: white !important;
}

/* Player içindeki butonlar için stil */
.fixed-player .plyr__control {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.fixed-player .plyr__control:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.fixed-player .plyr__control svg {
    fill: white !important;
}

/* İlerleme çubuğu için açık renkler */
.fixed-player .plyr--full-ui input[type=range] {
    color: white !important;
}

.fixed-player .plyr__progress__buffer {
    background-color: rgba(255, 255, 255, 0.4) !important;
}

.fixed-player .plyr--full-ui input[type=range]::-webkit-slider-thumb {
    background-color: white !important;
}

.fixed-player .plyr--full-ui input[type=range]::-moz-range-thumb {
    background-color: white !important;
}

.fixed-player .plyr--full-ui input[type=range]::-ms-thumb {
    background-color: white !important;
}

.fixed-player .plyr__menu__container {
    background: #282c34 !important;
    color: white !important;
}

/* İndirme ikonunu beyaz olarak tanımla */
.fixed-player .download-btn .download-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4'%3E%3C/path%3E%3C/svg%3E") !important;
    width: 18px;
    height: 18px;
}

/* İkon için özel CSS kural ekleyelim */
.fixed-player .download-btn .download-icon {
    /* SVG filtreleri ile rengi zorla değiştir */
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(145deg) brightness(103%) contrast(101%) !important;
    opacity: 1 !important;
    background-color: transparent !important;
}

/* Player indirme butonu yeniden konumlandırma */
.player-download-btn {
    margin-right: 0.75rem !important;
    margin-left: 0 !important;
    /* Butonu sabit boyutta tut */
    flex-shrink: 0;
    width: 36px !important;
    height: 36px !important;
}

/* Responsive ayarlamalar */
@media (max-width: 768px) {
    .song-view {
        padding: 1.5rem;
    }
    
    .media-section {
        grid-template-columns: 1fr;
    }
    
    .song-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .fixed-player {
        padding: 0.5rem 0.5rem;
        height: auto;
    }
    
    .fixed-player-inner {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        grid-template-areas: 
            "download info"
            "controls controls";
        gap: 0.5rem;
        width: 100%;
        align-items: center;
    }
    
    .player-download-btn {
        grid-area: download;
        margin: 0 0.5rem 0 0 !important;
        align-self: center;
        width: 32px !important;
        height: 32px !important;
    }
    
    .fixed-player .song-info {
        grid-area: info;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
        max-width: calc(100vw - 50px);
        overflow: hidden;
    }
    
    .fixed-player .player-title {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    
    .fixed-player .player-style {
        font-size: 0.75rem;
    }
    
    .fixed-player .player-controls {
        grid-area: controls;
        width: 100%;
        margin: 0;
        padding-top: 0.25rem;
    }
    
    .fixed-player .plyr {
        height: 30px;
    }
    
    .fixed-player .plyr__controls {
        padding: 0;
        min-height: 30px;
    }
    
    .fixed-player audio {
        height: 30px;
    }
    
    .song-view {
        padding-bottom: 7.5rem;
    }
    
    /* Mobil cihazlarda kaydırma göstergesini aktifleştir */
    .mobile-scroll-indicator {
        display: block;
    }
    
    /* Kaydırma yapıldığında göstergeyi gizle */
    .lyrics.scrolled .mobile-scroll-indicator {
        display: none;
    }
    
    .song-management-panel {
        margin: 1rem 0;
    }
}

/* En küçük ekranlar için ek optimizasyon */
@media (max-width: 375px) {
    .fixed-player-inner {
        grid-template-columns: 28px 1fr;
    }
    
    .player-download-btn {
        width: 28px !important;
        height: 28px !important;
    }
    
    .fixed-player .player-title {
        font-size: 0.85rem;
    }
    
    .fixed-player .player-style {
        font-size: 0.7rem;
    }
}

/* Mobil görünümde kayma sorununu düzelt */
body {
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

/* Normal indirme butonu için stil eski haline döndürüldü, 
   Player içindekinden farklı olması için ayrı bir sınıf kullanılıyor */
.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-outline-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* Modern Şarkı Yönetimi Paneli */
.song-management-panel {
    background: var(--surface-color);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--surface-hover);
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-header:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--heading-color);
}

.panel-toggle {
    transition: transform 0.3s ease;
}

.panel-toggle.open .chevron-icon {
    transform: rotate(180deg);
}

.panel-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.panel-content.open {
    max-height: 200px;
    padding: 1rem 1.5rem 1.5rem;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.action-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.management-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--surface-hover);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}


.primary-btn {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.status-select {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .panel-actions {
        flex-direction: column;
    }
    
    .action-group {
        width: 100%;
    }
    
    .management-btn {
        flex: 1;
    }
}

/* Üst İlerleme Çubuğu Stilleri */
.top-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background-color: var(--surface-color, white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-progress-container.active {
    transform: translateY(0);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-color, #333);
}

#downloadFileName {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

#downloadPercent {
    font-weight: bold;
}

.progress-track {
    height: 6px;
    background-color: var(--border-color, #e0e0e0);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background-color: var(--primary-color, #3478F6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Başarılı indirme durumu */
.top-progress-container.complete .progress-fill {
    background-color: var(--success-color, #4CAF50);
}

/* Hata durumu */
.top-progress-container.error .progress-fill {
    background-color: var(--error-color, #F44336);
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .top-progress-container {
        padding: 8px 15px;
    }
    
    .progress-info {
        font-size: 12px;
    }
}

/* İndirme butonu için özel stil */
.plyr__control--download {
    color: var(--plyr-color-main, #00b3ff);
}

.plyr__control--download:hover {
    background: rgba(var(--plyr-color-main-rgb, 0, 179, 255), 0.1);
}

.plyr__control--download svg {
    stroke-width: 2px;
}

.spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
} 