/* =================================================================
   🚨 UDG SYSTEM STYLE OVERHAUL - CORE ENGINE
================================================================= */

/* ส่วนหัวเว็บ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}
header {
    padding: 50px 20px;
    border-bottom: 1px solid #333;
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.03) 0%, transparent 100%);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ตั้งค่ารูปโลโก้ */
.brand-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

.brand-text {
    text-align: center;
}

h1.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    letter-spacing: -2px;
    text-transform: uppercase;
    line-height: 1.1;
}

h1.logo span {
    color: var(--accent-color);
}

.brand-text p {
    color: #999;
    margin-top: 5px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .brand-text {
        text-align: center;
    }
    h1.logo {
        font-size: 2.2rem;
    }
}

:root {
    --bg-color: #050505;
    --text-main: #e0e0e0;
    --accent-color: #00ffff;
    --card-bg: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Kanit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.4;
}

.news-ticker {
    background-color: var(--accent-color);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-text {
    display: inline-block;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--card-bg);
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.news-img {
    width: 100%;
    height: 250px;
    background-color: #111;
    overflow: hidden;
    position: relative;
}

.news-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.08);
}

.news-content {
    padding: 20px;
    background-color: var(--card-bg);
    position: relative; 
    z-index: 2;
}

.news-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #999;
    font-weight: 300;
}

footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #333;
    margin-top: 50px;
    color: #666;
    font-size: 0.9rem;
}

.ad-container {
    max-width: 1200px;
    margin: 30px auto 10px auto;
    padding: 0 20px;
    width: 100%;
}

.ad-banner {
    display: block;
    width: 100%;
    height: auto !important; 
    background: #0a0a0a;
    border: 2px dashed rgba(0, 255, 255, 0.4); 
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-banner:hover {
    border-style: solid;
    border-color: var(--accent-color);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.25);
}

#live-ad-img {
    width: 100%;
    height: auto !important;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

.ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(17, 17, 17, 0.85); 
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    z-index: 10;
}

.ad-content {
    padding: 40px 20px;
    text-align: center;
    width: 100%;
}

.ad-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    color: #444;
    letter-spacing: 2px;
}

.ad-content p {
    color: #666;
    font-size: 0.95rem;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .ad-container { padding: 0 15px; margin: 20px auto 5px auto; }
    .ad-banner { border-width: 1px; }
    .ad-content { padding: 25px 15px; }
    .ad-content h3 { font-size: 1.25rem; letter-spacing: 1px; }
    .ad-content p { font-size: 0.78rem; }
    .ad-label { font-size: 0.55rem; padding: 2px 5px; top: 6px; right: 6px; }
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    text-decoration: none;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    background: rgba(0, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transform: translateY(-3px);
}

::selection {
    background-color: var(--accent-color);
    color: #000;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.video-card {
    background-color: var(--card-bg);
    border: 1px solid #222;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.video-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-5px);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    border: none;
}
/* =================================================================
   📅 CSS RECONSTRUCTION: UPCOMING GIGS RESPONSIVE ENGINE
================================================================= */

.gig-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #0a0a0a;
    border: 1px solid #222;
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 15px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* 🎯 เติมตัวนี้เพื่อป้องกันไม่ให้เนื้อหาข้างในเบียดกันจนทะลุเฟรม */
    width: 100%;
    box-sizing: border-box;
}

.gig-item:hover { 
    border-color: var(--accent-color); 
    transform: translateX(5px); 
}

/* ล็อกขนาดป้ายวันที่ */
.gig-date { 
    background: var(--accent-color); 
    color: #000; 
    padding: 10px 15px; 
    border-radius: 6px; 
    text-align: center; 
    font-weight: 800; 
    line-height: 1.2; 
    min-width: 85px; 
    flex-shrink: 0; /* ห้ามโดนบีบขนาดเด็ดขาด */
}
.gig-date span { 
    display: block; 
    font-size: 1.6rem; 
    font-family: 'Space Grotesk', sans-serif;
}

