:root {
    --primary-red: #d32f2f;
    --accent-gold: #fbc02d;
    --text-dark: #212121;
    --text-grey: #616161;
    --bg-light: #f4f6f8;
    --bg-white: #ffffff;
    --border-light: 1px solid #e0e0e0;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* padding-bottom removed from here to fix gap issue */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Header & Dropdown */
header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 70px;
}

.logo-img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
    /* Dikey ortalama */
}

.nav-links li {
    position: relative;
    /* Dropdown için */
    padding: 10px 0;
    /* Hover alanı genişletme */
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.3s;
    display: block;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
}

/* Dropdown Menu Style */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-red);
    min-width: 180px;
    display: none;
    /* Varsayılan gizli */
    list-style: none;
    padding: 10px 0;
    border-radius: 0 0 5px 5px;
    z-index: 1001;
}

.nav-links li:hover .dropdown-menu {
    display: block;
    /* Hover ile göster */
    animation: fadeInDropdown 0.3s ease;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 10px 20px;
    text-transform: capitalize;
    /* Sadece baş harf büyük */
    font-size: 0.9rem;
    color: #555;
    border-bottom: 1px solid #f9f9f9;
}

.dropdown-menu a:hover {
    background: #f9f9f9;
    color: var(--primary-red);
    padding-left: 25px;
    /* Hafif kayma efekti */
}


/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 70px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        padding-top: 50px;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        border-top: 1px solid #eee;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    /* Mobilde Dropdown statik açık olsun veya tıklama ile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        display: none;
        background: #f9f9f9;
        width: 100%;
    }

    .nav-links li:hover .dropdown-menu {
        display: block;
    }

    .hamburger {
        display: block;
    }
}

/* Content & Layouts */
#content {
    margin-top: 90px;
    min-height: 80vh;
}

.hero-wrapper {
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    /* Container for absolute slides */
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 40px;
    color: white;
}

/* Contact Grid - Yan Yana Zorlama */
.contact-row-wrapper {
    display: flex;
    flex-wrap: wrap;
    /* Mobilde alta geçsin */
    gap: 30px;
}

.contact-col-left {
    flex: 1;
    /* Eşit genişlik */
    min-width: 300px;
}

.contact-col-right {
    flex: 1;
    min-width: 300px;
}

/* Mobilde alt alta olması için min-width 300px koyduk. 
   Ekran 600px altıysa otomatik alt alta geçer. 
   Ama masaüstünde (1200px) kesinlikle yan yana dururlar. */

.widget-card,
.modern-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}


/* Form Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
}

.btn-submit {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #b71c1c;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #eee;
    padding: 50px 0 150px;
    margin-top: 50px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #666;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10000;
    display: none;
}

#loader .bar {
    width: 0;
    height: 100%;
    background: var(--primary-red);
    transition: width 0.3s;
}

/* Anim */
.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Player Bar Floating - Gelişmiş Tasarım (Eski basit stil yerine bunu kullanıyoruz) */
.player-bar-floating {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1000px;
    background: rgba(18, 18, 18, 0.85);
    /* Yarı saydam koyu */
    backdrop-filter: blur(12px);
    /* Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 12px 30px;
    border-radius: 20px;
    /* Daha modern köşe ovalliği */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 5000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* İnce sınır çizgisi */
    transition: bottom 0.3s ease;
}

/* Mobilde alttan biraz daha boşluklu dursun */
@media (max-width: 768px) {
    .player-bar-floating {
        bottom: 10px;
        padding: 10px 15px;
        flex-wrap: nowrap;
        /* Sıkıştırmaya zorla, alt alta geçmesin */
        border-radius: 15px;
    }
}

/* Player Info Area */
.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.player-logo {
    height: 45px;
    width: 45px;
    background: white;
    padding: 3px;
    border-radius: 8px;
    object-fit: contain;
}

.player-text h4 {
    font-size: 1rem;
    margin: 0;
    color: white;
    font-weight: 700;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #ff5252;
    font-weight: 600;
    margin-top: 2px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ff5252;
    border-radius: 50%;
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 82, 82, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
    }
}

