/**
 * RadyoYol — ana sayfa mobil düzen (≤768px)
 * Desktop (≥769px) ve header/player kurallarına dokunmaz.
 */

@media (max-width: 768px) {
    /* ── Footer: sayfa sonunda, küçük metin ─────────────── */
    body {
        padding-bottom: 12px !important;
    }

    .legal-footer {
        position: static !important;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: auto !important;
    }

    .legal-footer .site-footer-bar {
        min-height: 0;
        gap: 6px;
        padding: 0;
    }

    .footer-legal {
        font-size: 10px;
        gap: 4px 8px;
        line-height: 1.35;
        justify-content: center;
        text-align: center;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .footer-legal a {
        font-size: 10px;
    }

    /* ── Ana sayfa container ─────────────────────────────── */
    .page-home .main-content {
        padding-bottom: 0 !important;
        overflow-x: clip;
    }

    .page-home .home-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 !important;
        gap: 10px;
        overflow-x: clip;
        box-sizing: border-box;
    }

    .page-home .home-main {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        align-items: stretch;
    }

    /* Grid sarmalayıcıları kaldır — çocuklar normal akışa girer */
    .page-home .home-left,
    .page-home .home-right,
    .page-home .home-panel-slot,
    .page-home .home-panel-slot--left,
    .page-home .home-panel-slot--right,
    .page-home .home-media-stack,
    .page-home .home-sponsors-slot {
        display: contents;
    }

    /* Tüm ana bloklar tam genişlik */
    .page-home .home-main > *,
    .page-home .home-slider-wrap,
    .page-home .home-slider-placeholder,
    .page-home .home-actions,
    .page-home .home-icon-buttons,
    .page-home .home-badges,
    .page-home .schedule-card,
    .page-home .ticker-wrap,
    .page-home .programcilar-section,
    .page-home .top20-section,
    .page-home .home-news-section,
    .page-home .home-media-center,
    .page-home .home-sponsors-section,
    .page-home .sponsors-section,
    .page-home .home-follow-us,
    .page-home .home-sidebar-duo,
    .page-home .forum-recent-widget,
    .page-home .live-dj-card,
    .page-home .listener-widget {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        position: relative;
        z-index: auto;
        flex-shrink: 0;
    }

    /* Mobil sıralama — önemli içerik üstte, sponsor/sosyal en altta */
    .page-home .home-slider-wrap,
    .page-home .home-slider-placeholder,
    .page-home .home-slider-wrap--featured {
        order: 1;
    }

    .page-home .home-actions {
        order: 2;
        margin: 0 !important;
        padding: 0.65rem !important;
    }

    .page-home .home-icon-buttons {
        display: none !important;
    }

    .page-home .schedule-card {
        order: 3;
        margin: 0 !important;
    }

    .page-home .live-dj-card {
        order: 4;
        margin: 0 !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    .page-home .ticker-wrap {
        order: 5;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        transform: none !important;
    }

    .page-home .programcilar-section {
        order: 6;
        margin: 0 !important;
    }

    .page-home .home-news-section {
        order: 7;
        margin: 0 !important;
    }

    .page-home .home-media-center {
        order: 7;
        margin: 0 !important;
    }

    /* Google Play / App Store bloğu mobil akışın EN ALTINA alınır
       (Bizi Takip Edin order:10'dan sonra). Yalnızca order değişir; içerik
       sırası/genişlik/masaüstü etkilenmez, display:none/hack kullanılmaz. */
    .page-home .home-badges {
        order: 11;
        margin: 0 !important;
    }

    .page-home .top20-section {
        order: 8;
    }

    .page-home .home-sidebar-duo,
    .page-home .forum-recent-widget {
        order: 8;
    }

    .page-home .listener-widget {
        order: 8;
        margin: 0 !important;
    }

    .page-home .home-sponsors-section,
    .page-home .sponsors-section,
    .page-home .home-sponsors-slot > .sponsors-section {
        order: 9;
    }

    .page-home .home-follow-us {
        order: 10;
    }

    /* Üst margin/padding sıfırlama — üst üste binme önleme */
    .page-home .home-layout,
    .page-home .home-main,
    .page-home .home-left,
    .page-home .home-right,
    .page-home .home-slider-wrap,
    .page-home .home-actions,
    .page-home .btn-request-group,
    .page-home .home-content,
    .page-home .hero,
    .page-home .hero-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .page-home .home-right {
        align-self: stretch !important;
        max-width: 100% !important;
    }

    .page-home .home-panel-slot--right {
        max-width: 100% !important;
    }

    .page-home .btn-live {
        margin-top: 0 !important;
        transform: none !important;
    }

    .page-home .btn-live:hover {
        transform: none !important;
    }

    /* ── Slider ──────────────────────────────────────────── */
    .page-home .home-slider-wrap {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border-radius: 12px;
    }

    .page-home .home-slider {
        position: absolute;
        inset: 0;
        min-height: 0;
        height: 100%;
        width: 100%;
        overflow: hidden;
    }

    .page-home .home-slider__slide {
        position: absolute;
        inset: 0;
    }

    .page-home .home-slider__media {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .page-home .home-slider__content {
        max-width: 92%;
        padding: 0.85rem 1rem;
    }

    .page-home .home-slider__title {
        font-size: clamp(1rem, 4.5vw, 1.35rem);
    }

    .page-home .home-slider__subtitle {
        font-size: clamp(0.78rem, 3.2vw, 0.92rem);
    }

    /* ── Haber / medya / kart grid ─────────────────────── */
    .page-home .home-news-layout {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .page-home .home-news-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .page-home .home-media-duo {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .page-home .home-media-stack .home-media-duo .video-gallery-widget,
    .page-home .home-media-stack .home-media-duo .photo-gallery-announcement-widget {
        height: auto;
        min-height: 280px;
        max-height: none;
        width: 100%;
    }

    .page-home .home-follow-us__grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .page-home .programcilar-swiper-wrap,
    .page-home .sponsors-swiper-wrap {
        overflow: hidden;
        max-width: 100%;
    }

    .page-home .live-dj-photo-wrap img,
    .page-home .programci-card__img,
    .page-home .home-news-slide__img,
    .page-home .store-badge,
    .page-home .player-icon-img {
        max-width: 100%;
        height: auto;
    }

    .page-home .home-badges .store-badge {
        max-height: 44px;
        width: auto;
        object-fit: contain;
    }

    .page-home .home-icon-buttons a.icon-link {
        min-width: 44px;
        min-height: 44px;
    }

    /* ── İstekler: sola döngülü kaydırma (scrollbar yok) ─── */
    .page-home .ticker-wrap,
    .page-home .ticker,
    .page-home .ticker__viewport {
        overflow: hidden !important;
        overflow-x: hidden !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .page-home .ticker__viewport {
        flex: 1;
        min-width: 0;
    }

    .page-home .ticker__viewport::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .page-home .ticker__track {
        display: inline-flex !important;
        align-items: center;
        flex-wrap: nowrap;
        width: max-content !important;
        max-width: none !important;
        white-space: nowrap;
        will-change: transform;
    }

    .page-home .ticker__group,
    .page-home .ticker__group[aria-hidden="true"] {
        display: inline-flex !important;
        align-items: center;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    .page-home .ticker__item {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0 0.5rem;
    }

    .page-home .ticker__logo {
        display: inline-block !important;
        flex-shrink: 0;
    }

    .page-home .ticker__empty {
        display: inline-block;
        white-space: nowrap;
        padding: 0 0.5rem;
    }

    /* ── Taşma önleme (yayın akışı; istekler hariç) ─────── */
    .page-home .schedule-list-wrap {
        max-width: 100%;
        overflow: visible;
    }

    /* ── Yayın Akışı: kompakt günler + net program kartları ── */
    .page-home .schedule-top-bar {
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0.5rem 0.65rem 0.45rem;
    }

    .page-home .schedule-top-bar__title {
        width: 100%;
        font-size: 0.82rem;
    }

    .page-home .schedule-days-bar {
        width: 100%;
        gap: 3px;
    }

    .page-home .schedule-day {
        flex: 1 1 0;
        min-width: 0;
        padding: 3px 1px;
        min-height: 22px;
        border-radius: 6px;
        font-size: 0;
        line-height: 1;
    }

    .page-home .schedule-day::after {
        font-size: 0.58rem;
        font-weight: 700;
        line-height: 1.1;
        color: inherit;
    }

    .page-home .schedule-day[data-day="0"]::after { content: 'Pzt'; }
    .page-home .schedule-day[data-day="1"]::after { content: 'Sal'; }
    .page-home .schedule-day[data-day="2"]::after { content: 'Çar'; }
    .page-home .schedule-day[data-day="3"]::after { content: 'Per'; }
    .page-home .schedule-day[data-day="4"]::after { content: 'Cum'; }
    .page-home .schedule-day[data-day="5"]::after { content: 'Cmt'; }
    .page-home .schedule-day[data-day="6"]::after { content: 'Paz'; }

    .page-home .schedule-list-wrap {
        padding: 0 0.65rem 0.65rem;
    }

    .page-home .schedule-strip {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 7px !important;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        padding: 4px 0 0;
        margin-top: 2px;
        min-height: 0;
        align-items: stretch;
    }

    .page-home .schedule-chip {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        position: relative;
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 5px 6px !important;
        border-radius: 8px !important;
        font-size: 0.6rem;
        line-height: 1.15;
        min-height: 28px;
        gap: 0;
        overflow: hidden;
    }

    .page-home .schedule-chip__main {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: 100%;
        gap: 0;
        overflow: hidden;
        white-space: nowrap;
    }

    .page-home .schedule-chip__slot {
        display: inline;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%;
        font-size: 0.6rem;
        font-weight: 600;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page-home .schedule-chip__sep {
        display: inline !important;
        flex-shrink: 0;
        font-size: 0;
        line-height: 1.15;
        opacity: 1;
        margin: 0;
        padding: 0;
    }

    .page-home .schedule-chip__sep::after {
        content: ' - ';
        font-size: 0.6rem;
        font-weight: 400;
        opacity: 0.88;
    }

    .page-home .schedule-chip__dj {
        display: inline;
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.6rem;
        font-weight: 400;
        line-height: 1.15;
        opacity: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page-home .schedule-chip__dj-prefix {
        display: inline;
        font-weight: 400;
        opacity: 0.92;
    }

    .page-home .schedule-chip:not(:has(.schedule-chip__dj)) .schedule-chip__sep {
        display: none !important;
    }

    .page-home .schedule-chip.is-live {
        padding-right: 2.35rem !important;
    }

    .page-home .schedule-chip .live-badge {
        position: absolute;
        top: 50%;
        right: 4px;
        transform: translateY(-50%);
        margin: 0;
        padding: 1px 4px;
        font-size: 0.5rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        line-height: 1.1;
        white-space: nowrap;
    }

    .page-home .schedule-chip.is-live {
        background-color: var(--ry-schedule-active, #c92a2a) !important;
        border: 1px solid color-mix(in srgb, var(--ry-schedule-active, #c92a2a) 80%, #fff 20%) !important;
        color: #fff !important;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.18),
            0 3px 10px rgba(0, 0, 0, 0.28) !important;
    }

    .page-home .schedule-chip.is-live .schedule-chip__dj {
        opacity: 1;
    }

    .page-home .schedule-chip.is-live .live-badge {
        background: rgba(0, 0, 0, 0.22);
        border: 1px solid rgba(255, 255, 255, 0.35);
        color: #fff;
    }

    .page-home .home-news-slider-wrap,
    .page-home .home-news-slide__media,
    .page-home .home-news-slide__img {
        max-width: 100%;
    }
}

/* Dar ekran ince ayar */
@media (max-width: 480px) {
    .page-home .home-slider__content {
        padding: 0.65rem 0.75rem;
    }

    .footer-legal {
        font-size: 10px;
    }
}

/* ── Mobil header + hero slider ince ayar (≤768px, masaüstüne dokunmaz) ── */
@media (max-width: 768px) {
    .header-inner {
        position: static !important;
    }

    /* Orta player: yalnızca yatay — nav genişliğinde tam merkez (dikey aynı) */
    .header-player-slot,
    .center-player-logo {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: var(--ry-header-h) !important;
        margin: 0 !important;
        transform: none !important;
        grid-area: player !important;
        display: block !important;
        z-index: 4;
        pointer-events: none;
    }

    .center-player-logo > *,
    .center-player-logo__disc,
    .header-bar-player--disc,
    .header-bar-player--disc * {
        pointer-events: none;
    }

    .center-player-logo .disc-overlay,
    .center-player-logo #discBtn {
        pointer-events: auto;
    }

    .brand-area,
    .header-mobile-toggle {
        position: relative;
        z-index: 6;
        pointer-events: auto;
    }

    body.nav-open .header-player-slot,
    body.nav-open .center-player-logo {
        z-index: 0 !important;
        pointer-events: none !important;
    }

    body.nav-open .center-player-logo .disc-overlay,
    body.nav-open #discBtn {
        pointer-events: none !important;
    }

    .center-player-logo__disc {
        left: 50% !important;
        right: auto !important;
        top: calc(var(--ry-header-h) - 1px) !important;
        transform: translate(-50%, -50%) !important;
        width: var(--ry-header-disc-outer);
        height: var(--ry-header-disc-outer);
    }

    /* ── Logo + slogan (player CSS dokunulmaz) ── */
    .brand-area {
        display: flex;
        align-items: center;
        min-width: 0;
        max-width: 100%;
    }

    .brand-area__link,
    a.brand-area__link.nav-logo {
        display: flex !important;
        align-items: center !important;
        gap: clamp(6px, 1.6vw, 8px) !important;
        min-width: 0;
        text-decoration: none;
    }

    .brand-area__link img,
    .nav-logo img {
        height: clamp(38px, 10vw, 50px) !important;
        width: auto !important;
        max-width: min(118px, 36vw) !important;
        flex-shrink: 0;
        object-fit: contain;
    }

    .brand-area__slogan-wrap,
    .nav-logo-slogan-wrap {
        flex: 0 1 auto;
        align-self: center;
        min-width: 0;
        max-width: 5.15em;
    }

    .brand-area__slogan,
    .nav-logo-slogan {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
        overflow: hidden;
        text-overflow: clip;
        font-size: clamp(0.36rem, 1.75vw, 0.42rem);
        font-weight: 600;
        line-height: 1.22;
        letter-spacing: 0.018em;
        max-height: calc(1.22em * 2);
    }

    .header-bar-player--disc .bottom-bar-logo-wrap .disc-overlay {
        width: 28px;
        height: 28px;
    }

    .header-bar-player--disc .disc-overlay .icon.play {
        border-top-width: 5px;
        border-bottom-width: 5px;
        border-left-width: 8px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .header-bar-player--disc .disc-overlay .icon.pause::before,
    .header-bar-player--disc .disc-overlay .icon.pause::after {
        width: 3px;
        height: 10px;
    }

    .header-bar-player--disc .disc-overlay .icon.pause {
        width: 11px;
        height: 11px;
        margin: 0 !important;
    }

    /* Hero slider pagination — küçük noktalar, ortalı */
    .home-slider__nav {
        bottom: 8px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        padding: 0;
        gap: 5px;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }

    .home-slider__dot,
    .home-slider__dot.is-active {
        width: 7px;
        height: 7px;
        min-width: 7px;
        min-height: 7px;
        max-width: 7px;
        max-height: 7px;
        padding: 0;
        transform: none;
        scale: 1;
    }
}

