/* ==========================================
   CYBER-WUKONG THEME: DARK & ORANGE POWER
   ========================================== */

   :root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1f1f1f;
    --accent-orange: #ff5500;
    --accent-orange-hover: #ff7733;
    --text-main: #ffffff;
    --text-muted: #888888;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--accent-orange);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left { display: flex; align-items: center; gap: 40px; }
.logo { color: var(--accent-orange); font-size: 22px; font-weight: 900; letter-spacing: 1px; text-shadow: 0 0 10px rgba(255, 85, 0, 0.4); }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-orange); }

.nav-right { display: flex; align-items: center; gap: 15px; }
.btn-topup { background-color: var(--accent-orange); color: #fff; padding: 6px 14px; border-radius: 4px; text-decoration: none; font-weight: bold; font-size: 14px; }
.btn-profile { color: var(--text-main); text-decoration: none; font-size: 14px; }
.search-box { background: var(--bg-card); border: 1px solid #333; padding: 6px 12px; border-radius: 4px; color: #fff; outline: none; }
.search-box:focus { border-color: var(--accent-orange); }

/* Main Container */
.main-container { padding: 30px; max-width: 1400px; margin: 0 auto; }

/* Hero Banner */
.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(10,10,10,0.9)), url('https://images.unsplash.com/photo-1534447677768-be436bb09401?auto=format&fit=crop&w=1200&q=80') center/cover;
    height: 450px;
    border-radius: 12px;
    border: 1px solid #222;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    margin-bottom: 40px;
}
.hero-content h2 { font-size: 32px; color: var(--accent-orange); margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.hero-content p { color: #ddd; max-width: 600px; margin-bottom: 20px; font-size: 15px; line-height: 1.5; }
.btn-play { background-color: var(--accent-orange); color: #fff; border: none; padding: 10px 24px; font-weight: bold; font-size: 15px; border-radius: 6px; cursor: pointer; transition: background 0.2s; }
.btn-play:hover { background-color: var(--accent-orange-hover); }

/* Section Block */
.section-title { font-size: 18px; color: var(--accent-orange); margin-bottom: 15px; border-left: 4px solid var(--accent-orange); padding-left: 10px; }
.football-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; }
.match-card { background-color: var(--bg-card); border: 1px solid #262626; padding: 15px; border-radius: 8px; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.2s; cursor: pointer; }
.match-card:hover { border-color: var(--accent-orange); }
.match-card span { font-size: 14px; font-weight: 600; }
.match-card small { color: var(--accent-orange); font-size: 12px; font-weight: bold; }
/* เพิ่มเติมสำหรับแบนเนอร์ซุนหงอคงร่างเทพ */
.hero-banner-wukong {
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 30%, rgba(20,10,5,0.7) 100%), 
                url('https://images.unsplash.com/photo-1506703719100-a0f3a48c0f86?auto=format&fit=crop&w=1200&q=80') center/cover;
    height: 480px;
    border-radius: 14px;
    border: 1px solid rgba(255, 85, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.badge-god {
    background-color: var(--accent-orange);
    color: #000;
    font-weight: 900;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.6);
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hero-content h2 { 
    font-size: 36px; 
    color: var(--accent-orange); 
    margin-bottom: 12px; 
    text-shadow: 0 0 20px rgba(255, 85, 0, 0.5); 
    font-weight: 900;
}

.hero-content p { 
    color: #cccccc; 
    margin-bottom: 25px; 
    font-size: 16px; 
    line-height: 1.6; 
}

/* ส่วนปรับแต่งโลโก้มหาเทพซุนหงอคงไซเบอร์ */
.wukong-character-badge {
    background: linear-gradient(135deg, #141414, #1f1f1f);
    color: #ffffff;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(255, 85, 0, 0.4), inset 0 0 20px rgba(255, 85, 0, 0.3);
    border: 3px solid var(--accent-orange);
    text-align: center;
    position: relative;
}

.cyber-crown {
    font-size: 36px;
    filter: drop-shadow(0 0 10px rgba(255, 85, 0, 0.8));
    animation: pulseGlow 2s infinite alternate;
}

.deity-title {
    font-size: 15px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    margin-top: 4px;
    text-shadow: 0 0 8px rgba(255, 85, 0, 0.6);
}

.wukong-character-badge small {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-orange);
    margin-top: 2px;
    letter-spacing: 1.5px;
}

@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 85, 0, 0.5)); }
    100% { transform: scale(1.08); filter: drop-shadow(0 0 15px rgba(255, 85, 0, 1)); }
}
/* จัดระเบียบโซนฟุตบอลแยกตามลีก */
.league-category {
    margin-bottom: 25px;
}

.league-name {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid var(--accent-orange);
    padding-left: 8px;
}

