/* Core Variables & Reset */
:root {
    --primary-orange: #ff9f43;
    --primary-purple: #8e44ad;
    --primary-blue: #2980b9;
    --primary-yellow: #f1c40f;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: url('../../img/fondo.webp') no-repeat center center fixed;
    background-size: cover;
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.2), rgba(142, 68, 173, 0.2));
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

/* Header - Compact */
header {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(142, 68, 173, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand-logo img {
    width: 110px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s;
}

.brand-logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.nav-links a {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 5px 12px;
    border-radius: 15px;
    transition: 0.3s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-links a:hover {
    background: var(--primary-orange);
    color: #222;
}

/* Hero / Player - Compact */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.player-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 25px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.album-art {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    border: 3px solid var(--primary-purple);
    animation: rotateArt 20s linear infinite;
    animation-play-state: paused;
}

.playing .album-art {
    animation-play-state: running;
}

@keyframes rotateArt {
    100% {
        transform: rotate(360deg);
    }
}

.player-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-yellow);
    text-shadow: 0 2px 5px black;
}

.player-subtitle {
    font-size: 0.9rem;
    color: #eee;
    margin-bottom: 20px;
    font-weight: 500;
    text-shadow: 0 2px 5px black;
}

.main-play-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-orange), #d35400);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: 0.3s;
}

.main-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.8);
    border-color: white;
}

.play-label {
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 5px black;
}

.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: white;
    font-size: 0.8rem;
}

.volume-slider {
    width: 100px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

/* Social Buttons - Flashy Style */
.player-social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    /* Reduced gap (was 20px) */
    margin-top: 15px;
    /* Reduced margin (was 25px) */
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: 35px;
    height: 35px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    /* Allow shrinking if needed, though we prefer fit-content */
    flex-shrink: 0;
    /* Don't squash */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: 2px solid #4ade80;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.8);
    border-color: white;
}

.facebook-btn {
    background: linear-gradient(135deg, #1877F2, #0d47a1);
    border: 2px solid #60a5fa;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
}

.facebook-btn:hover {
    box-shadow: 0 0 25px rgba(24, 119, 242, 0.8);
    border-color: white;
}

/* Sponsors Ticker */
.sponsors-section {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.sponsors-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--primary-yellow);
    color: #222;
    font-weight: 800;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    font-size: 1rem;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    padding-left: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker 15s linear infinite;
}

.ticker:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.sponsor-unit {
    display: inline-flex;
    align-items: center;
    background: rgba(44, 62, 80, 0.8);
    border-radius: 50px;
    padding: 8px 25px 8px 8px;
    margin-right: 40px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.sponsor-unit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(142, 68, 173, 0.4);
    border-color: var(--primary-yellow);
}

.sponsor-logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background: white;
    flex-shrink: 0;
    border: 2px solid var(--primary-yellow);
}

.sponsor-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sponsor-text {
    text-align: left;
}

.sponsor-text h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-yellow);
    font-weight: 800;
    text-transform: uppercase;
}

.sponsor-text p {
    margin: 0;
    font-size: 0.8rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.3;
}

.sponsor-text p i {
    color: #ccc;
}

/* News Flash Cards - Vertical Style */
.news-section {
    padding: 50px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    justify-items: center;
    /* Center cards in their cells */
}

.news-card {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    width: 100%;
    max-width: 320px;
    /* Match player card width */
    height: 500px;
    /* Tall vertical format */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(142, 68, 173, 0.4);
    border-color: var(--primary-orange);
}

.news-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    transition: transform 0.8s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.15);
}

/* Date Badge at Top Right */
.news-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-purple);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.news-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    transition: 0.3s;
}

.news-card:hover .news-body {
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.3) 100%);
}

.news-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 1);
    letter-spacing: 1px;
}

.news-content {
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-shadow: 0 2px 5px black;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px 0;
    text-align: center;
    border-top: 3px solid var(--primary-orange);
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    .nav-links {
        display: flex;
        gap: 10px;
        font-size: 0.9rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .sponsors-label {
        display: none;
    }

    .player-card {
        max-width: 90%;
    }
}