:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --secondary: #2c3e50;
    --accent: #f1c40f;
    --text: #2d3436;
    --text-light: #636e72;
    --bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    overflow-x: hidden;
    line-height: 1.6;
    color: var(--text);
    font-size: 16px;
}

/* Background Styles */
body {
    background: var(--bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

section {
    padding: 3rem 0;
}

main {
    flex: 1;
    background: var(--bg);
}

/* Top Bar Styling */
.top-bar {
    background: var(--secondary);
    padding: 5px 0;
    border-bottom: 2px solid var(--primary);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
    color: var(--white);
    font-size: 0.85rem;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Navigation & Dropdown */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    padding: 0;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.15);
}

.nav-links a.active {
    background: rgba(255,255,255,0.25);
    color: var(--white);
}

/* Login Button */
.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem !important;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    color: var(--white) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* User Menu */
.user-menu {
    position: relative;
}

/* User Menu Dropdown - สีตามธีมเว็บ */
.user-menu-dropdown {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-info i:first-child {
    font-size: 24px;
}

.user-info i:last-child {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.user-menu-dropdown:hover .user-info i:last-child {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
}

.user-menu-dropdown:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile: Active state */
.user-menu-dropdown.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-dropdown.active .user-info i:last-child {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: #2d3436;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    border-left-color: #e74c3c;
    padding-left: 22px;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #636e72;
    font-size: 16px;
    transition: all 0.3s ease;
}

.dropdown-item:hover i {
    color: #e74c3c;
    transform: scale(1.15);
}

.dropdown-item span {
    font-weight: 500;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #dee2e6 50%, transparent 100%);
    margin: 6px 0;
}

.admin-item {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(231, 76, 60, 0.02) 100%);
    border-left-color: #e74c3c;
}

.admin-item i {
    color: #e74c3c;
}

.admin-item:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.12) 0%, rgba(231, 76, 60, 0.05) 100%);
}

.logout-item {
    color: #e74c3c;
}

.logout-item:hover {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.logout-item i {
    color: #e74c3c;
}

/* Responsive สำหรับ Dropdown */
@media (max-width: 768px) {
    .user-info {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .user-info span {
        display: none; /* ซ่อนชื่อในมือถือ */
    }
    
    .user-dropdown {
        right: -10px;
        min-width: 200px;
    }
    
    .dropdown-item {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .dropdown-item:hover {
        padding-left: 18px;
    }
}

.nav-links a.active {
    background: rgba(255,255,255,0.25);
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle {
    color: white;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(231, 76, 60, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001; /* เพิ่ม z-index ให้สูงกว่า nav */
    min-width: 800px;
    pointer-events: auto;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    z-index: 1001;
    pointer-events: auto;
}

.menu-column {
    flex: 1;
    min-width: 200px;
}

.menu-column h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.menu-column a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    border-radius: 8px;
    pointer-events: auto;
}

.menu-column a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
}

.menu-column a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

.menu-column a:hover i {
    color: white;
}

/* Cart Icon & User Menu Styles */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    color: white;
}

.cart-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info:hover {
    color: white;
}

.cart-dropdown,
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .cart-dropdown,
.dropdown:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown a,
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #2c3e50;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cart-dropdown a:hover,
.user-dropdown a:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.cart-dropdown a i,
.user-dropdown a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Dropdown Separator */
.user-dropdown div[style*="border-top"] {
    border-top: 1px solid #e9ecef !important;
    margin: 5px 0 !important;
}

/* Admin Link Highlight */
.user-dropdown a[href*="admin"] {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    font-weight: 600;
}

.user-dropdown a[href*="admin"]:hover {
    background: linear-gradient(135deg, #764ba2, #667eea) !important;
    color: white !important;
}

.user-dropdown a[href*="admin"] i {
    color: white !important;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .dropdown-menu {
        min-width: 600px;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        min-width: 100%;
        transform: none;
        background: rgba(255,255,255,0.05);
        padding: 1rem;
        box-shadow: none;
    }

    .mega-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-column {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 1rem;
    }

    .menu-column:last-child {
        border-bottom: none;
    }

    .dropdown:hover .dropdown-menu {
        transform: none;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        background: rgba(255,255,255,0.05);
        padding-left: 1rem;
        display: none;
        transform: none;
        box-shadow: none;
        min-width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-menu a {
        padding: 1rem 1.5rem;
    }
}

/* Radio Player */
.radio-player {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.player-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.98), rgba(192, 57, 43, 0.98));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
}

.player-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1500px;  /* เพิ่มขนาดให้ใหญ่ขึ้น */
    height: 1500px;
    background: url('../images/logo/logo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.045;  /* เพิ่มความทึบให้เห็นชัดขึ้น */
    filter: brightness(0) invert(1);
    z-index: 0;
    animation: floatLogo 20s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.045;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.02) rotate(1deg);
        opacity: 0.055;  /* เพิ่มความทึบตอน animation */
    }
}

/* ทำให้เนื้อหาอยู่ด้านหน้า watermark */
.station-info,
.controls {
    position: relative;
    z-index: 1;
}

