/* RADIO MARCONI - 538 STYLE */

:root {
    --primary: #ff4400;
    --primary-dark: #e63e00;
    --bg-dark: #0d0d0d;
    --bg-darker: #000000;
    --bg-card: #1a1a1a;
    --bg-light: #f5f5f5;
    --text-white: #ffffff;
    --text-gray: #999999;
    --text-dark: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    padding-bottom: 90px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
    width: auto;
    max-height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-dark);
    transform: translateX(100%);
    transition: 0.3s;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.mobile-logo {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 20px 0;
}

.mobile-nav-links a {
    display: block;
    padding: 15px 20px;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: 0.2s;
}

.mobile-nav-links a:hover {
    background: rgba(255,68,0,0.1);
    border-left-color: var(--primary);
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(255,68,0,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.track-info-main {
    margin-bottom: 50px;
}

.current-track-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.current-track-artist {
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--text-gray);
    font-weight: 500;
}

/* CAROUSEL */
.carousel-container {
    width: 100%;
    padding: 20px 0 40px;
    overflow: visible;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 280px;
}

.carousel-slide {
    position: absolute;
    border-radius: 12px;
    background: var(--bg-card) no-repeat center center;
    background-size: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Central slide */
.carousel-slide[data-pos="0"] {
    width: 260px;
    height: 260px;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
}

/* Left slides - history */
.carousel-slide[data-pos="-1"] {
    width: 180px;
    height: 180px;
    z-index: 9;
    left: 50%;
    transform: translateX(calc(-50% - 200px));
    opacity: 0.85;
}

.carousel-slide[data-pos="-2"] {
    width: 130px;
    height: 130px;
    z-index: 8;
    left: 50%;
    transform: translateX(calc(-50% - 320px));
    opacity: 0.6;
}

.carousel-slide[data-pos="-3"] {
    width: 90px;
    height: 90px;
    z-index: 7;
    left: 50%;
    transform: translateX(calc(-50% - 400px));
    opacity: 0.4;
}

/* Right slides - queue */
.carousel-slide[data-pos="1"] {
    width: 180px;
    height: 180px;
    z-index: 9;
    left: 50%;
    transform: translateX(calc(-50% + 200px));
    opacity: 0.85;
}

.carousel-slide[data-pos="2"] {
    width: 130px;
    height: 130px;
    z-index: 8;
    left: 50%;
    transform: translateX(calc(-50% + 320px));
    opacity: 0.6;
}

.carousel-slide[data-pos="3"] {
    width: 90px;
    height: 90px;
    z-index: 7;
    left: 50%;
    transform: translateX(calc(-50% + 400px));
    opacity: 0.4;
}

/* Play Button Hero */
.play-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,68,0,0.4);
}

.play-btn-hero i {
    font-size: 18px;
}

/* PROGRAMS SECTION */
.programs-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-gray);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.program-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-card:hover img {
    transform: scale(1.1);
}

.program-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--text-white);
}

.program-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.program-card-overlay h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 5px 0;
}

.program-card-overlay p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

/* ABOUT SECTION */
.about-section {
    padding: 100px 0;
    background: var(--bg-dark);
    color: var(--text-white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.audio-quality {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
}

.audio-quality i {
    font-size: 32px;
    color: var(--primary);
}

.audio-quality strong {
    display: block;
    font-size: 16px;
    color: var(--text-white);
}

.audio-quality span {
    font-size: 14px;
    color: var(--text-gray);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-box {
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.stat-txt {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 8px;
    display: block;
}

/* CONTACT SECTION */
.contact-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-wrapper h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link i {
    color: var(--primary);
}

a.contact-link:hover {
    color: var(--primary);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.contact-social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s;
}

.contact-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* FOOTER */
.main-footer {
    background: var(--bg-darker);
    padding: 50px 0 30px;
    color: var(--text-white);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid #222;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 12px;
}

.footer-powered img {
    height: 20px;
    opacity: 0.6;
    filter: brightness(0) invert(1);
}

.footer-copy {
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
}

/* STICKY PLAYER - 538 STYLE */
.sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-top: 1px solid #333;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-player.active {
    transform: translateY(0);
}

.sticky-player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    gap: 20px;
}

.sticky-player-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.sticky-artwork {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--bg-card) no-repeat center;
    background-size: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 20px;
}

.sticky-track-info {
    min-width: 0;
}

.sticky-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-artist {
    font-size: 13px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-player-center {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sticky-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: var(--text-white);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-play-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.audio-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
    opacity: 0;
    transition: opacity 0.3s;
}

.audio-visualizer.active {
    opacity: 1;
}

.visualizer-bar {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    height: 8px;
}

.audio-visualizer.active .visualizer-bar {
    animation: bars 0.8s ease-in-out infinite;
}

.audio-visualizer.active .visualizer-bar:nth-child(1) { animation-delay: 0s; }
.audio-visualizer.active .visualizer-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-visualizer.active .visualizer-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-visualizer.active .visualizer-bar:nth-child(4) { animation-delay: 0.3s; }
.audio-visualizer.active .visualizer-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes bars {
    0%, 100% { height: 8px; }
    50% { height: 30px; }
}

.sticky-player-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sticky-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
}

.sticky-volume-slider {
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: #333;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.sticky-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.sticky-close-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.sticky-close-btn:hover {
    color: var(--text-white);
}

/* MODALS */
.modal-content {
    background: var(--bg-dark);
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-content .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    filter: invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 0;
}

.modal-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.modal-text {
    padding: 30px;
    color: var(--text-white);
}

.modal-time {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.modal-text h3 {
    font-size: 28px;
    font-weight: 900;
    margin: 8px 0 15px;
}

.modal-text p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .carousel-slide[data-pos="-3"],
    .carousel-slide[data-pos="3"] {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-track {
        height: 220px;
    }
    
    .carousel-slide[data-pos="0"] {
        width: 200px;
        height: 200px;
    }
    
    .carousel-slide[data-pos="-1"],
    .carousel-slide[data-pos="1"] {
        width: 130px;
        height: 130px;
    }
    
    .carousel-slide[data-pos="-1"] {
        transform: translateX(calc(-50% - 140px));
    }
    
    .carousel-slide[data-pos="1"] {
        transform: translateX(calc(-50% + 140px));
    }
    
    .carousel-slide[data-pos="-2"],
    .carousel-slide[data-pos="2"],
    .carousel-slide[data-pos="-3"],
    .carousel-slide[data-pos="3"] {
        display: none;
    }
    
    .sticky-volume {
        display: none;
    }
    
    .sticky-close-btn {
        display: none;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .carousel-slide[data-pos="0"] {
        width: 160px;
        height: 160px;
    }
    
    .carousel-slide[data-pos="-1"],
    .carousel-slide[data-pos="1"] {
        width: 100px;
        height: 100px;
    }
    
    .carousel-slide[data-pos="-1"] {
        transform: translateX(calc(-50% - 100px));
    }
    
    .carousel-slide[data-pos="1"] {
        transform: translateX(calc(-50% + 100px));
    }
    
    .play-btn-hero {
        padding: 15px 30px;
        font-size: 14px;
    }
    
    .sticky-play-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .sticky-artwork {
        width: 50px;
        height: 50px;
    }
}