/* ==========================================
   BASE
   ========================================== */

body {
    margin: 0;
    padding: 0;
    background-image: url('../images/white.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* ==========================================
   HEADER
   ========================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;

    height: 100px;
    padding: 0 30px;
    background: rgba(250,250,250,.7);

    z-index: 999;
    box-sizing: border-box;

    backdrop-filter: blur(10px);
}

.header_logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 20px;
}

.header_logo img {
    max-height: 100%;
    width: auto;
}

.header_links {
    display: flex;
    align-items: center;
    gap: 8px;

    z-index: 1;
}

.mobile_menu_wrapper {
    z-index: 1;
}

.header_buttons {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header_buttons a {
    text-decoration: none;
    color: #5c2e2e;

    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.2px;

    transition: color .2s ease;

    font-family: 'Dela Gothic One', cursive;
}

.header_buttons a:hover {
    color: #3f1f1f;
}

.header_icon {
    display: flex;
    align-items: center;
}

.header_icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;

    filter: brightness(0) saturate(100%)
            invert(17%) sepia(19%) saturate(1107%)
            hue-rotate(314deg) brightness(95%) contrast(92%);
}

.mobile_only_button {
    display: none;
}

/* ==========================================
   GRID
   ========================================== */

.grid_container {
    align-items: start;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
}

/* ==========================================
   MUSIC SUbNAV
   ========================================== */

.music_subnav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.music_subnav_item {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 22px;

    background: rgba(255,255,255,.45);
    border: 2px solid rgba(210,210,210,.6);
    border-radius: 14px;

    transition: all .2s ease;
}

.music_subnav_item:hover {
    background: rgba(255,255,255,.8);
    border-color: #c8c8c8;
}

.music_subnav_item.active {
    color: #1a1a1a;
    border-color: #d2d2d2;
    background: #fff;
}

/* ==========================================
   CONCERTS
   ========================================== */

.concerts_list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 700px;
    margin: 0 auto;
}

.concert_item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 18px;
    border-radius: 12px;
    transition: background .2s ease;
}

.concert_item:hover {
    background: #f0f0f0;
}

.concert_date {
    flex-shrink: 0;
    width: 90px;
    font-size: 14px;
    font-weight: 500;
    color: #9d9d9d;
}

.concert_info {
    flex: 1;
}

.concert_title {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
}

.concert_location {
    font-size: 14px;
    color: #9d9d9d;
    margin-top: 2px;
}

.concert_link {
    flex-shrink: 0;
    text-decoration: none;
    color: #2563eb;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    transition: all .2s ease;
}

.concert_link:hover {
    background: #f0f0f0;
    border-color: #c2c2c2;
}

.concerts_empty {
    text-align: center;
    color: #9d9d9d;
    font-size: 16px;
    padding: 40px 0;
}

/* ==========================================
   MUSIC PAGE
   ========================================== */

.music_page {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.music_header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.albums_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 auto;
}

.album_card {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.album_card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album_card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* ==========================================
   VIDEO PAGE
   ========================================== */

.video_page {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
}

.video_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.video_card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fdfdfd;
    border-radius: 22px;
    overflow: hidden;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
    min-width: 0; /* важно для предотвращения переполнения */
}

.video_card:hover {
    transform: translateY(-3px);
    border-color: #c2c2c2;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.video_preview_wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fdfdfd;
    border-bottom: 1px solid #e2e2e2;
}

.video_preview_img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video_card_title {
    padding: 20px;
    color: #363636;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    transition: color .2s ease;
    font-family: 'Rubik Glitch', cursive;
}

.video_card:hover .video_card_title {
    color: #000;
}

/* ==========================================
   BUTTON
   ========================================== */

.button {
    display: inline-block;
    text-decoration: none;
    color: #363636;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 22px;
    border: 2px solid #d2d2d2;
    border-radius: 14px;
    background: transparent;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.button:hover {
    border-color: #c2c2c2;
    background: #f0f0f0;
    color: #1a1a1a;
}

/* ==========================================
   ALL TRACKS
   ========================================== */

.all_tracks_page {
    max-width: 1000px;
    margin: 0 auto;
    /*padding: 20px 50px 50px;*/
    padding: 20px clamp(24px, 4vw, 50px) 50px;
}

.all_tracks_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.all_tracks_title {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
}

.tracks_list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.track_title {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;

    font-family: 'Rubik Dirt', cursive;
}

.track_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 12px;
    transition: background .2s ease;
}

.track_item:hover {
    background: #f0f0f0;
}

.track_name {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Rubik Dirt', cursive;
}

.track_album {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 400;
}