/* Event Grid */
.featured {
    padding: 4rem 0;
    background: var(--bg);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-info {
    padding: 1.5rem;
}

/* Event Slider */
/* Ads Section */
.ads-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.main-ad {
    margin-bottom: 2rem;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* Video Section */
.video-highlight {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.video-container {
    margin-top: 1rem;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sticky Player Styles */
.sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.player-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.controls button {
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.play-btn::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

.play-btn:hover::after {
    transform: scale(1);
}

/* Station Info Styles */
.station-info {
    flex: 1;
    margin-right: 2rem;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.live-badge {
    background: #ff0000;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Marquee Effect */
.track-info {
    overflow: hidden;
    width: 300px;
}

.marquee {
    animation: marquee 15s linear infinite;
    white-space: nowrap;
}

/* Controls Styles */
.controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.volume-slider {
    position: relative;
    width: 100px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: -5px;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Animations */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Footer Styles - Enhanced */
footer {
    position: relative;
    background: linear-gradient(135deg, 
        #1a252f 0%, 
        #2c3e50 50%, 
        #34495e 100%);
    color: white;
    margin-top: auto;
    overflow: hidden;
    padding-top: 4rem;
    padding-bottom: calc(80px + 2rem);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, 
        rgba(231, 76, 60, 0.1) 0%, 
        transparent 50%),
        radial-gradient(circle at 70% 80%, 
        rgba(52, 152, 219, 0.08) 0%, 
        transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(10%) translateY(-5%);
    }
}

/* Large Single Logo Watermark */
.footer-logo-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.watermark-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: auto;
    transform: translate(-50%, -50%) rotate(-20deg);
    opacity: 0.05;
    filter: grayscale(0.3) brightness(1.3);
    transition: opacity 0.5s ease;
}

.footer-waves {
    position: absolute;
    top: -70px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.footer-waves svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
    animation: wave 10s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
    filter: drop-shadow(0 -2px 10px rgba(0, 0, 0, 0.3));
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25px);
    }
    100% {
        transform: translateX(0);
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 3rem;
    position: relative;
    padding: 2rem 0;
    z-index: 2;
}

/* Footer Logo Section - No Card */
.footer-info {
    position: relative;
    z-index: 2;
}

.footer-info img {
    height: 70px;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2));
    }
    50% {
        transform: translateY(-5px) scale(1.02);
        filter: drop-shadow(0 8px 20px rgba(231, 76, 60, 0.4));
    }
}

.footer-info img:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 10px 25px rgba(231, 76, 60, 0.6))
           brightness(1.2);
    animation: none;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn i {
    position: relative;
    z-index: 1;
}

.social-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.5),
                0 0 30px rgba(231, 76, 60, 0.3);
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn:active {
    transform: translateY(-3px) scale(1.05);
}

/* Facebook specific hover */
.social-btn:nth-child(1):hover {
    background: linear-gradient(135deg, #1877f2, #0c5ec7);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.5);
}

/* YouTube specific hover */
.social-btn:nth-child(2):hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.5);
}

