/* ===============================
   SPORTS PAGE STYLES
   =============================== */

/* Page Header - ใช้สไตล์เดียวกับหน้าอื่น */
.page-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="20" fill="%23e8c742" opacity="0.1"/><circle cx="20" cy="20" r="10" fill="%23e8c742" opacity="0.1"/><circle cx="80" cy="80" r="15" fill="%23e8c742" opacity="0.1"/></svg>');
    background-size: 80px 80px;
    animation: floatSports 30s linear infinite;
}

@keyframes floatSports {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(80px) translateY(-80px); }
}

.page-header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-breadcrumb {
    margin-bottom: 2rem;
    color: #cccccc;
    font-size: 1rem;
}

.page-breadcrumb a {
    color: #e8c742;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb-separator {
    margin: 0 1rem;
    color: #666666;
}

.breadcrumb-current {
    color: #ffffff;
    font-weight: 500;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-title-icon {
    font-size: 4rem;
    animation: bounceFootball 2s infinite;
}

@keyframes bounceFootball {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.page-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Sports Stats */
.sports-stats {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.1), rgba(244, 208, 63, 0.05));
    border: 2px solid rgba(232, 199, 66, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(232, 199, 66, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.stat-card:hover::before {
    animation: shine 0.5s ease-in-out;
    opacity: 1;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: #e8c742;
    box-shadow: 0 20px 40px rgba(232, 199, 66, 0.3);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e8c742;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #cccccc;
    font-weight: 500;
}

/* Live Matches */
.live-matches {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.live-ticker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.live-match-card {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.05));
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.live-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.live-match-card:hover::before {
    opacity: 1;
}

.live-match-card:hover {
    transform: translateY(-5px);
    border-color: #e74c3c;
    box-shadow: 0 15px 30px rgba(231, 76, 60, 0.2);
}

.match-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.live-indicator {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.match-minute {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.team img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.team span {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.match-score {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e8c742;
    margin: 0 1rem;
    text-align: center;
    min-width: 80px;
}

.match-odds {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.odds-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.odds-btn:hover {
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    border-color: #e8c742;
    color: #000000;
    transform: translateY(-2px);
}

/* Sports Categories */
.sports-categories {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.1), rgba(244, 208, 63, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: #e8c742;
    box-shadow: 0 20px 40px rgba(232, 199, 66, 0.2);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.category-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.category-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.category-stats .stat {
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.2), rgba(244, 208, 63, 0.1));
    border: 1px solid rgba(232, 199, 66, 0.3);
    color: #e8c742;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-card:hover .category-stats .stat {
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.3), rgba(244, 208, 63, 0.2));
    border-color: #e8c742;
    color: #ffffff;
    transform: scale(1.05);
}

/* Sports Filter */
.sports-filter {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #cccccc;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.filter-tab:hover {
    background: rgba(232, 199, 66, 0.1);
    border-color: rgba(232, 199, 66, 0.5);
    color: #ffffff;
}

.filter-tab.active {
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    border-color: #e8c742;
    color: #000000;
}

.filter-options {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.filter-search {
    flex: 1;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #e8c742;
    box-shadow: 0 0 0 3px rgba(232, 199, 66, 0.2);
}

.search-input::placeholder {
    color: #888888;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    border: none;
    border-radius: 20px;
    width: 40px;
    height: 40px;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.filter-selects {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #e8c742;
    box-shadow: 0 0 0 3px rgba(232, 199, 66, 0.2);
}

.filter-select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* Sports Matches Section */
.sports-matches-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 60vh;
}

.matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.matches-count {
    color: #e8c742;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Matches List */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.matches-list.show {
    opacity: 1;
    transform: translateY(0);
}

/* Match Card */
.match-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
    /* ปรับ Layout ให้สมดุล */
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 1.5rem;
    min-height: 280px;
}

/* ปรับ Header Section */
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.match-league {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.league-badge {
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-time-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.match-date {
    font-size: 0.9rem;
    color: #cccccc;
    font-weight: 500;
}

.match-set {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

/* ปรับ Players Section */
.match-players {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
}

.player {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player.away {
    flex-direction: row-reverse;
    text-align: right;
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    border: 3px solid rgba(232, 199, 66, 0.3);
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.player-form {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.player.away .player-form {
    justify-content: flex-end;
}

.form-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ปรับ Score Section */
.match-score-section {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-score-display {
    font-size: 2.2rem;
    font-weight: 800;
    color: #e8c742;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.match-sets {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 0.5rem;
}

/* ปรับ Match Info */
.match-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.85rem;
    color: #cccccc;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

/* ปรับ Betting Section */
.match-betting {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bet-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bet-type {
    font-size: 0.75rem;
    color: #cccccc;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-odds {
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.1), rgba(244, 208, 63, 0.05));
    border: 2px solid rgba(232, 199, 66, 0.2);
    color: #e8c742;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bet-odds:hover {
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    border-color: #e8c742;
    color: #000000;
    transform: translateY(-2px);
}

/* Featured Leagues - จัดรูปแบบใหม่ให้สวยงาม */
.featured-leagues {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.league-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    
    /* จัดรูปแบบใหม่ */
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo info matches";
    align-items: center;
    gap: 2rem;
    min-height: 140px;
}

.league-card:hover {
    transform: translateY(-8px);
    border-color: #e8c742;
    box-shadow: 0 20px 40px rgba(232, 199, 66, 0.3);
}

.league-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.1), rgba(244, 208, 63, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.league-card:hover::before {
    opacity: 1;
}

/* League Logo - ปรับปรุงใหม่ */
.league-logo {
    grid-area: logo;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.1), rgba(244, 208, 63, 0.05));
    border: 3px solid rgba(232, 199, 66, 0.3);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.league-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.league-card:hover .league-logo {
    border-color: #e8c742;
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.2), rgba(244, 208, 63, 0.1));
    transform: scale(1.05);
}

.league-card:hover .league-logo img {
    transform: scale(1.1);
}

/* League Info - ปรับปรุงใหม่ */
.league-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.league-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.league-info p {
    color: #cccccc;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

.league-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.league-stats .stat {
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.15), rgba(244, 208, 63, 0.1));
    border: 1px solid rgba(232, 199, 66, 0.3);
    color: #e8c742;
    padding: 0.4rem 1rem;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.league-card:hover .league-stats .stat {
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.25), rgba(244, 208, 63, 0.15));
    border-color: #e8c742;
    color: #ffffff;
    transform: translateY(-2px);
}

/* League Matches - แก้ไขปัญหาไอคอนทับข้อความ */
.league-matches {
    grid-area: matches;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.matches-today {
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    color: #000000;
    padding: 1.25rem 3rem 1.25rem 2rem; /* เพิ่ม padding ขวาให้ไอคอน */
    border-radius: 35px;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(232, 199, 66, 0.4);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    min-width: 160px; /* เพิ่มความกว้างขั้นต่ำ */
    text-align: left; /* จัดข้อความชิดซ้าย */
    
    /* ให้พื้นที่สำหรับไอคอน */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.matches-today::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.matches-today::after {
    content: '⚽';
    position: absolute;
    right: 1rem; /* ปรับตำแหน่งไอคอน */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    animation: bounce-icon 2s infinite;
    
    /* ป้องกันไอคอนทับข้อความ */
    flex-shrink: 0;
    z-index: 1;
}

/* หรือใช้วิธีนี้ - ใส่ไอคอนใน HTML แทน */
.matches-today .match-icon {
    font-size: 1.2rem;
    margin-left: 0.75rem;
    animation: bounce-icon 2s infinite;
    flex-shrink: 0;
}

.matches-today .match-text {
    flex: 1;
    text-align: center;
}

.league-card:hover .matches-today {
    background: linear-gradient(135deg, #f4d03f, #e8c742);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(232, 199, 66, 0.6);
}

.league-card:hover .matches-today::before {
    left: 100%;
}

/* สไตล์พิเศษสำหรับแต่ละลีก - ปรับปรุงใหม่ */
.league-card[data-league="premier"] .matches-today {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    padding: 1.25rem 3rem 1.25rem 2rem;
}

.league-card[data-league="laliga"] .matches-today {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #ffffff;
    padding: 1.25rem 3rem 1.25rem 2rem;
}

.league-card[data-league="bundesliga"] .matches-today {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: #ffffff;
    padding: 1.25rem 3rem 1.25rem 2rem;
}

.league-card[data-league="nba"] .matches-today {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #ffffff;
    padding: 1.25rem 3rem 1.25rem 2rem;
}

.league-card[data-league="nba"] .matches-today::after {
    content: '🏀';
}

/* Responsive - ปรับแต่งสำหรับมือถือ */
@media (max-width: 1024px) {
    .matches-today {
        padding: 1rem 2.5rem 1rem 1.5rem;
        min-width: 140px;
        font-size: 0.9rem;
    }
    
    .matches-today::after {
        right: 0.75rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .matches-today {
        padding: 1rem 2.5rem 1rem 1.5rem;
        min-width: 160px;
        font-size: 0.9rem;
        max-width: 220px;
    }
    
    .matches-today::after {
        right: 0.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .matches-today {
        padding: 0.875rem 2.25rem 0.875rem 1.25rem;
        font-size: 0.8rem;
        min-width: 150px;
    }
    
    .matches-today::after {
        right: 0.5rem;
        font-size: 0.9rem;
    }
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

/* Tablet */
@media (max-width: 1024px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .live-ticker {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .filter-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-selects {
        justify-content: center;
    }
    
    .match-main {
        gap: 1rem;
    }
    
    .team-logo {
        width: 50px;
        height: 50px;
    }
    
    .match-score-display {
        font-size: 2rem;
    }
    
    .leagues-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0 2rem;
    }
    
    .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-title-icon {
        font-size: 2.5rem;
    }
    
    .sports-stats {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .live-ticker {
        grid-template-columns: 1fr;
    }
    
    .live-match-card {
        padding: 1.5rem;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }
    
    .match-score {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
    
    .match-odds {
        flex-wrap: wrap;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .filter-selects {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .match-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .match-team {
        justify-content: center;
    }
    
    .match-team.away {
        flex-direction: row;
    }
    
    .team-form.away {
        justify-content: center;
    }
    
    .match-betting {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .bet-odds {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .leagues-grid {
        grid-template-columns: 1fr;
    }
    
    .league-card {
        flex-direction: column;
        text-align: center;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .live-match-card {
        padding: 1rem;
    }
    
    .team span {
        font-size: 0.9rem;
    }
    
    .match-score {
        font-size: 1.3rem;
    }
    
    .odds-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .match-betting {
        grid-template-columns: 1fr;
    }
    
    .bet-odds {
        width: 100%;
    }
}

/* ===============================
   MOBILE RESPONSIVE FIXES
   =============================== */

/* Mobile General Fixes */
@media (max-width: 768px) {
    .sports-matches-section {
        padding: 2rem 0;
    }
    
    .matches-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .matches-count {
        order: -1;
        background: linear-gradient(135deg, rgba(232, 199, 66, 0.1), rgba(244, 208, 63, 0.05));
        border: 2px solid rgba(232, 199, 66, 0.3);
        border-radius: 20px;
        padding: 0.5rem 1rem;
        display: inline-block;
    }
    
    /* Match Card Mobile */
    .match-card {
        padding: 1.5rem;
        min-height: auto;
        grid-template-rows: auto auto auto auto;
        gap: 1rem;
    }
    
    .match-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding-bottom: 0.75rem;
    }
    
    .match-time-info {
        text-align: center;
    }
    
    .match-players {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .player.away {
        flex-direction: row;
        text-align: center;
    }
    
    .player-form {
        justify-content: center;
    }
    
    .player.away .player-form {
        justify-content: center;
    }
    
    .match-score-section {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .match-info {
        grid-template-columns: 1fr;
    }
    
    .match-betting {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .bet-odds {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    /* Featured Leagues Mobile */
    .featured-leagues {
        padding: 3rem 0;
    }
    
    .leagues-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .league-card {
        /* เปลี่ยนเป็น Layout แนวตั้งบนมือถือ */
        grid-template-columns: 1fr;
        grid-template-areas: 
            "logo"
            "info"
            "matches";
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
        min-height: auto;
    }
    
    .league-logo {
        justify-self: center;
        width: 80px;
        height: 80px;
    }
    
    .league-logo img {
        width: 50px;
        height: 50px;
    }
    
    .league-info {
        text-align: center;
    }
    
    .league-info h3 {
        font-size: 1.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .league-info p {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .league-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .league-stats .stat {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .matches-today {
        width: 100%;
        max-width: 220px;
        padding: 1rem 2.5rem 1rem 1.5rem;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .matches-today::after {
        right: 0.75rem;
        font-size: 1rem;
    }
    
    /* Betting Guide Mobile */
    .betting-guide {
        padding: 3rem 0;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .guide-card {
        padding: 2rem;
    }
    
    .guide-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
    
    .guide-card h3 {
        font-size: 1.2rem;
    }
    
    .guide-card p {
        font-size: 0.9rem;
    }
    
    .guide-card .learn-more {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        margin-top: 1rem;
    }
    
    /* Navigation Bottom - แก้ไขตำแหน่ง */
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(10, 10, 10, 0.95));
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.75rem 0;
        z-index: 1000;
    }
    
    .mobile-nav-items {
        display: flex;
        justify-content: space-around;
        align-items: center;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        text-decoration: none;
        color: #cccccc;
        font-size: 0.7rem;
        font-weight: 500;
        min-width: 60px;
    }
    
    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        background: rgba(232, 199, 66, 0.1);
        color: #e8c742;
        transform: translateY(-2px);
    }
    
    .mobile-nav-item .icon {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }
    
    /* Add bottom padding to body to prevent overlap */
    body {
        padding-bottom: 80px;
    }
    
    /* Container margins */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Section padding adjustments */
    .section {
        padding: 2rem 0;
    }
    
    /* Title responsive */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .title-icon {
        font-size: 2rem;
    }
    
    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Live matches mobile */
    .live-ticker {
        grid-template-columns: 1fr;
    }
    
    .live-match-card {
        padding: 1.5rem;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }
    
    .match-score {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
    
    .match-odds {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .odds-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: 50px;
    }
    
    /* Categories grid mobile */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 2rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-card h3 {
        font-size: 1.3rem;
    }
    
    .category-stats {
        justify-content: center;
    }
    
    /* Filter mobile */
    .filter-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }
    
    .filter-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-selects {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-select {
        width: 100%;
        min-width: auto;
    }
    
    .search-box {
        max-width: 100%;
    }
}

/* Mobile Small (480px and below) */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .title-icon {
        font-size: 1.8rem;
    }
    
    .match-card {
        padding: 1.25rem;
    }
    
    .player-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .player-name {
        font-size: 1rem;
    }
    
    .match-score-display {
        font-size: 1.8rem;
    }
    
    .match-betting {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .bet-option {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .bet-odds {
        width: auto;
        min-width: 80px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .league-card {
        padding: 1.5rem;
    }
    
    .league-logo {
        width: 70px;
        height: 70px;
    }
    
    .league-logo img {
        width: 45px;
        height: 45px;
    }
    
    .league-info h3 {
        font-size: 1.1rem;
    }
    
    .league-info p {
        font-size: 0.8rem;
    }
    
    .matches-today {
        padding: 0.875rem 2.25rem 0.875rem 1.25rem;
        font-size: 0.8rem;
        min-width: 150px;
        max-width: 200px;
    }
    
    .matches-today::after {
        right: 0.5rem;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .guide-card {
        padding: 1.5rem;
    }
    
    .guide-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .guide-card h3 {
        font-size: 1.1rem;
    }
    
    .guide-card p {
        font-size: 0.85rem;
    }
    
    .guide-card .learn-more {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .mobile-nav {
        padding: 0.5rem 0;
    }
    
    .mobile-nav-item {
        font-size: 0.65rem;
        min-width: 50px;
        padding: 0.4rem;
    }
    
    .mobile-nav-item .icon {
        font-size: 1.1rem;
    }
    
    .load-more .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        min-width: 160px;
    }
    
    .load-more .btn span:first-child {
        font-size: 1rem;
    }
}

/* Portrait orientation fixes */
@media (orientation: portrait) and (max-width: 768px) {
    .league-card {
        max-width: 100%;
    }
    
    .matches-today {
        max-width: 100%;
        width: auto;
    }
    
    .match-card {
        max-width: 100%;
    }
    
    .guide-card {
        max-width: 100%;
    }
}

/* Landscape orientation fixes for mobile */
@media (orientation: landscape) and (max-height: 500px) {
    .mobile-nav {
        padding: 0.4rem 0;
    }
    
    .mobile-nav-item {
        font-size: 0.6rem;
        padding: 0.3rem;
    }
    
    .mobile-nav-item .icon {
        font-size: 1rem;
    }
    
    body {
        padding-bottom: 60px;
    }
}

/* ===============================
   ANIMATIONS
   =============================== */

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Card Animation Delays */
.match-card:nth-child(1) { animation-delay: 0.1s; }
.match-card:nth-child(2) { animation-delay: 0.2s; }
.match-card:nth-child(3) { animation-delay: 0.3s; }
.match-card:nth-child(4) { animation-delay: 0.4s; }
.match-card:nth-child(5) { animation-delay: 0.5s; }
.match-card:nth-child(6) { animation-delay: 0.6s; }
.match-card:nth-child(7) { animation-delay: 0.7s; }
.match-card:nth-child(8) { animation-delay: 0.8s; }
/* ===============================
   BETTING GUIDE SECTION
   =============================== */

.betting-guide {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.betting-guide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(232, 199, 66, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(244, 208, 63, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.guide-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    
    /* Animation */
    animation: fadeInUp 0.6s ease-out;
}

.guide-card:nth-child(1) { animation-delay: 0.1s; }
.guide-card:nth-child(2) { animation-delay: 0.2s; }
.guide-card:nth-child(3) { animation-delay: 0.3s; }
.guide-card:nth-child(4) { animation-delay: 0.4s; }

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.1), rgba(244, 208, 63, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-10px);
    border-color: #e8c742;
    box-shadow: 0 20px 40px rgba(232, 199, 66, 0.3);
}

.guide-card:hover::before {
    opacity: 1;
}

/* Guide Icon */
.guide-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.2), rgba(244, 208, 63, 0.1));
    border: 3px solid rgba(232, 199, 66, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.guide-card:hover .guide-icon {
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.3), rgba(244, 208, 63, 0.2));
    border-color: #e8c742;
    transform: scale(1.1) rotate(5deg);
}

/* Guide Content */
.guide-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.guide-card:hover h3 {
    color: #e8c742;
    transform: translateY(-2px);
}

.guide-card p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.guide-card:hover p {
    color: #ffffff;
    opacity: 1;
}

/* เพิ่มเอฟเฟกต์พิเศษสำหรับแต่ละการ์ด */
.guide-card[data-type="1x2"] {
    border-left: 4px solid #e74c3c;
}

.guide-card[data-type="1x2"]:hover {
    border-left-color: #c0392b;
}

.guide-card[data-type="over-under"] {
    border-left: 4px solid #2ecc71;
}

.guide-card[data-type="over-under"]:hover {
    border-left-color: #27ae60;
}

.guide-card[data-type="live"] {
    border-left: 4px solid #f39c12;
}

.guide-card[data-type="live"]:hover {
    border-left-color: #e67e22;
}

.guide-card[data-type="handicap"] {
    border-left: 4px solid #9b59b6;
}

.guide-card[data-type="handicap"]:hover {
    border-left-color: #8e44ad;
}

/* เพิ่มปุ่มเรียนรู้เพิ่มเติม */
.guide-card .learn-more {
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    color: #000000;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
    text-decoration: none;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.guide-card:hover .learn-more {
    opacity: 1;
    transform: translateY(0);
}

.guide-card .learn-more:hover {
    background: linear-gradient(135deg, #f4d03f, #e8c742);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 199, 66, 0.4);
}

/* เพิ่มเอนิเมชัน */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* เพิ่มเอฟเฟกต์ Pulse สำหรับไอคอน */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.guide-card:hover .guide-icon {
    animation: pulse 2s infinite;
}

/* เพิ่มเอฟเฟกต์ Shine */
.guide-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.guide-card:hover::after {
    left: 100%;
}

/* Load More Button - จัดให้อยู่ตรงกลาง */
.load-more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.load-more .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
    justify-content: center;
    text-align: center;
    
    /* เพิ่มสไตล์ให้สวยขึ้น */
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.1), rgba(244, 208, 63, 0.05));
    border: 2px solid rgba(232, 199, 66, 0.3);
    color: #e8c742;
    position: relative;
    overflow: hidden;
}

.load-more .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 199, 66, 0.2), transparent);
    transition: left 0.6s ease;
}

.load-more .btn:hover {
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    border-color: #e8c742;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(232, 199, 66, 0.4);
}

.load-more .btn:hover::before {
    left: 100%;
}

.load-more .btn span:first-child {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-2px); }
}

/* เพิ่มเอฟเฟกต์ Loading */
.load-more .btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.load-more .btn.loading span:first-child {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .load-more {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .load-more .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-width: 180px;
        gap: 0.5rem;
    }
    
    .load-more .btn span:first-child {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .load-more {
        margin-top: 1.5rem;
        padding: 1rem 0;
    }
    
    .load-more .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        min-width: 160px;
    }
    
    .load-more .btn span:first-child {
        font-size: 1rem;
    }
}