/* ==========================================
   ALL TRACKS search
   ========================================== */

.track_search {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto 20px;
}

.track_search input {
    flex: 1;
    padding: 10px 16px;
    font-size: 15px;
    border: 2px solid #d2d2d2;
    border-radius: 12px;
    outline: none;
    transition: border-color .2s ease;
}

.track_search input:focus {
    border-color: #aaa;
}

.track_search button {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    background: rgba(255,255,255,.45);
    border: 2px solid rgba(210,210,210,.6);
    border-radius: 14px;
    cursor: pointer;
    transition: all .2s ease;
}

.track_search button:hover {
    background: rgba(255,255,255,.8);
    border-color: #c8c8c8;
}

/* ==========================================
   LETTER FILTER (пагинация по буквам)
   ========================================== */

.letter_filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 30px;
}

.letter_link {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(255,255,255,.45);
    border: 2px solid rgba(210,210,210,.6);
    border-radius: 14px;
    transition: all .2s ease;
}

.letter_link:hover {
    background: rgba(255,255,255,.8);
    border-color: #c8c8c8;
}

.letter_link.active {
    color: #1a1a1a;
    border-color: #d2d2d2;
    background: #fff;
}

.tracks_empty {
    text-align: center;
    color: #9d9d9d;
    font-size: 16px;
    padding: 40px 0;
}

/* ==========================================
   ALL TRACKS TABLE
   ========================================== */

.all_tracks_table {
    width: 100%;
    border: 2px solid rgba(210,210,210,.6);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.45);
    backdrop-filter: blur(8px);
}

.all_tracks_row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: #363636;
    border-bottom: 1px solid rgba(210,210,210,.5);
    transition: background .2s ease, padding-left .2s ease;
}

.all_tracks_row:last-child {
    border-bottom: none;
}

.all_tracks_row:hover {
    background: rgba(255,255,255,.7);
    padding-left: 24px;
}

.all_tracks_icon {
    flex-shrink: 0;
    font-size: 14px;
    color: #777;
    transition: transform .2s ease;
}

.all_tracks_row:hover .all_tracks_icon {
    transform: scale(1.2);
}

.all_tracks_name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Rubik Dirt', cursive;
}

.all_tracks_album {
    margin-left: auto;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    min-width: 80px;
    flex-shrink: 0;
}

.all_tracks_labels {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 0 18px;
    font-family: 'Dela Gothic One', cursive;
    font-size: 20px;
    color: #1a1a1a;
}

/* ==========================================
   ALBUM DETAIL
   ========================================== */

.album_detail_page {
    max-width: 1000px;
    margin: 0 auto;
    /*padding: 20px;*/
    padding: clamp(12px, 3vw, 20px);
}


.album_detail_top {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.album_detail_cover {
    flex-shrink: 0;
    width: 360px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
}

.album_detail_cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album_detail_info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 250px;
}

.album_detail_title {
    margin: 0 0 8px;

    font-size: 36px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.2;
    word-break: break-word;

    font-family: 'Dela Gothic One', cursive;
}

.album_detail_date {
    margin-top: 0;

    font-size: 22px;
    font-weight: 500;

    color: #1a1a1a;

}

.album_detail_bottom {
    /*display: grid;*/
    /*grid-template-columns: 1fr 1fr;*/
    /*gap: 40px;*/
    display: flex;
    justify-content: space-between;
}

.album_detail_tracks {
    width: calc(50% - 20px);
    max-width: 500px;
}

.album_detail_videos {
    width: calc(50% - 20px);
    max-width: 400px;
}

.album_detail_section_title {
    margin: 0 0 20px;

    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;

    font-family: 'Dela Gothic One', cursive;
}

.album_tracks_list {
    max-width: 500px;

    border: 2px solid rgba(210,210,210,.6);
    border-radius: 16px;

    overflow: hidden;
    background: rgba(255,255,255,.45);

    backdrop-filter: blur(8px);
}

.album_track_item {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 18px;

    text-decoration: none;
    color: #363636;

    border-bottom: 1px solid rgba(210,210,210,.5);

    transition:
        background .2s ease,
        padding-left .2s ease;
}

.album_track_item:last-child {
    border-bottom: none;
}

.album_track_item:hover {
    background: rgba(255,255,255,.7);
    padding-left: 24px;
}

.track_play_icon {
    flex-shrink: 0;

    font-size: 14px;
    color: #777;

    transition: transform .2s ease;
}

.album_track_item:hover .track_play_icon {
    transform: scale(1.2);
}

.album_videos_grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}