/* Line specific hover */
.social-btn:nth-child(3):hover {
    background: linear-gradient(135deg, #00b900, #009900);
    box-shadow: 0 8px 20px rgba(0, 185, 0, 0.5);
}

/* Footer Links Section - No Card */
.footer-links {
    position: relative;
    z-index: 2;
}

/* Footer Contact Section - No Card */
.footer-contact {
    position: relative;
    z-index: 2;
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    min-width: 24px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.map-container {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    height: 200px;
    transition: all 0.3s ease;
    position: relative;
}

.map-container:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-contact {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-contact {
        grid-column: auto;
    }
    
    .map-container {
        height: 250px;
    }
    
    .footer-logo-watermark {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-social {
        justify-content: center;
    }
    
    .footer-links h3,
    .footer-contact h3 {
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul li a {
        justify-content: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-waves {
        top: -50px;
    }
    
    .footer-waves svg {
        height: 50px;
    }
    
    main {
        padding-bottom: 60px;
    }
    
    .map-container {
        margin-bottom: 1.5rem;
    }
}

/* ปรับ responsive สำหรับหน้าจอขนาดเล็ก */
@media (max-width: 1024px) {
    .logo img {
        height: 80px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .contact-info span:last-child {
        display: none;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    .logo img {
        height: 60px;
    }

    .radio-player {
        margin: 1rem;
    }

    .sticky-player .station-info h2 {
        font-size: 1rem;
    }
    
    .sticky-player .station-info p {
        font-size: 0.8rem;
    }
    
    .sticky-player #volume {
        width: 60px;
    }

    footer {
        padding-bottom: 100px;
    }
    
    .sticky-player .player-card {
        padding: 0.5rem;
        min-height: 60px;
    }
    
    .sticky-player .volume-control {
        display: none; /* ซ่อนตัวควบคุมเสียงบนมือถือ */
    }

    .track-info {
        width: 200px;
    }
    
    .control-btn {
        width: 30px;
        height: 30px;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
    }

    .player-background {
        width: 600px;
        height: 600px;
    }
}

/* ปรับ margin bottom ของ main เพื่อไม่ให้เนื้อหาถูกซ่อนใต้ player */
main {
    flex: 1;
    position: relative;
    padding-bottom: 80px; /* สำหรับ sticky player */
    margin-bottom: 100px;
}

@media (max-width: 1200px) {
    .player-background {
        width: 800px;
        height: 800px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: 0;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(192, 57, 43, 0.95));
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: var(--white);
}

.hero-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    min-width: 200px;
    transform: translateY(0);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-info .number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-info .label {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .stat-card {
        width: 100%;
        max-width: 300px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Features Section */
.features {
    position: relative;
    padding: 4rem 0;
    background: var(--bg);
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 1.5rem 0 1rem;
}

.feature-card p {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.6;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    font-size: 3rem;
    color: var(--primary);
    animation: pulse 1.5s infinite;
    text-align: center;
}

.radio-waves {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.radio-waves circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    transform-origin: 50% 50%;
}

.wave {
    animation: wave 1.5s ease-in-out infinite;
    opacity: 0;
}

.wave:nth-child(2) {
    animation-delay: 0.3s;
}

.wave:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes wave {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.loader span {
    display: block;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.wave-animation {
    position: relative;
    width: 120px;
    height: 120px;
}

.radio-waves {
    width: 100%;
    height: 100%;
    animation: rotate 10s linear infinite;
}

.wave {
    fill: none;
    stroke: #e74c3c;
    stroke-width: 2;
    stroke-linecap: round;
}

.wave-1 {
    animation: pulse 2s ease-in-out infinite;
    stroke: #e74c3c;
}

.wave-2 {
    animation: pulse 2s ease-in-out infinite 0.4s;
    stroke: #c0392b;
}

.wave-3 {
    animation: pulse 2s ease-in-out infinite 0.8s;
    stroke: #e74c3c;
}

.radio-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.loading-text {
    display: flex;
    gap: 0.8rem;
}

.loading-text span {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    animation: bounce 0.5s ease-in-out infinite alternate;
}

.loading-text span:nth-child(2) { animation-delay: 0.1s; }
.loading-text span:nth-child(3) { animation-delay: 0.2s; }
.loading-text span:nth-child(4) { animation-delay: 0.3s; }
.loading-text span:nth-child(5) { animation-delay: 0.4s; }
.loading-text span:nth-child(6) { animation-delay: 0.5s; }

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
        stroke-width: 3;
    }
    50% {
        opacity: 0.5;
        stroke-width: 2;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
        stroke-width: 1;
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

@keyframes glow {
    from { text-shadow: 0 0 5px #e74c3c, 0 0 10px #e74c3c, 0 0 15px #e74c3c; }
    to { text-shadow: 0 0 10px #e74c3c, 0 0 20px #e74c3c, 0 0 30px #e74c3c; }
}

/* Logo Styles */
.logo-container {
    position: relative;
    width: 250px;
    height: 80px;
    animation: float 3s ease-in-out infinite;
}

.preloader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.3));
}

.logo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, 
        rgba(231, 76, 60, 0.2),
        transparent 70%);
    animation: glow 2s ease-in-out infinite alternate;
}

/* Wave Animation */
.wave-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.radio-waves {
    width: 100%;
    height: 100%;
    animation: rotate 10s linear infinite;
}

.wave {
    fill: none;
    stroke: #e74c3c;
    stroke-width: 2;
    stroke-linecap: round;
}

.wave-1 { animation: wave 2s ease-in-out infinite; }
.wave-2 { animation: wave 2s ease-in-out infinite 0.4s; }
.wave-3 { animation: wave 2s ease-in-out infinite 0.8s; }

/* Loading Text */
.loading-text {
    display: flex;
    gap: 0.5rem;
}

.loading-text span {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    animation: bounce 1s ease-in-out infinite;
}

.loading-text span:nth-child(2) { animation-delay: 0.1s; }
.loading-text span:nth-child(3) { animation-delay: 0.2s; }
.loading-text span:nth-child(4) { animation-delay: 0.3s; }
.loading-text span:nth-child(5) { animation-delay: 0.4s; }
.loading-text span:nth-child(6) { animation-delay: 0.5s; }
.loading-text span:nth-child(7) { animation-delay: 0.6s; }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes wave {
    0% {
        transform: scale(0.5);
        opacity: 0;
        stroke-width: 3;
    }
    50% {
        opacity: 0.5;
        stroke-width: 2;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
        stroke-width: 1;
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 1001;
}

/* Map Container */
.map-container {
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border: 2px solid rgba(255,255,255,0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 200px;
}

/* Typography Adjustments */
p {
    color: var(--text);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* เพิ่ม letter-spacing สำหรับความอ่านง่าย */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.5px;
}

/* ปรับ font-weight ให้เหมาะสม */
h1 { font-weight: 700; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }

/* Header Styles */
header {
    position: relative;
    z-index: 1000;
}