/* ============================================================
   INTRO
============================================================ */

.chart-intro-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 18px 14px 20px;
    transform: translateX(-95px); /* Desktop */
}

.chart-intro-text {
    max-width: 1000px;
    margin: 0 auto;
    padding: 18px 14px -10px;
    font-size: 1.25rem;
    line-height: 1.45;
    color: #333;
    text-align: justify;
    font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

@media (max-width: 900px) {
   .chart-intro-card {
        transform: none !important;
        margin: 10px !important;
        padding: 15px !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .chart-intro-text {
        margin: 0 10px;
        padding: 0;
        font-size: 1.1rem;
        line-height: 1.4;
    }
}

/* ============================================================
   GRID / LAYOUT
============================================================ */

.chart-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 14px 60px;
    font-family: system-ui, sans-serif;
    display: grid;
    grid-template-columns: 2.1fr 0.9fr;
    gap: 26px;
}

/* rechte Spalte */
.chart-aside {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    padding: 20px;
    min-height: 200px;
}

/* Mobil: rechte Spalte ausblenden */
@media (max-width: 900px) {
    .chart-layout {
        grid-template-columns: 1fr;
    }
    .chart-aside {
        display: none;
    }
}
   
/* ============================================================
   TOP VIDEO CARD
============================================================ */

.chart-top-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    padding: 20px;
    margin-bottom: 35px;
}

@media (max-width: 900px) {
    .chart-top-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 12px !important;
        box-sizing: border-box;
        width: 100% !important;
    }

    .chart-video-wrap {
        width: 100% !important;
        padding-top: 56.25%; /* korrektes 16:9 */
        border-radius: 10px;
    }
}

.video-title {
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.25;
}

.video-artist {
    font-size: 13px !important;
    color: #666;
    font-weight: 500;
    margin-top: 2px;
}
.chart-top-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}

.chart-pos-big {
    width: 80px;
    height: 80px;
    background: #FE9900;
    border-radius: 14px;
    color: #fff;
    font-size: 38px;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-top-title {
    font-size: 29px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.chart-top-artist {
    font-size: 20px;
    font-weight: 600;
    margin-top: 4px;
    color: #444;
}

.chart-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.chart-video-inner {
    position: absolute;
    inset: 0;
}

.chart-video-inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.chart-top-year {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 32px;
    font-weight: 800;
    color: #ccc;
    text-decoration: none;
}

.chart-top-year:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .chart-top-year,
    .chart-top-views {
        display: none !important;
    }
}

/* ============================================================
   LISTE 2–150
============================================================ */

.chart-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chart-entry {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    margin-bottom: 10px;
    position: relative;
}

.chart-entry-link {
    display: block;
    position: absolute;
    inset: 0;
    width: 80%;
    z-index: 1;
}

.chart-pos-box {
    width: 80px;
    height: 80px;
    background: #FE9900;
    border-radius: 14px;
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 14px;
}

.chart-thumb img {
    height: 80px;
    width: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 12px;
    z-index: 2;
}

.chart-info {
    flex: 1;
    line-height: 1.25;
    padding-right: 20px;
    z-index: 2;
}
@media (max-width: 900px) {
    .chart-info {
        padding-right: 10px !important; /* Mobil */
    }
}

.chart-info .title {
    font-size: 24px;
    font-weight: 700;
}

.chart-info .artist {
    font-size: 20px;
    color: #666;
}

.views {
    font-size: 14px;
    color: #999;
    margin-top: 2px;
}

.chart-entry-year {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 22px;
    font-weight: 900;
    color: #ccc;
    z-index: 5;
    text-decoration: none;
}

.chart-entry-year:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .chart-entry-year {
        font-size: 16px !important;
        top: 10px !important;      /* NEU: weiter unten */
        right: 6px !important;     /* etwas weiter rechts */
    }
}

/* MOBILE FIXES */

    
    @media (max-width: 900px) {
    .chart-entry {
       padding: 8px 10px !important;
    margin: 0 0 10px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    }

    .chart-info {
        padding-right: 20px !important; /* vorher 70 → viel zu groß */
        box-sizing: border-box;
    }

    .chart-pos-box {
        width: 55px !important;
        height: 55px !important;
        font-size: 22px !important;
    }

    .chart-thumb img {
        height: 55px !important;
    }
 
    
    .chart-info .title {
        font-size: 18px;
    }
    .chart-info .artist {
        font-size: 15px;
    }
    
    .views {
        display: none !important;
    }
    
}