.live-badge {
    color: #ff3333 !important;
    animation: blinkLive 1.5s infinite;
}

@keyframes blinkLive {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
/* Media Grid & Cards (สำหรับ หนัง, ซีรีส์, ทีวี) */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.media-card {
    background-color: var(--bg-card);
    border: 1px solid #262626;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.media-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 20px rgba(255, 85, 0, 0.2);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-orange);
    color: #000;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}

/* ปรับแต่งสไตล์การ์ดหลักให้ขอบโค้งมนและจัดวางสวยงาม */
.media-card {
    background-color: var(--bg-card);
    border: 1px solid #262626;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
    padding: 12px; /* เพิ่มพื้นที่รอบๆ ให้การ์ดดูโปร่งสะอาดเหมือนเว็บต้นฉบับ */
}

/* ปรับแต่งส่วนแสดงผลรูปโลโก้ (Card Poster) ให้เป็นกรอบสี่เหลี่ยมผืนผ้าแนวนอน */
.card-poster {
    height: 120px; /* ความสูงกำลังพอดี */
    width: 100%; /* เต็มความกว้างของการ์ด */
    margin: 0 0 12px 0; /* เว้นระยะห่างด้านล่างเล็กน้อยก่อนถึงชื่อช่อง */
    border-radius: 8px; /* ทำขอบโค้งมน */
    background-color: #ffffff; /* ใส่พื้นหลังสีขาวรองรับเหมือนเว็บต้นฉบับ */
    background-size: contain; /* ให้รูปโลโก้แสดงผลเต็มกรอบพอดีโดยไม่โดนตัด */
    background-position: center; /* จัดกึ่งกลาง */
    background-repeat: no-repeat;
}

/* ภาพตัวอย่างจำลองสำหรับโปสเตอร์หนัง */
.movie-bg-1 { background-image: url('https://images.unsplash.com/photo-1534447677768-be436bb09401?auto=format&fit=crop&w=600&q=80'); }
.movie-bg-2 { background-image: url('https://images.unsplash.com/photo-1508739773434-c26b3d09e071?auto=format&fit=crop&w=600&q=80'); }
.movie-bg-3 { background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=600&q=80'); }
.movie-bg-4 { background-image: url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?auto=format&fit=crop&w=600&q=80'); }

.card-info {
    padding: 15px;
}

.card-info h4 {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 6px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2; /* เพิ่มบรรทัดนี้เข้าไปเพื่อรองรับมาตรฐานสากลครับ */
    overflow: hidden;
}
/* ภาพตัวอย่างจำลองสำหรับโปสเตอร์ซีรีส์ */
.series-bg-1 { background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&w=600&q=80'); }
.series-bg-2 { background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=600&q=80'); }
.series-bg-3 { background-image: url('https://images.unsplash.com/photo-1538481199705-c710c4e965fc?auto=format&fit=crop&w=600&q=80'); }
.series-bg-4 { background-image: url('https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?auto=format&fit=crop&w=600&q=80'); }
/* ภาพตัวอย่างจำลองสำหรับช่องทีวี */
.tv-bg-1 { background-image: url('https://images.unsplash.com/photo-1585829365295-ab7cd400c167?auto=format&fit=crop&w=600&q=80'); }
.tv-bg-2 { background-image: url('https://images.unsplash.com/photo-1517649763962-0c6232660102?auto=format&fit=crop&w=600&q=80'); }
.tv-bg-3 { background-image: url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=600&q=80'); }
.tv-bg-4 { background-image: url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?auto=format&fit=crop&w=600&q=80'); }
/* สไตล์สำหรับหน้าโปรไฟล์และเติมเงิน */
.profile-card-container {
    background-color: var(--bg-card);
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

.profile-header-box {
    display: flex;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid #262626;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.profile-avatar-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1f1f1f, #0a0a0a);
    border: 2px solid var(--accent-orange);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.3);
}

.profile-details h2 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 5px;
}

.profile-details p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 3px;
}

.vip-tag {
    color: var(--accent-orange);
    font-weight: 800;
}

.wallet-balance {
    color: #00ff66;
    font-weight: bold;
}

.profile-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.topup-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
/* สไตล์สำหรับหน้า Login */
.login-body {
    background-color: var(--bg-main);
    background-image: linear-gradient(135deg, rgba(10,10,10,0.9), rgba(20,10,5,0.95)), 
                      url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background-color: var(--bg-card);
    border: 1px solid var(--accent-orange);
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 0 30px rgba(255, 85, 0, 0.25);
}

.login-logo-area {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo-area p {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-input {
    width: 100%;
    padding: 12px 15px;
    background-color: #141414;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.login-input:focus {
    border-color: var(--accent-orange);
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 6px;
    font-weight: bold;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}



