:root {
    --top-card-bg: #ffffff;
    --top-text-main: #000000;
    --top-text-accent: var(--CTA);
    --top-text-muted: #666666;
    --top-border: #eeeeee;
}

.toprainbow-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: 0;
    width: 100%;
}

.top-card {
    background: var(--top-card-bg);
    border: 1px solid var(--top-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex: 1 1 300px;
    max-width: 400px;
}

.top-card-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
    overflow: hidden;
    background: #000;
}

.top-card-header {
    margin-bottom: 15px;
}

.top-card-rank {
    color: var(--top-text-accent);
    font-family: 'BarlowCondensed', sans-serif;
    font-size: var(--fs-h2);
    font-weight: bold;
    margin: 0;
    line-height: 1;
    display: block;
}

.top-card-title {
    color: var(--top-text-main);
    font-family: 'BarlowCondensed', sans-serif;
    font-size: var(--fs-h3);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.top-card-artist {
    color: var(--dark);
    font-family: 'BebasNeue', sans-serif;
    font-size: var(--fs-body);
    margin: 4px 0 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-card-artist a {
    color: var(--top-text-accent);
    text-decoration: underline;
}
.top-card-artist a:hover {
    color: var(--CTA);
}

.top-card-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.top-card-video .youtube-embed {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.top-card-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--top-border);
    padding-top: 0;
    margin-top: auto;
}

.top-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

.top-stat-label {
    color: var(--top-text-accent);
    font-family: 'BarlowCondensed', sans-serif;
    font-size: var(--fs-label);
    font-weight: normal;
    margin-bottom: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-stat-label {
    color: var(--top-text-accent);
    font-family: 'BarlowCondensed', sans-serif;
    font-size: var(--fs-label);
    font-weight: normal;
    margin-bottom: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.label-previous {
    color: var(--dark) !important;
}

.top-stat-value {
    color: var(--top-text-main);
    font-family: 'BarlowCondensed', sans-serif;
    font-size: var(--fs-body);
    font-weight: 600;
}

/* Movement Colors */
.move-up { color: #10b981 !important; }    /* Green */
.move-down { color: #ef4444 !important; }  /* Red */
.move-neutral { color: var(--top-text-muted) !important; }
.move-new { color: var(--top-text-accent) !important; }

@media (max-width: 768px) {
    .toprainbow-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .top-card {
        max-width: 100%;
    }
}