/* ============================================================
   FILTER
============================================================ */

.chart-filter-box {
    max-width: 1000px;
    width: 100%;
    margin: 20px auto;
    padding-left: 5px;
	padding-right: 46px;
    box-sizing: border-box;
}

.chart-filter-box input {
    width: 100%;
    padding: 14px 18px;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid #FE9900;
    border-radius: 14px;
    outline: none;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    color: #333;
}

.chart-filter-box input:focus {
    border-color: #FE9900;
    box-shadow: 0 0 0 3px rgba(254,153,0,0.25);
}

/* ============================================================
   BUTTON-LEISTE
============================================================ */

.video-chart-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

@media (max-width: 640px) {
    .video-chart-buttons-row {
        gap: 20px;
    }
}

.vcb-label {
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 10px;
}

.vcb-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 20px;
    background: #fafafa;
    border: 1px solid #ddd;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: 0.2s;
}

.vcb-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .vcb-btn {
        padding: 12px 22px !important;
        font-size: 16px !important;
        border-radius: 24px;
    }
}

/* ============================================================
   TOOLTIP (Jahreszahlen)
============================================================ */

.chart-year-tooltip {
    cursor: pointer;
}

.chart-year-tooltip::after {
    content: attr(data-title);
    position: absolute;
    left: 50%;
    top: -45px;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 13px;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 999;
}

.chart-year-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ================================
   ASIDE – MUSIKNEWS
================================ */

.video-news-card {
    background:#fff;
    border-radius:14px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    padding:16px 18px 22px;
    margin-bottom:40px;
}

.video-news-card h2 {
    margin:0 0 14px;
    font-size:24px;
    font-weight:900;
}

.video-news-item {
    margin-bottom:26px;
}

.video-news-item:last-child {
    margin-bottom:0;
}

.video-news-thumb {
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:8px;
}

.video-news-headline {
    font-size:20px;
    font-weight:700;
    margin-bottom:6px;
}

.video-news-headline a {
    color:#000;
    text-decoration:none;
}

.video-news-headline a:hover {
    text-decoration:underline;
}

.video-news-text {
    font-size:17px;
    color:#555;
    line-height:1.55;
    text-align:justify;
    text-justify:inter-word;
    hyphens:auto;
}

/* Mobil */
@media (max-width:640px) {
    .video-news-text {
        font-size:18px;
        line-height:1.6;
    }

    .chart-list .chart-entry .title {
        font-size: calc( var(--title-size, 18px) + 3px );
        /* Falls kein var() existiert: einfach ersetzen durch px */
        font-size: 22px;
    }

    .chart-list .chart-entry .artist {
        font-size: calc( var(--artist-size, 16px) + 3px );
        font-size: 20px;
    }
}
.video-item {
    display: flex;
    align-items: flex-start;
    gap: 8px !important;   /* Abstand Bild → Text */
    margin-bottom: 14px;
}

/* Titel wieder fett */
.video-title {
    font-weight: 700 !important; /* wieder bold */
    font-size: 15px;             /* deine kleinere Größe bleibt */
    line-height: 1.25;
}

/* Interpret kleiner + leicht grauer */
.video-artist {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}
/* Spalte auf Flexbox umbauen */
.video-column-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Inhalt oben, Button unten */
    height: 100%; /* Wichtig, damit der Footer unten bleibt */
}

/* Wrapper der Videos flexibel halten */
.video-column-flex .video-list {
    flex-grow: 1;
}

/* MEHR-VIDEOS-Button */
.more-btn {
    display: block;
    width: 100%;              /* volle Breite */
    text-align: center;       /* Text zentriert */
    padding: 10px 0;
    margin-top: 12px;
    border: 1px solid #ddd;
    background: #f4f4f4;
    border-radius: 8px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-sizing: border-box;
}

/* Hover */
.more-btn:hover {
    background: #e6e6e6;
    border-color: #ccc;
}
/* Titel 1px größer */
.video-title {
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.28;
}

/* Interpret 1px größer */
.video-artist {
    font-size: 14px !important;
    color: #666;
    font-weight: 500;
}