/* Explain: Styles for TV player, radio station cards, and general components. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.9), rgba(250, 249, 246, 0.6));
    backdrop-filter: blur(18px);
}

.brand-logo .logo-fill {
    fill: var(--logo-color);
}

.brand-logo .logo-line {
    stroke: var(--logo-color);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.82), rgba(255, 255, 255, 0.5));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.38);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(250, 249, 246, 0.62);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(74vh, 720px);
    min-height: 500px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.arch-frame-medium {
    height: 620px;
    max-width: 450px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.floating-note {
    position: absolute;
    right: -1.5rem;
    bottom: 4rem;
    display: flex;
    max-width: 260px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 1.5rem;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.floating-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 1.05rem;
}

.quiet-detail,
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.58);
    padding: 1.25rem;
}

.quiet-detail span {
    display: inline-flex;
    margin-bottom: 0.9rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.quiet-detail p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.contact-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-note i {
    margin-top: 0.15rem;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.contact-note-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-color);
}

.contact-note-value {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    word-break: break-word;
}

/* TV player */
.tv-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #10130f;
}

.tv-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #10130f;
}

.tv-embed {
    position: absolute;
    inset: 0;
}

/* Çerçevenin doğrudan çocuğu (oynatıcı kökü) alanı doldursun */
.tv-embed > * {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
}

/* Üçüncü taraf TV oynatıcısını (play4.player.im / yayin.com.tr / JW Player)
   her zaman çerçeveye tam oturt — ses çalıp görüntünün gelmemesinin
   en yaygın nedeni oynatıcı katmanının yüksekliğinin sıfır kalmasıdır. */
.tv-embed iframe,
.tv-embed video,
.tv-embed canvas,
.tv-embed object,
.tv-embed embed,
.tv-embed .jwplayer,
.tv-embed .jw-media,
.tv-embed .jw-video,
.tv-embed [id*="yayincomtr"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border: 0 !important;
}

.live-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    background: var(--primary-color);
    padding: 0.4rem 0.9rem;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.live-badge::before {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #ffffff;
    content: "";
    animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.tv-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 0;
    background: rgba(31, 46, 35, 0.45);
    color: #ffffff;
    transition: background 300ms ease;
}

.tv-play-overlay:hover {
    background: rgba(31, 46, 35, 0.6);
}

.tv-play-overlay.hidden {
    display: none;
}

.tv-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 999px;
    background: var(--button-color);
    color: var(--text-color);
    font-size: 1.4rem;
    box-shadow: var(--shadow-button);
}

/* Radio stations */
.station-card {
    display: flex;
    flex-direction: column;
    border-radius: 2rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    transition: border-color 300ms ease, transform 300ms ease;
}

.station-card:hover {
    border-color: rgba(88, 129, 87, 0.5);
    transform: translateY(-4px);
}

.station-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    border-radius: 1.1rem;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 1.3rem;
}

.station-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    background: var(--terracotta-soft);
    padding: 0.35rem 0.75rem;
    color: var(--sage-dark);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.station-live::before {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--accent-color);
    content: "";
}

.station-card.is-playing .station-live::before {
    animation: live-pulse 1.4s ease-in-out infinite;
}

.station-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border: 0;
    border-radius: 999px;
    background: var(--button-color);
    color: var(--text-color);
    font-size: 1.2rem;
    box-shadow: var(--shadow-button);
    transition: background 300ms ease, transform 300ms ease;
}

.station-toggle:hover {
    background: var(--primary-hover);
}

.station-toggle i {
    pointer-events: none;
}

.eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 1.3rem;
}

.eq span {
    width: 3px;
    height: 30%;
    border-radius: 2px;
    background: var(--accent-color);
    opacity: 0.4;
}

.station-card.is-playing .eq span {
    opacity: 1;
    animation: eq-bounce 0.9s ease-in-out infinite;
}

.station-card.is-playing .eq span:nth-child(2) { animation-delay: 0.15s; }
.station-card.is-playing .eq span:nth-child(3) { animation-delay: 0.3s; }
.station-card.is-playing .eq span:nth-child(4) { animation-delay: 0.45s; }
.station-card.is-playing .eq span:nth-child(5) { animation-delay: 0.6s; }

@keyframes eq-bounce {
    0%, 100% { height: 25%; }
    50% { height: 100%; }
}

.volume-range {
    width: 100%;
    max-width: 8rem;
    accent-color: var(--accent-color);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: var(--primary-color);
}

.form-status.error {
    color: #9B4A3D;
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large,
    .arch-frame-medium {
        height: 510px;
        min-height: 0;
    }

    .arch-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 450px);
    }

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -2.5rem auto 0;
    }

    .tv-play-icon {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.15rem;
    }
}

.station-status {
    min-height: 1.25rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.station-status.error {
    color: #9B4A3D;
}