/* --- FŐ KONTÉNER --- */
.thc-radio-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1a1a1e; 
    border-radius: 8px; 
    padding: 12px 16px;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    color: #ffffff;
    width: 100%; /* Flexibilis szélesség */
    box-sizing: border-box;
}

/* --- BAL OLDAL: Borítókép --- */
.thc-player-left {
    flex-shrink: 0;
    display: flex;
}
.thc-cover-img {
    width: 114px;  /* Szélesebb, téglalap alakú (3:2 arány) */
    height: 76px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    background-color: #2a2a2e; 
}

/* --- KÖZÉP: Információk --- */
.thc-player-middle {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; 
}
.thc-track-title {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}
.thc-track-meta {
    font-size: 13px;
    color: #a0a0a0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', sans-serif;
}

/* --- JOBB OLDAL: Vezérlők --- */
.thc-player-right {
    display: flex;
    flex-direction: row; /* Egymás mellé kerül a Play és a hangerő ikon */
    align-items: center;
    gap: 16px; 
    flex-shrink: 0;
}

/* Play Gomb */
.thc-btn-play {
    width: 44px; 
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #1a1a1e;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 0;
}
.thc-btn-play:hover {
    transform: scale(1.05);
    background-color: #e0e0e0;
}
.thc-btn-play svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* --- HANGERŐ KONTÉNER ÉS IKON --- */
.thc-volume-container {
    display: none; /* Mobilokon rejtve */
    position: relative; /* Ehhez horgonyozzuk a felugró ablakot */
}

/* PC Nézet (768px felett) */
@media (min-width: 768px) {
    .thc-volume-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.thc-btn-volume {
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.thc-btn-volume:hover {
    color: #ffffff;
}
.thc-btn-volume svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* --- FELUGRÓ HANGERŐ CSÚSZKA --- */
.thc-volume-popup {
    position: absolute;
    bottom: calc(100% + 10px); /* Ikon fölé nyílik, kis réssel */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #2a2a2e;
    padding: 12px 8px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.thc-volume-popup.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Simán felcsúszik a helyére */
}

/* A tényleges csúszka (Függőleges új szabvány) */
.thc-volume-slider {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 6px;
    height: 80px;
    -webkit-appearance: none;
    appearance: none;
    background: #444;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}
.thc-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.1s;
}
.thc-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* --- TÖLTÉS ANIMÁCIÓ --- */
.thc-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(26, 26, 30, 0.2);
    border-top-color: #1a1a1e;
    border-radius: 50%;
    animation: thc-spin 1s linear infinite;
}
@keyframes thc-spin {
    to { transform: rotate(360deg); }
}

/* --- SZÖVEG FORMÁZÁS (PC NÉZETRE KÖTŐJEL VISSZARAKÁSA) --- */
@media (min-width: 768px) {
    .thc-track-artist::after {
        content: " - ";
        font-weight: 400;
    }
}

/* --- MOBIL NÉZET (767px és alatta) - CIKK KÁRTYA ELRENDEZÉS --- */
@media (max-width: 767px) {
    .thc-radio-footer {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start; /* Ez szünteti meg az óriási űrt! */
        padding: 20px;
        gap: 16px; /* Egységes, elegáns térköz a 3 fő blokk között */
    }
    
    .thc-player-left {
        width: 100%;
    }
    
    .thc-cover-img {
        width: 100%;
        height: auto;
        aspect-ratio: 3/2;
        border-radius: 8px;
    }
    
    .thc-player-middle {
        flex-grow: 0;
        width: 100%;
        margin: 0;
        overflow: visible; 
    }
    
    .thc-track-title {
        display: flex;
        flex-direction: column;
        white-space: normal;
        gap: 0px; /* Lecsökkentve 0-ra */
        margin-bottom: 0px; /* Lecsökkentve 0-ra */
    }
    
    .thc-track-artist {
        font-weight: 800;
        font-size: 18px;
        color: #ffffff;
        line-height: 1.1; /* Kisebb sorköz */
        margin-bottom: 4px; /* Fix térköz az előadó és a dal közé */
    }
    
    .thc-track-song {
        font-weight: 400;
        font-size: 16px;
        color: #e0e0e0;
        line-height: 1.2;
    }
    
    .thc-track-meta {
        white-space: normal;
        font-size: 13px;
        color: #888888;
        margin-top: 6px; /* Nagyobb térköz a meta fölé */
    }
    
    .thc-player-right {
        width: 100%;
        align-items: flex-start;
        justify-content: flex-start;
        padding-right: 0;
        padding-top: 8px; /* Több levegő a play gomb felett */
    }
    
    .thc-btn-play {
        width: 48px; /* Picit lekicsinyített Play gomb */
        height: 48px;
    }
    
    .thc-btn-play svg {
        width: 24px;
        height: 24px;
    }
}

.thc-logo-hover a:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* =========================================
   CIKK KÁRTYA (CARD) ELRENDEZÉS
========================================= */
.thc-radio-card {
    background-color: #1a1a1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 1. sor: Kép konténer (16:9 arány) */
.thc-radio-card .thc-card-image-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #2a2a2e;
}

.thc-radio-card .thc-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Szöveges tartalom és gombok befoglalója */
.thc-radio-card .thc-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 2-3. sor: Címek */
.thc-radio-card .thc-track-title {
    display: flex;
    flex-direction: column;
    white-space: normal;
    margin-bottom: 0;
    gap: 2px;
}

.thc-radio-card .thc-track-artist {
    font-weight: 800;
    font-size: 20px;
    color: #ffffff;
    line-height: 1.2;
}

/* Eltüntetjük a PC-s kötőjelet a kártyában is */
.thc-radio-card .thc-track-artist::after {
    content: ""; 
}

.thc-radio-card .thc-track-song {
    font-weight: 400;
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.3;
}

/* 4. sor: Évszám + Kiadó */
.thc-radio-card .thc-track-meta {
    white-space: normal;
    font-size: 13px;
    color: #888888;
    margin-top: 6px;
}

/* 5. sor: Gombok */
.thc-radio-card .thc-card-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1); /* Elegáns elválasztó vonal */
}

.thc-radio-card .thc-btn-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #1a1a1e;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 0;
}

.thc-radio-card .thc-btn-play:hover {
    transform: scale(1.05);
    background-color: #e0e0e0;
}

.thc-radio-card .thc-btn-play svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Hangerő gomb (A felugró ablak logikáját a korábbi CSS automatikusan kezeli) */
.thc-radio-card .thc-volume-container {
    display: none; /* Mobilon rejtve */
}

@media (min-width: 768px) {
    .thc-radio-card .thc-volume-container {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
}