/* ล็อกขนาดรูปโปสเตอร์งาน */
.gig-poster-wrap {
    width: 75px;
    height: 75px;
    border-radius: 6px;
    border: 1px solid #252525;
    overflow: hidden;
    flex-shrink: 0; /* ห้ามรูปโดนบีบจนแบน */
    background: #111;
}
.gig-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 🎯 โซนข้อความตรงกลาง: ให้ยืดหยุ่นขยายพื้นที่กวาดที่ว่างที่เหลือเต็มพิกัด */
.gig-info { 
    flex-grow: 1; 
    min-width: 0; /* ดักทางไม่ให้ข้อความยาวๆ ไปดันปุ่มขวาหลุดจอ */
    padding: 0 10px; 
}
.gig-info h3 { 
    color: #fff; 
    font-size: 1.15rem; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* ถ้าชื่อยาวจัดให้ตัดเป็นจุดไข่ปลา ... อัตโนมัติ */
}
.gig-info p { 
    color: #aaa; 
    font-size: 0.85rem; 
    margin-top: 5px; 
    line-height: 1.4;
}

/* ล็อกขนาดปุ่มสถานะขวาสุด */
.gig-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    font-family: 'Space Grotesk', 'Kanit', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    min-width: 120px;
    max-width: 120px;
    text-align: center;
    flex-shrink: 0; /* ล็อกความกว้างของปุ่มไว้ถาวร ไม่ให้หลุดขอบ */
    box-sizing: border-box;
}

