/* =========================================
   REPORT V2 LAYOUT
   ========================================= */

.report-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;

    overflow-x: hidden;

    margin-top: 30px;

    /* Gecko hover buffer */
    padding-bottom: 180px;
    margin-bottom: -180px;

    box-sizing: border-box;
}

/* =========================================
   HLAVIČKA
   ========================================= */

.report-header-row {
    display: grid;
    grid-template-columns: 70px 110px minmax(400px, 800px) 80px 100px 140px;
    justify-content: center;
    align-items: center;
    gap: 20px;

    padding: 15px 10px;

    background: #176AB4;
    color: #fff;

    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 8px;
}

.report-rank-header,
.report-cover-header,
.report-weeks-header,
.report-prev-header,
.report-year-header {
    text-align: center;
}

.report-main-header {
    text-align: left;
}

/* =========================================
   RIADOK
   ========================================= */

.report-row {
    display: grid;
    grid-template-columns: 70px 110px minmax(400px, 800px) 80px 100px 140px;

    justify-content: center;
    align-items: center;

    gap: 20px;

    padding: 15px 10px;

    border-bottom: 2px solid rgba(0,0,0,0.10);

    min-height: 110px;

    box-sizing: border-box;
}

/* =========================================
   PORADIE
   ========================================= */

.report-rank {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #176AB4;
}

/* =========================================
   COVER
   ========================================= */

.report-cover-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.report-img {
    width: 80px;
    height: 80px;

    object-fit: cover;

    border-radius: 8px;

    outline: 1px solid rgba(0,0,0,0.1);
    outline-offset: 2px;

    transition:
        width 0.3s ease,
        height 0.3s ease,
        outline 0.3s ease,
        box-shadow 0.3s ease;

    cursor: pointer;

    position: relative;
    z-index: 1;
}

@media (min-width: 601px) {

    .report-img:hover {
        width: 250px;
        height: 250px;

        z-index: 100;

        outline: 5px solid #176AB4;
        outline-offset: 4px;

        box-shadow: 0 15px 50px rgba(0,0,0,0.9);
    }

}

/* =========================================
   HLAVNÉ INFO
   ========================================= */

.report-main-info {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: flex-start;

    text-align: left;

    gap: 4px;

    min-width: 0;
    margin-top: 15px;
}

.report-artist {
    display: block;

    font-size: 1.25rem;
    font-weight: bold;

    line-height: 1.2;

    color: #000;
}

.report-title {
    display: block;

    font-size: 1.05rem;

    opacity: 0.75;

    line-height: 1.2;

    color: #000;
}

/* =========================================
   META ÚDAJE
   ========================================= */

.report-weeks,
.report-prev,
.report-year {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 4px;

    text-align: center;

    font-size: 1rem;

    color: #000;
}

/* =========================================
   MOBIL
   ========================================= */

@media (max-width: 600px) {

    .report-header-row {
        display: none;
    }

    .report-row {

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        text-align: center;

        padding: 30px 15px;

        gap: 12px;

        border: 1px solid rgba(0,0,0,0.10);

        border-radius: 12px;

        margin-bottom: 15px;
    }

    .report-main-info {

        align-items: center;
        text-align: center;

        width: 100%;
    }

    .report-artist {
        font-size: 1.35rem;
    }

    .report-title {
        font-size: 1.05rem;
    }

.report-cover-box {
    width: 100%;
    height: auto;

    display: flex;
    justify-content: center;

    margin-bottom: 20px;
}

    .report-img {

        width: auto !important;
        height: 200px !important;

        max-width: 250px;

        object-fit: contain;

        border-radius: 12px;

        cursor: default;
    }

    .report-img:hover {

        width: auto !important;
        height: 200px !important;

        transform: none !important;
    }

    .report-rank {
        font-size: 2rem;
    }


    .report-weeks::before {
        content: "Týždne: ";
        font-weight: bold;
    }

    .report-prev::before {
        content: "Minulý týždeň: ";
        font-weight: bold;
    }

    .report-year::before {
        content: "Rok: ";
        font-weight: bold;
    }
}

.top20-container h1 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.report-generated {
    margin-top: 30px;
    margin-bottom: 10px;

    font-size: 1rem;
    color: #555;

    text-align: left;
}

@media (min-width: 601px) and (max-width: 800px) {

    .report-header-row,
    .report-row {

        grid-template-columns:
        30px
        80px
        minmax(220px, 1fr)
        40px
        65px
        80px;

        gap: 6px;
    }

    .report-header-row {
        font-size: 0.8rem;
    }

}

/* Wrapper pre celú históriu */
.history-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

/* Štýl nadpisov rokov */
.year-title {
    background-color: #f2f2f2;
    color: #333;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-block;
    margin: 30px 0 15px 0;
    text-align: center;
}

.year-title:hover {
    background-color: #e0e0e0;
}

.year-title.active-year {
    background-color: #176AB4;
    color: white;
    font-weight: bold;
}

.report-week {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 10px;
}

.report-date-range {
    text-align: center;
    font-size: 1.1rem;
    opacity: .8;
    margin-top: 8px;
    margin-bottom: 25px;
}


/* Kontajner pre dlaždice reportov */
.report-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Jedna dlaždica */
.report-item a {
    display: block;
    padding: 10px 14px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #0073e6;
    text-decoration: none;
    min-width: 120px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.report-item a:hover {
    background-color: #e0e0e0;
}

/* Aktívna vybraná dlaždica */
.report-item a.active-report {
    background-color: #176AB4;
    color: white;
    font-weight: bold;
    border: 1px solid #176AB4;
}

.year-blocks {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Nový wrapper len pre tlačidlá rokov */
.year-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.history-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 40px 0 25px 0;
}

