/*
 * Адаптивные стили для Gastro Record
 * Полная поддержка всех мобильных устройств
 */

/* ===== ПЛАНШЕТЫ (до 1024px) ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    /* Хедер */
    .header-container {
        padding: 0 20px;
    }
    
    .main-navigation ul {
        gap: 25px;
    }
    
    /* Hero секция */
    .hero-title {
        font-size: 60px;
    }
    
    .hero-title-line.accent {
        font-size: 80px;
    }
    
    /* Карточки */
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ===== МАЛЕНЬКИЕ ПЛАНШЕТЫ (до 768px) ===== */
@media (max-width: 768px) {
    /* Хедер */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .header-container {
        height: 70px;
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    

    
    .site-logo {
        max-height: 40px;
    }
    
    /* Мобильное меню */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 45px;
        height: 45px;
        background: none;
        border: 2px solid var(--accent-primary);
        border-radius: 50%;
        cursor: pointer;
        margin-right: 10px;
        position: relative;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background-color: var(--accent-primary);
        margin: 3px 0;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Навигация */
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-glass);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-right: 1px solid var(--border-light);
        padding: 90px 20px 30px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        left: 0;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation a {
        font-size: 18px;
        display: block;
        padding: 10px 0;
    }
    
    /* Затемнение фона при открытом меню */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Переключатель темы */
    .theme-toggle {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .theme-toggle .toggle-text {
        display: none;
    }
    
    .theme-toggle .toggle-icon {
        font-size: 22px;
    }
    
    /* Hero секция */
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 48px;
        text-align: center;
    }
    
    .hero-title-line.accent {
        font-size: 64px;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-badge {
        display: table;
        margin: 0 auto 30px;
    }
    
    .hero-player-card {
        padding: 30px 20px;
    }
    
    .now-playing-track .track-artist-big {
        font-size: 24px;
    }
    
    .now-playing-track .track-name-big {
        font-size: 18px;
    }
    
    .hero-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-btn {
        width: 100%;
        padding: 15px;
    }
    
.track-source{
	display:none;
}
    
    .latest-tracks-card {
        padding: 20px;
    }
    
    .card-header h3 {
        font-size: 18px;
    }
    
    /* ===== КОМПАКТНЫЙ ФИКСИРОВАННЫЙ ПЛЕЕР ===== */
    .fixed-player {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 65px; /* Фиксированная высота - компактно */
        padding: 0;
        border-radius: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        border-top: 2px solid var(--accent-primary);
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    }
    
    .player-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 0 12px;
        height: 100%;
    }
    
    /* Левая часть с информацией о треке */
    .player-info {
        flex: 1;
        min-width: 0; /* Для корректной обрезки текста */
    }
    
    .now-playing {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        text-align: left;
    }
    
    .now-playing-label {
        font-size: 10px;
        padding: 3px 8px;
        background: var(--accent-primary);
        color: #000;
        border-radius: 30px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    
    .track-details {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    
    .track-artist {
        font-size: 12px;
        font-weight: 600;
        color: var(--accent-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }
    
    .track-name {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.8);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }
    
    /* Центр - кнопка управления */
    .player-controls {
        margin: 0;
        gap: 0;
        flex-shrink: 0;
    }
    
    .control-btn {
        width: 42px;
        height: 42px;
        border: 2px solid var(--accent-primary);
        background: transparent;
        color: var(--accent-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .control-btn:active {
        background: var(--accent-primary);
        color: #000;
        transform: scale(0.95);
    }
    
    .control-btn svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }
    
    /* Правая часть - только сердечко (без громкости) */
    .player-extras {
        display: flex;
        align-items: center;
        gap: 0;
        margin-left: 0;
        flex-shrink: 0;
    }
    
    .like-btn {
        width: 42px;
        height: 42px;
        font-size: 22px;
        color: rgba(255, 255, 255, 0.7);
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        transition: all 0.2s ease;
    }
    
    .like-btn:active {
        transform: scale(1.2);
        color: #ff3366;
    }
    
    .like-btn.active {
        color: #ff3366;
    }
    
    .volume-control {
        display: none; /* Скрываем громкость на мобильных */
    }
    
    /* Популярные треки */
    .popular-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 32px;
        text-align: center;
    }
    
    .section-subtitle {
        text-align: center;
        font-size: 16px;
    }
    
    .popular-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .popular-number {
        min-width: auto;
        font-size: 28px;
    }
    
    .popular-stats {
        text-align: center;
    }
    
    .popular-item:hover {
        transform: translateY(-5px) translateX(0);
    }
    
    /* Блок О станции */
    .about-station-section {
        padding: 40px 0;
    }
    
    .about-text {
        font-size: 14px;
    }
    
    .about-text p:first-child {
        font-size: 16px;
        padding-left: 15px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 40px;
    }
    
    .feature-title {
        font-size: 18px;
    }
    
    .feature-text {
        font-size: 14px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 25px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    /* Программы */
    .programs-section {
        padding: 40px 0;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .program-card {
        padding: 25px;
    }
    
    .program-title {
        font-size: 22px;
    }
    
    /* Стол заказов */
    .request-section {
        padding: 40px 0;
    }
    
    .request-cta {
        padding: 30px 20px;
    }
    
    .request-content h2 {
        font-size: 28px;
    }
    
    .request-content p {
        font-size: 16px;
    }
    
    .quick-request {
        flex-direction: column;
        gap: 12px;
    }
    
    .request-input,
    .request-submit {
        width: 100%;
        padding: 15px 20px;
    }
    
    .request-stats {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    /* Подписка */
    .subscribe-section {
        padding: 40px 0;
    }
    
    .subscribe-card {
        padding: 30px 20px;
    }
    
    .subscribe-card h3 {
        font-size: 26px;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .subscribe-input,
    .subscribe-btn {
        width: 100%;
        padding: 15px 20px;
    }
    
    /* Футер */
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 40px;
        margin-bottom: 65px; /* Отступ для фиксированного плеера */
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-top: 20px;
    }
    
    .social-links {
        justify-content: center;
        gap: 20px;
    }
    
    /* Страницы */
    .entry-header {
        margin: 30px 0 20px;
    }
    
    .entry-title {
        font-size: 36px;
    }
    
    /* Список треков */
    .tracklist-section {
        margin: 30px 0;
    }
    
    .tracklist-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .track-item {
        padding: 15px;
    }
    
    .track-number {
        font-size: 24px;
        min-width: 50px;
    }
    
    .request-track {
        padding: 8px 20px;
        font-size: 12px;
    }
}

/* ===== МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 480px) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Хедер */
    .header-container {
        height: 60px;
    }
    
    .site-logo {
        max-height: 40px;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
    }
    
    .main-navigation {
        width: 85%;
        padding: 80px 15px 20px;
    }
    
    .main-navigation a {
        font-size: 16px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 36px;
    }
    
    .hero-title-line.accent {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-player-card {
        padding: 25px 15px;
    }
    
    .now-playing-track .track-artist-big {
        font-size: 20px;
    }
    
    .now-playing-track .track-name-big {
        font-size: 16px;
    }
    
    /* Фиксированный плеер */
    .fixed-player {
        height: 60px;
    }
    
    .player-container {
        padding: 0 8px;
    }
    
    .now-playing-label {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .track-artist {
        font-size: 11px;
    }
    
    .track-name {
        font-size: 10px;
    }
    
    .control-btn {
        width: 38px;
        height: 38px;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .like-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
    
    /* Популярные треки */
    .section-title {
        font-size: 28px;
    }
    
    .popular-number {
        font-size: 24px;
        -webkit-text-stroke: 1px var(--accent-primary);
    }
    
    .popular-artist {
        font-size: 15px;
    }
    
    .popular-title {
        font-size: 13px;
    }
    
    .popular-count {
        font-size: 12px;
    }
    
    .popular-trend {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    /* Блок О станции */
    .about-text p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    .feature-title {
        font-size: 16px;
    }
    
    .feature-text {
        font-size: 13px;
    }
    
    .stat-number {
        font-size: 30px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Программы */
    .program-time {
        font-size: 12px;
    }
    
    .program-title {
        font-size: 20px;
    }
    
    .program-host {
        font-size: 14px;
    }
    
    .tag {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .program-remind {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    /* Заказы */
    .request-content h2 {
        font-size: 24px;
    }
    
    .request-content p {
        font-size: 14px;
    }
    
    .request-input,
    .request-submit {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .request-stats span {
        font-size: 12px;
    }
    
    /* Подписка */
    .subscribe-card h3 {
        font-size: 22px;
    }
    
    .subscribe-card p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .subscribe-input,
    .subscribe-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .social-proof {
        font-size: 12px;
    }
    
    /* Футер */
    .footer-widget .widget-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-navigation a {
        font-size: 13px;
    }
    
    .copyright {
        font-size: 12px;
    }
    
    .social-link {
        font-size: 16px;
    }
    
    /* Список треков */
    .tracklist-title {
        font-size: 28px;
    }
    
    .track-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .track-number {
        width: 100%;
        font-size: 20px;
    }
    
    .track-info {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .track-artist {
        font-size: 14px;
    }
    
    .track-title {
        font-size: 12px;
    }
    
    .request-track {
        width: 100%;
    }
    
    /* 404 страница */
    .error-404 .page-title {
        font-size: 80px;
    }
    
    .error-404 h2 {
        font-size: 24px;
    }
    
    .error-404 p {
        font-size: 14px;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .error-actions .button {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 360px) ===== */
@media (max-width: 360px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-title-line.accent {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .program-title {
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 26px;
    }
    
    .fixed-player {
        height: 55px;
    }
    
    .now-playing-label {
        font-size: 8px;
        padding: 2px 5px;
    }
    
    .track-artist {
        font-size: 10px;
    }
    
    .track-name {
        font-size: 9px;
    }
    
    .control-btn {
        width: 34px;
        height: 34px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .like-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

/* ===== ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ НА ТЕЛЕФОНАХ ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-title-line.accent {
        font-size: 42px;
    }
    
    .hero-player-card {
        padding: 20px;
    }
    
    .now-playing-track .track-artist-big {
        font-size: 18px;
    }
    
    .now-playing-track .track-name-big {
        font-size: 14px;
    }
    
    .fixed-player {
        height: 50px;
    }
    
    .player-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .now-playing {
        flex-direction: row;
    }
}

/* ===== ПЛАНШЕТЫ В ЛАНДШАФТЕ ===== */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-content {
        gap: 30px;
    }
    
    .hero-title {
        font-size: 50px;
    }
    
    .hero-title-line.accent {
        font-size: 64px;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* По умолчанию скрываем на десктопе */
.mobile-menu-toggle {
    display: none !important;
}

/* Показываем только на мобильных */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Скрываем левый блок на десктопе */
.header-left-actions {
    display: none;
}



/* Мобильная версия */
@media (max-width: 992px) {
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Показываем левый блок с кнопками */
    .header-left-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    /* Скрываем навигацию */
    .main-navigation {
        display: none;
    }
    
    /* Логотип по центру */
    .site-branding {
        margin: 0 auto;
    }
    

    
    /* Выпадающее меню */
    .main-navigation.active {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 70px);
        background: var(--bg-glass);
        backdrop-filter: blur(20px);
        z-index: 999;
        overflow-y: auto;
        padding: 20px;
    }
    
    .main-navigation.active ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation.active a {
        display: block;
        padding: 10px 0;
    }
    
    /* Переключатель темы на мобильных */
    .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}