/* สไตล์ปุ่มสถานะต่างๆ */
.gig-btn.btn-comingsoon { background: transparent; border: 1px solid var(--accent-color); color: var(--accent-color); cursor: default; }
.gig-btn.btn-ticket { background: var(--accent-color); border: 1px solid var(--accent-color); color: #020202; box-shadow: 0 0 12px rgba(0, 255, 255, 0.3); }
.gig-btn.btn-ticket:hover { background: #fff; border-color: #fff; color: #000; box-shadow: 0 0 20px rgba(255, 255, 255, 0.6); transform: translateY(-2px); }
.gig-btn.btn-ended { background: rgba(255, 51, 51, 0.05); border: 1px solid #ff3333; color: #ff3333; cursor: not-allowed; }

/* 📱 🎯 จุดตายบนมือถือ: ถ้าหน้าจอเล็กกว่า 768px ให้เปลี่ยนการจัดเรียงเป็นแนวตั้งทันที */
@media (max-width: 768px) {
    .gig-item {
        flex-direction: column !important; /* สับแถวเรียงลงมาเป็นแนวตั้ง */
        align-items: stretch !important;
        padding: 20px;
        text-align: center;
    }
    
    .gig-date {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .gig-poster-wrap {
        width: 120px !important;
        height: 120px !important;
        margin: 10px auto !important; /* จัดรูปโปสเตอร์ไว้กึ่งกลาง */
    }
    
    .gig-info {
        padding: 10px 0 !important;
    }
    .gig-info h3 {
        white-space: normal !important; /* ยอมให้ชื่อคอนเสิร์ตขึ้นบรรทัดใหม่ได้บนมือถือ */
    }
    
    .gig-btn {
        width: 100% !important;
        max-width: 100% !important; /* ปรับปุ่มให้ยืดเต็มความกว้างจอจิ้มง่ายๆ */
        margin-top: 10px;
    }
}

.rate-card { 
    background: linear-gradient(135deg, #0a0a0a, #000); 
    border: 1px solid #333; 
    border-radius: 8px; 
    padding: 40px 20px; 
    text-align: center; 
}
.rate-stats { 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    margin-bottom: 30px; 
    gap: 40px; 
}
.stat-box h4 { 
    color: var(--accent-color); 
    font-size: 2.5rem; 
    font-family: 'Space Grotesk', sans-serif; 
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}
.stat-box p { color: #888; font-size: 0.9rem; letter-spacing: 1px; font-weight: 500; }
.rate-action p { margin-bottom: 20px; color: #ddd; font-size: 1.1rem; }
.rate-btn { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    color: #fff; 
    text-decoration: none; 
    padding: 12px 30px; 
    border-radius: 30px; 
    font-weight: bold; 
    font-size: 1.1rem; 
    display: inline-block; 
    transition: 0.3s; 
    border: none;
}
.rate-btn:hover { 
    box-shadow: 0 0 20px rgba(220, 39, 67, 0.5); 
    transform: translateY(-3px); 
    filter: brightness(1.1);
}

.sticky-nav {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.nav-link {
    color: #888;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.featured-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}
.featured-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    min-height: 450px; 
}
.featured-img-container {
    width: 100%;
    height: 100%;
    position: absolute; 
    top: 0;
    left: 0;
}
.featured-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,1), transparent);
    z-index: 10;
}
.featured-title {
    font-size: 2.5rem;
    color: #fff;
    line-height: 1.1;
    margin: 15px 0;
}

@media (max-width: 992px) {
    .featured-section { grid-template-columns: 1fr; }
    .featured-card { min-height: 450px; } 
    .featured-title { font-size: 1.8rem; } 
    .nav-container { gap: 15px; font-size: 0.7rem; }
}

.chart-list { background: #0a0a0a; border: 1px solid #222; border-radius: 8px; }
.chart-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #111;
    transition: 0.3s;
}
.chart-item:hover { background: #111; }
.chart-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 20px;
    font-weight: 800;
}
.track-info h4 { color: #fff; font-size: 1rem; }
.track-info p { color: #666; font-size: 0.8rem; }
.chart-play { margin-left: auto; color: #333; font-size: 1.5rem; cursor: pointer; }
.chart-item:hover .chart-play { color: var(--accent-color); }

.chart-criteria {
    margin-top: 15px;
    padding: 15px 20px;
    background: rgba(0, 255, 255, 0.03);
    border: 1px dashed #333;
    border-radius: 6px;
    transition: 0.3s ease;
}
.chart-criteria:hover {
    border-color: rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.05);
}
.chart-criteria h5 {
    color: var(--accent-color);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.chart-criteria p {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.5;
}
.chart-criteria p strong { color: #e0e0e0; }
.chart-criteria .criteria-note {
    display: block;
    margin-top: 12px;
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 12px;
    letter-spacing: 0.5px;
}

.graffiti-container {
    background: #080808;
    border: 1px dashed var(--accent-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}
.graffiti-header {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.graffiti-wall-box {
    background: #111111;
    border: 1px solid #222;
    border-radius: 4px;
    height: 220px;
    overflow-y: auto;
    padding: 20px;
    font-family: 'Space Grotesk', 'Kanit', sans-serif;
    margin-bottom: 20px;
}
.graffiti-wall-box::-webkit-scrollbar { width: 6px; }
.graffiti-wall-box::-webkit-scrollbar-thumb { background-color: #222; border-radius: 4px; }
.graffiti-wall-box::-webkit-scrollbar-thumb:hover { background-color: var(--accent-color); }

.graffiti-msg {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    animation: sprayAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes sprayAppear {
    0% { opacity: 0; transform: translateY(10px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.msg-content {
    display: flex;
    align-items: center; 
    flex-grow: 1;
    flex-wrap: wrap; 
    gap: 6px; 
}
.msg-user-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px; 
}
.msg-username {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}
.msg-time {
    color: #555 !important;
    font-size: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
}
.msg-divider {
    color: #444;
    font-weight: bold;
    margin-right: 2px;
}
.msg-text {
    color: #e0e0e0;
    word-break: break-word;
    font-weight: 400;
}

.graffiti-form {
    display: flex;
    gap: 12px;
}
.graffiti-input {
    flex-grow: 1;
    padding: 14px 18px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-family: 'Kanit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.graffiti-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.15);
}
.graffiti-btn {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 0 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}
.graffiti-btn:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.radar-title { margin-top: 60px; }
.news-card.radar-card {
    display: flex;
    flex-direction: column;
    background: #0c0c0c;
    height: 100%;
}
.radar-img-wrap {
    width: 100%;
    height: 200px;
    background: #222;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #1a1a1a;
}
.radar-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
    transition: transform 0.4s ease, filter 0.4s ease;
}
.news-card.radar-card:hover .radar-avatar {
    transform: scale(1.05);
    filter: grayscale(50%) contrast(110%);
}
.radar-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.radar-tag-wrap { margin-bottom: 10px; }
.radar-tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}
.radar-tag.tag-drill { background: #ff3333; color: #fff; }
.radar-tag.tag-boombap { background: var(--accent-color); color: #000; }
.radar-name { color: #fff; font-size: 1.4rem; font-family: 'Space Grotesk', sans-serif; }
.radar-bio { color: #777; font-size: 0.9rem; margin-top: 8px; flex-grow: 1; font-weight: 300; line-height: 1.5; }
.radar-link {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.radar-link:hover { color: #fff; transform: translateX(5px); }

.emoji-btn {
    background: #111111;
    border: 1px solid #333;
    padding: 6px 12px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.emoji-btn:hover {
    background: rgba(0, 255, 255, 0.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}
.emoji-btn:active { transform: translateY(0); }

.respect-btn {
    background: #151515;
    border: 1px solid #252525;
    color: #888;
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}
.respect-btn:hover {
    background: rgba(255, 68, 0, 0.1);
    border-color: #ff4500;
    color: #ff4500;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
    transform: scale(1.05);
}
.respect-btn .count { font-family: 'Space Grotesk', sans-serif; color: #e0e0e0; }
.respect-btn:hover .count { color: #ffaa00; }

@media (max-width: 768px) {
    main { margin: 20px auto; padding: 0 12px; }
    .section-title { font-size: 1.6rem; margin-bottom: 20px; }
    .sticky-nav { padding: 10px 0; }
    .nav-container { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .nav-link { font-size: 0.75rem; letter-spacing: 1px; padding: 4px 6px; }
    .featured-section { grid-template-columns: 1fr !important; gap: 20px; }
    .featured-card { min-height: 350px !important; }
    .featured-title { font-size: 1.6rem; }
    .featured-overlay { padding: 20px; }
    .news-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .news-img { height: 200px !important; }
    .news-card.radar-card { height: auto !important; }
    .radar-img-wrap { height: 180px !important; }
    .radar-body { padding: 15px; }
    .radar-name { font-size: 1.25rem; }
    .graffiti-container { padding: 15px; }
    .graffiti-wall-box { height: 280px; padding: 12px; }
    .graffiti-msg { gap: 10px; }
    .msg-content { font-size: 0.88rem; }
    .respect-btn { padding: 3px 8px; font-size: 0.75rem; }
    .graffiti-emojis { gap: 6px !important; justify-content: flex-start; }
    .graffiti-emojis span { font-size: 0.75rem !important; width: 100%; margin-bottom: 5px; }
    .emoji-btn { padding: 8px 14px; font-size: 1.2rem; }
    .graffiti-form { flex-direction: column; gap: 10px; }
    #graffitiName { width: 100% !important; }
    .graffiti-input { padding: 12px; font-size: 0.9rem; }
    .graffiti-btn { width: 100% !important; padding: 12px; }
    .rate-stats { gap: 20px; }
    .stat-box h4 { font-size: 2rem; }
    .rate-btn { width: 100%; font-size: 1rem; padding: 12px 20px; }
}

@media (max-width: 360px) {
    h1.logo { font-size: 1.8rem !important; }
    .nav-link { font-size: 0.7rem; padding: 4px 4px; }
    .emoji-btn { padding: 6px 10px; }
}

.live-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    border: 1px solid #222;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}
.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ff3333;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff3333;
    animation: pulseDot 2s infinite;
}
.live-text { color: #888; }
.live-text strong { color: #ff3333; text-shadow: 0 0 5px rgba(255, 51, 51, 0.4); }

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 51, 51, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
}

.artist-badge {
    background: linear-gradient(45deg, #ff8800, #ffcc00);
    color: #000 !important;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 2px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(255, 136, 0, 0.4);
    font-family: 'Space Grotesk', sans-serif;
}
.verified-tick {
    color: #00aaff;
    font-size: 0.85rem;
    align-self: center;
    margin-left: -2px;
    filter: drop-shadow(0 0 4px rgba(0, 170, 255, 0.4));
}
.room-btn {
    background: #111;
    border: 1px solid #333;
    color: #666;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.room-btn:hover, .room-btn.active {
    background: rgba(0, 255, 255, 0.05);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
}

.artist-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.artist-modal-overlay.active { opacity: 1; pointer-events: auto; }
.artist-modal-box {
    background: #0d0d0d;
    border: 1px solid #ffaa00;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.2);
    width: 90%;
    max-width: 400px;
    padding: 30px 25px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.artist-modal-overlay.active .artist-modal-box { transform: scale(1); }
.modal-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff8800, #ffcc00);
    box-shadow: 0 0 10px #ffaa00;
}
.modal-icon { font-size: 2.5rem; color: #ffaa00; margin-bottom: 15px; filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.4)); }
.artist-modal-box h3 { font-family: 'Space Grotesk', sans-serif; color: #fff; font-size: 1.4rem; letter-spacing: 1px; margin-bottom: 8px; }
.artist-modal-box p { color: #777; font-size: 0.85rem; line-height: 1.5; margin-bottom: 25px; }
.modal-input-wrap { position: relative; margin-bottom: 25px; }
.modal-input-wrap i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #444; }
.modal-input-wrap input { width: 100%; background: #111; border: 1px solid #222; padding: 12px 15px 12px 45px; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; border-radius: 4px; outline: none; letter-spacing: 2px; }
.modal-input-wrap input:focus { border-color: #ffaa00; box-shadow: 0 0 10px rgba(255, 170, 0, 0.15); }
.modal-action-btns { display: flex; gap: 12px; }
.m-btn { flex: 1; padding: 12px; font-family: 'Space Grotesk', 'Kanit', sans-serif; font-weight: 800; font-size: 0.9rem; border-radius: 4px; cursor: pointer; border: none; letter-spacing: 1px; transition: all 0.2s ease; }
.m-btn.btn-cancel { background: #151515; color: #888; border: 1px solid #252525; }
.m-btn.btn-cancel:hover { background: #222; color: #fff; }
.m-btn.btn-submit { background: linear-gradient(45deg, #ff8800, #ffcc00); color: #000; box-shadow: 0 0 10px rgba(255, 136, 0, 0.3); }
.m-btn.btn-submit:hover { filter: brightness(1.1); box-shadow: 0 0 15px rgba(255, 136, 0, 0.5); transform: translateY(-2px); }

.error-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2500; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.vote-station-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 12px 14px;
    border-radius: 6px;
    gap: 10px;
}
.vote-station-item .track-info { flex-grow: 1; min-width: 0; }
.vote-station-item .track-info h4 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 768px) {
    .mini-player-box {
        bottom: 15px !important;
        right: 15px !important;
        left: 15px !important;
        border-radius: 16px !important;
        padding: 10px 15px !important;
        justify-content: space-between;
        gap: 10px !important;
    }
    .track-text h5 { font-size: 0.8rem !important; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.error-modal-overlay.active { opacity: 1; pointer-events: auto; }
.error-modal-box {
    background: #0d0d0d;
    border: 1px solid #ff3333;
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.2);
    width: 90%;
    max-width: 380px;
    padding: 30px 25px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.error-modal-overlay.active .error-modal-box { transform: scale(1); }
.error-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff3333, #ff007f);
    box-shadow: 0 0 10px #ff3333;
}
.error-modal-icon { font-size: 2.5rem; color: #ff3333; margin-bottom: 15px; filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.5)); }
.error-modal-box h3 { font-family: 'Space Grotesk', sans-serif; color: #fff; font-size: 1.3rem; letter-spacing: 1px; margin-bottom: 10px; text-transform: uppercase; }
.error-modal-box p { color: #999; font-size: 0.9rem; line-height: 1.5; margin-bottom: 25px; }
.error-m-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #ff3333, #ff007f);
    color: #fff;
    font-family: 'Space Grotesk', 'Kanit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
    transition: all 0.2s ease;
}
.error-m-btn:hover { filter: brightness(1.2); box-shadow: 0 0 15px rgba(255, 51, 51, 0.6); transform: translateY(-2px); }

.intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #020202;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, pointer-events 0.6s ease;
}
.intro-loader.fade-out { opacity: 0; pointer-events: none; }
.intro-content { text-align: center; position: relative; }
.intro-logo-glitch { width: 140px; height: 140px; border-radius: 50%; animation: glitchAnim 1.2s infinite; }
.intro-text-glitch { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; letter-spacing: 3px; color: #fff; margin-top: 20px; text-shadow: 0 0 8px rgba(0, 255, 255, 0.6); animation: glitchText 1s infinite; }

@keyframes glitchAnim {
    0% { transform: translate(0) scale(1); filter: hue-rotate(0deg); }
    10% { transform: translate(-2px, 1px) scale(1.02); filter: grayscale(100%); }
    20% { transform: translate(2px, -1px); }
    30% { transform: translate(0); }
    90% { transform: translate(-1px, -1px); }
    92% { transform: translate(3px, 3px) skewX(15deg); filter: invert(1); }
    95% { transform: translate(0); }
}
@keyframes glitchText {
    0%, 90%, 100% { text-shadow: 0 0 8px rgba(0, 255, 255, 0.6); color: #fff; }
    92% { text-shadow: 2px -2px #ff007f, -2px 2px #00ffff; color: #00ffff; }
    95% { text-shadow: -3px 1px #fff000, 3px -1px #ff007f; }
}

.mini-player-box {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: 30px;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mini-player-box.active { transform: translateY(0); opacity: 1; }
.player-track-info { display: flex; align-items: center; gap: 10px; }
.player-track-info i { color: var(--accent-color); font-size: 1.4rem; }
.disc-spinning { animation: spin 3s linear infinite; animation-play-state: paused; }

@keyframes spin { 100% { transform: rotate(360deg); } }
.track-text h5 { color: #fff; font-size: 0.85rem; font-weight: 500; margin: 0; }
.track-text p { color: #666; font-size: 0.7rem; margin: 0; }
.player-controls { display: flex; align-items: center; gap: 12px; }
.p-control-btn { background: transparent; border: none; color: #fff; font-size: 1rem; cursor: pointer; transition: color 0.2s; }
.p-control-btn:hover { color: var(--accent-color); }
.player-divider { color: #222; }

.sponsor-ticker-container {
    background: #090909;
    border: 1px solid #151515;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    width: 100%;
}
.sponsor-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 60px;
    animation: scrollSponsorsInfinite 20s linear infinite;
}
.sponsor-logo-item { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sponsor-logo-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.sponsor-logo-item img:hover {
    filter: grayscale(0%) opacity(1) drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .sponsor-logo-item img { width: 45px; height: 45px; }
    .sponsor-ticker-track { gap: 40px; }
}

@keyframes scrollSponsorsInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 30px)); }
}

.vote-station-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 12px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.vote-station-item:hover { border-color: rgba(0, 255, 255, 0.3); background: #111; }
.vote-up-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.1);
    transition: all 0.2s ease;
}
.vote-up-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}
.vote-total-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: #666;
    background: #151515;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

#voting-station-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px; 
    overflow-y: auto; 
    padding-right: 5px; 
}
#voting-station-list::-webkit-scrollbar { width: 5px; }
#voting-station-list::-webkit-scrollbar-track { background: #050505; border-radius: 4px; }
#voting-station-list::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }
#voting-station-list::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

.vote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2200; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.vote-modal-overlay.active { opacity: 1; pointer-events: auto; }
.vote-modal-box {
    background: #0d0d0d;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.15);
    width: 90%;
    max-width: 500px;
    padding: 30px 25px;
    border-radius: 8px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.vote-modal-overlay.active .vote-modal-box { transform: scale(1); }
.vote-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #ff007f);
    box-shadow: 0 0 10px var(--accent-color);
}
.vote-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #555;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
}
.vote-modal-close:hover { color: var(--accent-color); }
.vote-modal-box h3 { font-family: 'Space Grotesk', sans-serif; color: #fff; font-size: 1.3rem; letter-spacing: 1px; margin: 0 0 5px 0; }

.vote-search-wrap { position: relative; margin-bottom: 20px; }
.vote-search-wrap .search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #444; }
.vote-search-wrap input { width: 100%; background: #111; border: 1px solid #222; padding: 12px 15px 12px 45px; color: #fff; font-family: 'Space Grotesk', 'Kanit', sans-serif; font-size: 0.95rem; border-radius: 4px; outline: none; transition: all 0.3s ease; }
.vote-search-wrap input:focus { border-color: var(--accent-color); box-shadow: 0 0 10px rgba(0, 255, 255, 0.15); }

#modal-voting-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px; 
    overflow-y: auto;
    padding-right: 5px;
}
#modal-voting-list::-webkit-scrollbar { width: 5px; }
#modal-voting-list::-webkit-scrollbar-track { background: #050505; }
#modal-voting-list::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }
#modal-voting-list::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

.auth-trigger-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.auth-trigger-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.provider-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    color: #fff;
}
.provider-btn.btn-google { background: #df4a32; box-shadow: 0 0 10px rgba(223, 74, 50, 0.2); }
.provider-btn.btn-google:hover { filter: brightness(1.1); box-shadow: 0 0 15px rgba(223, 74, 50, 0.4); }
.provider-btn.btn-facebook { background: #3b5998; box-shadow: 0 0 10px rgba(59, 89, 152, 0.2); }
.provider-btn.btn-facebook:hover { filter: brightness(1.1); box-shadow: 0 0 15px rgba(59, 89, 152, 0.4); }

@media (max-width: 768px) {
    .auth-corner-zone { position: static !important; margin-bottom: 10px; text-align: center; width: 100%; }
    .auth-trigger-btn { width: 100%; justify-content: center; padding: 10px; }
}

/* 📸 วงกลมรูปโปรไฟล์ Facebook บนเมนูขวาบน */
.user-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    transition: transform 0.3s ease;
    margin-right: 8px; /* เว้นระยะห่างจากชื่อ */
}
.auth-trigger-btn:hover .user-nav-avatar { transform: scale(1.1); box-shadow: 0 0 15px var(--accent-color); }

.msg-avatar-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    flex-shrink: 0;
    background: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.msg-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #0d0d0d;
    border: 1px solid #ff3333;
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.2);
    border-radius: 4px;
    padding: 6px;
    min-width: 130px;
    z-index: 2400 !important; /* ดันเลเยอร์ขี่ทับปุ่มหน้าสุด */
}
.user-dropdown-menu.active {
    display: block;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

.sign-out-action-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: #ff3333;
    padding: 10px 12px;
    font-family: 'Space Grotesk', 'Kanit', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}
.sign-out-action-btn:hover { background: rgba(255, 51, 51, 0.1); color: #fff; text-shadow: 0 0 5px #ff3333; }

@keyframes dropdownFadeIn {
    0% { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =================================================================
   🎡 UDG CYBER LUCKY WHEEL & REWARDS VAULT SYSTEM STYLE 
================================================================= */
.wheel-system-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
    background: #080808;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #111;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.wheel-left-panel {
    flex: 1;
    min-width: 290px; /* ลดสเกลขั้นต่ำเพื่อให้ลงมือถือจอแคบได้สบาย */
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #030303;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #151515;
    box-sizing: border-box;
}

.wheel-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px; /* ขนาดสูงสุดบนคอมพิวเตอร์ */
    aspect-ratio: 1 / 1; /* บังคับล็อกสเกลจัตุรัสกันวงล้อเบี้ยวเป็นทรงไข่ */
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wheelPointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid #00ffff;
    filter: drop-shadow(0 0 10px #00ffff);
    z-index: 10;
}

.wheel-pool-section {
    margin-top: 25px;
    width: 100%;
    border-top: 1px dashed #1a1a1a;
    padding-top: 15px;
}
.wheel-pool-title {
    font-family: 'Space Grotesk', sans-serif;
    color: #ff007f;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.wheel-rewards-grid-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)) !important;
    gap: 8px !important;
    max-height: 110px !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
}
.wheel-rewards-grid-box::-webkit-scrollbar { width: 3px; }
.wheel-rewards-grid-box::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }

.wheel-badge-item {
    background: rgba(0, 255, 255, 0.02) !important;
    border: 1px solid #1a1a1a !important;
    color: #ccc !important;
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    font-family: monospace !important;
    display: inline-block !important;
    box-shadow: inset 0 0 5px rgba(0, 255, 255, 0.01) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.wheel-badge-item span { color: #fff !important; font-weight: bold !important; }

.rewards-vault-right-panel {
    flex: 1;
    min-width: 320px;
    background: #111;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}
.vault-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: #00ffff;
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
}
.vault-header p { color: #555; font-size: 0.78rem; line-height: 1.4; }

#myCouponsList {
    flex-grow: 1;
    min-height: 300px;
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 5px;
    margin-bottom: 15px;
}
#myCouponsList::-webkit-scrollbar { width: 4px; }
#myCouponsList::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }
#myCouponsList::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

.vault-coupon-card {
    background: #070707 !important;
    border: 1px solid #1c1c1c !important;
    border-left: 3px solid #00ffff !important;
    padding: 12px !important;
    border-radius: 4px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    animation: couponAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}
.coupon-info-title { color: #fff !important; font-family: monospace !important; font-size: 0.92rem !important; text-shadow: 0 0 5px rgba(255, 255, 255, 0.1); }
.coupon-secret-code-badge {
    display: block !important;
    margin-top: 5px !important;
    font-family: monospace !important;
    color: #fff000 !important;
    font-size: 0.8rem !important;
    font-weight: bold !important;
    background: rgba(255, 240, 0, 0.04) !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    border: 1px solid rgba(255, 240, 0, 0.12) !important;
    width: fit-content !important;
}
.coupon-timestamp { color: #444 !important; font-size: 0.68rem !important; display: block !important; margin-top: 5px !important; }
.coupon-status-ready {
    color: #39ff14 !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    background: rgba(57, 255, 20, 0.04) !important;
    padding: 3px 8px !important;
    border-radius: 3px !important;
    border: 1px solid rgba(57, 255, 20, 0.15) !important;
    letter-spacing: 0.5px !important;
}

@keyframes couponAppear {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .wheel-system-flex-container { padding: 15px; gap: 20px; }
    .wheel-left-panel, .rewards-vault-right-panel { min-width: 100%; }
    .wheel-canvas-wrapper { width: 290px; height: 290px; }
    #luckyWheelCanvas { width: 290px !important; height: 290px !important; }
    #myCouponsList { min-height: 250px; }
}

/* 🎡 ปรับโครงสร้างแรงเฉื่อยเฉลี่ยแรงเหวี่ยงให้สมูทขั้นสุดใน style.css */
#luckyWheelCanvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    max-width: 320px;
    max-height: 320px;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
    /* 🎯 สูตรลับสตรีท: ปรับเวลาเหวี่ยงยาวขึ้นเป็น 6 วินาที พ่วง Bezier ปล่อยฟรีปลายสายสไลด์เข้านิ่งๆ */
    transition: transform 6s cubic-bezier(0.1, 0.8, 0.1, 1);
}

/* หมุดลูกศรชี้รางวัลด้านบนสุด */
#wheelPointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 22px solid #00ffff;
    filter: drop-shadow(0 0 8px #00ffff);
    z-index: 10;
}

/* ปุ่ม SPIN NOW สไตล์นีออนไซเบอร์ */
#spinWheelBtn {
    width: 100%;
    max-width: 320px;
    background: #00ffff;
    color: #000;
    border: none;
    padding: 14px 0;
    font-family: 'Space Grotesk', 'Kanit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    margin-top: 15px;
}
#spinWheelBtn:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.wheel-pool-section {
    margin-top: 25px;
    width: 100%;
    border-top: 1px dashed #1a1a1a;
    padding-top: 15px;
}

/* รายการป้ายแท็กของรางวัลด้านล่างวงล้อ */
.wheel-rewards-grid-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 6px !important;
    max-height: 120px !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
    width: 100%;
}

/* 📱 🎯 จุดตัดบนมือถือหน้าจอแคบ (เช่น เปิดใน IG หรือ โทรศัพท์ทั่วไป) */
@media (max-width: 480px) {
    .wheel-system-flex-container {
        padding: 12px;
        gap: 15px;
    }
    .wheel-left-panel {
        padding: 12px;
        min-width: 100%;
    }
    .wheel-canvas-wrapper {
        max-width: 260px; /* ย่อขนาดวงล้อลงมาให้พอดีกับความกว้างหน้าจอมือถือ */
    }
    #spinWheelBtn {
        font-size: 1rem;
        padding: 12px 0;
    }
    .wheel-rewards-grid-box {
        grid-template-columns: repeat(2, 1fr) !important; /* บังคับเรียงไอเท็มเป็น 2 คอลัมน์คู่บนมือถือ */
    }
}


/* =================================================================
   💸 CYBER AD ROTATOR - NO BLINKING STYLE
================================================================= */

.ad-banner {
    position: relative;
    overflow: hidden;
    /* 🎯 นิ่งสนิท: ลบอนิเมชัน opacity ทิ้งไป เหลือไว้แค่เอฟเฟกต์ตอนเมาส์ชี้เพื่อความสตรีท */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ❌ ลบคลาส ad-fade-engine และ ad-invisible ตัวเก่าออกไปได้เลยครับน้า เพื่อตัดวงจรการกระพริบ */

/* รางยึดแถบเลเซอร์นับถอยหลังขอบล่างสุด */
.ad-progress-bar-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.03);
    z-index: 20;
}

/* ⚡ เส้นเลเซอร์นีออนวิ่งถอยหลัง (ขยับนุ่มนวลแบบนิ่งๆ) */
#ad-progress-laser {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00ffff, #ff007f);
    box-shadow: 0 0 8px #00ffff;
    transition: width 0.1s linear; 
}

@media (max-width: 480px) {
    .wheel-canvas-wrapper {
        max-width: 280px !important; /* บีบโครงวงล้อให้พอดีกับจอ iPhone/Android ทุกรุ่น */
        margin: 10px auto !important;
    }
    #luckyWheelCanvas {
        width: 280px !important;
        height: 280px !important;
    }
}