/* Controls Center (Visualizer + Main Button) */
.player-controls-center {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    /* Ortalamak için */
    justify-content: center;
}

.visualizer-canvas {
    height: 30px;
    width: 100px;
    opacity: 0.6;
}

.play-fab {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-red), #b71c1c);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
    min-width: 55px;
    /* Shrink önlemek için */
}

.play-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.6);
}

.play-fab:active {
    transform: scale(0.95);
}

/* Volume Controls */
.volume-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    /* Sağa yasla */
    min-width: 120px;
}

.volume-icon {
    color: #aaa;
    font-size: 1.1rem;
    cursor: pointer;
    width: 20px;
    text-align: center;
}

.volume-icon:hover {
    color: white;
}

.volume-slider {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    transition: width 0.3s;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: var(--accent-gold);
    transform: scale(1.2);
}

/* Mobile Adjustments for Player */
@media (max-width: 600px) {
    .player-text h4 {
        display: none;
    }

    /* Mobilde ismi gizle yer açmak için */
    .player-info {
        flex: 0;
        min-width: auto;
    }

    .visualizer-canvas {
        display: none;
    }

    /* Mobilde visualizer gizle */
    .volume-slider {
        width: 60px;
    }

    .player-bar-floating {
        padding: 10px;
    }

    .play-fab {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.1rem;
    }
}

/* --- NEW FIXED PLAYER BAR (Reference Style) --- */
.player-bar-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
}

.player-bar-fixed * {
    box-sizing: border-box;
}

/* LEFT SECTION: Info & branding */
.player-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.player-brand-badge {
    background: #f0f2f5;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #37474f;
    font-size: 0.9rem;
}

.player-brand-badge .brand-main {
    background: #263238;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
}

.player-program-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.player-info-text {
    display: flex;
    flex-direction: column;
}

.player-program-title {
    font-size: 1rem;
    font-weight: 700;
    color: #263238;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-live {
    background: #ef5350;
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-dot-anim {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.player-date {
    font-size: 0.85rem;
    color: #78909c;
    margin-top: 4px;
}

/* CENTER SECTION: Controls */
.player-center {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.control-btn-small {
    background: none;
    border: none;
    cursor: pointer;
    color: #546e7a;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: color 0.2s;
}

.control-btn-small:hover {
    color: var(--primary-red);
}

.control-btn-small span {
    font-size: 0.6rem;
    font-weight: 600;
}

.play-btn-large {
    width: 60px;
    height: 60px;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #263238;
    font-size: 1.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.play-btn-large:hover {
    transform: scale(1.05);
    background: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-red);
    border-color: var(--primary-red);
}

/* RIGHT SECTION: Info & Volume */
.player-right {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    justify-content: flex-end;
}

.player-time {
    font-size: 1.2rem;
    color: #90a4ae;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.volume-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #f5f7fa);
    padding: 5px 15px;
    border-radius: 20px;
}

.volume-slider-modern {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    background: #cfd8dc;
    border-radius: 2px;
    outline: none;
}

.volume-slider-modern::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #0288d1;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.volume-slider-modern::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Responsive adjustments for Fixed Player */
@media (max-width: 900px) {
    .player-center {
        gap: 15px;
    }

    .player-left {
        gap: 10px;
    }

    .player-brand-badge {
        display: none;
    }

    .player-date {
        display: none;
    }
}

@media (max-width: 768px) {
    .player-bar-fixed {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
        bottom: 0;
    }

    .player-left {
        width: 100%;
        justify-content: flex-start;
    }

    .player-center {
        width: 100%;
        justify-content: space-between;
    }

    .player-right {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid #f0f0f0;
        padding-top: 10px;
    }

    .player-right {
        order: 3;
    }

    .player-center {
        order: 2;
        margin-top: -10px;
    }

    .player-left {
        order: 1;
    }

    .play-btn-large {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}