.album_video_card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fdfdfd;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.album_video_card:hover {
    transform: translateY(-2px);
    border-color: #c2c2c2;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.album_video_preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fdfdfd;
    border-bottom: 1px solid #e2e2e2;
}

.album_video_preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album_video_name {
    padding: 12px 16px;

    color: #363636;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;

    font-family: 'Rubik Glitch', cursive;
}

/* ==========================================
   CARD
   ========================================== */
.card,
.video_card,
.album_card,
.album_video_card {
    border: 2px solid #b8b8b8;
}

.card {
    background: #fdfdfd;

    display: flex;
    flex-direction: column;

    text-decoration: none;

    border-radius: 22px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.card_content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 22px 22px;
    flex: 0 0 auto;
    justify-content: space-between;
}

.card_image_wrapper {
    display: block;
    width: 100%;

    overflow: hidden;

    border-radius: 22px 22px 0 0;
}

.card_img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.card_title {
    color: #363636;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    transition: color .2s ease;
    font-family: 'Dela Gothic One', cursive;
}

.card_title:hover .card_title {
    color: #000;
}

.card_date {
    margin-top: 18px;

    font-size: 15px;
    font-weight: 400;

    color: #9d9d9d;
}


/* ==========================================
   CARD MODIFIERS
   ========================================== */

.news_ratio {
    aspect-ratio: 1 / 1;
}

.video_ratio {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
}


/* ==========================================
   FOOTER
   ========================================== */

.site_footer {
    margin-top: 80px;

    background: #fafafa;

    border-top: 1px solid #ececec;
}

.footer_content {
    max-width: 1200px;

    margin: 0 auto;

    /*padding: 60px 20px 30px;*/
    padding: 60px clamp(12px, 3vw, 20px) 30px;
}

.footer_content h3 {
    margin: 0 0 20px;

    font-size: 24px;
    font-weight: 500;

    color: #303030;
}

.footer_content p {
    max-width: 700px;

    margin: 0 0 40px;

    color: #666;

    line-height: 1.7;
}

.footer_content hr {
    border: none;
    border-top: 1px solid #dcdcdc;

    margin: 0 0 24px;
}

.footer_bottom {
    display: flex;

    justify-content: space-between;
    align-items: center;
}

.footer_links {
    display: flex;
    gap: 24px;
}

.footer_links a {
    text-decoration: none;
    color: #444;
}

.footer_links a:hover {
    color: #111;
}


/* ==========================================
   MEDIA QUERIES
   ========================================== */
@media screen and (max-width: 1250px){
    .header_links {
        position: fixed;
        right: 12px;
        top: 120px;       /* отступ сверху */
        transform: none;

        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .header_logo {
        position: static;
        transform: none;
    }
}
@media screen and (max-width: 880px) {
    .mobile_only_button {
        padding: 0 0 0 20px;
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile_menu_wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background: #fafafa;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 30px 30px;
        box-sizing: border-box;
    }

    .mobile_menu_wrapper.open {
        right: 0;
    }

    .header_buttons {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .header_buttons a {
        font-size: 20px;
        text-decoration: none;
        color: #5c2e2e;
        font-family: 'Dela Gothic One', cursive;
    }

    .album_detail_top {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        gap: 20px;
        text-align: center;
    }

    .album_detail_cover {
        width: 220px;
    }

    .album_back_btn {
        align-self: flex-start;
        margin-bottom: 0;
    }

    .video_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .grid_container {
        grid-template-columns: repeat(2, 1fr);
        width: 85%;
        gap: 35px;
        max-width: 750px;
    }

    .video_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video_page{
        width: 85%;
    }

    .album_detail_bottom {
        flex-direction: column;
        gap: 40px;
    }

    .album_detail_tracks,
    .album_detail_videos {
        width: 85%;
        max-width: 500px;
    }

    .albums_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        width: 95%;
    }

    .all_tracks_page{
        width: 85%;
    }

    .card_content,
    .video_card_title {
        padding: 14px;
    }

}

@media (max-width: 650px) {
    .albums_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        width: 95%;
    }

    .video_grid {
        grid-template-columns: 1fr;
    }

    .video_page{
        width: 75%;
        max-width: 400px;
    }

    .grid_container {
        grid-template-columns: 1fr;
        width: 75%;
        max-width: 350px;
    }

    .footer_bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .card_content,
    .video_card_title {
        padding: 10px;
    }


    .header_logo {
        padding: 17px 0 0 0;
        display: flex;
        align-items: center;
    }

    .header_logo img {
        max-width: 90%;
    }

    .header_links {
        display: none;
    }

    .all_tracks_page{
        width: 90%;
    }
}