/* Home Page Styles */

/* Basic styles */
body {
    margin: 0;
    padding: 0;
    font-family: PingFangSC-regular, sans-serif;
    background-color: #f8f9fa;
}

.container {
    padding: 0 15px 15px 15px;
}

/* Title area styles */
.title-container {
    position: relative;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-container .placeholder {
    width: 36px;
}

/* Home header logo styles */
.home-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
    color: #333;
    font-size: 18px;
    transition: all 0.3s ease;
}

.home-header-logo:hover {
    color: #1565c0;
}

.title-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

.title-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.title-main {
    font-size: 18px;
    font-weight: 600;
    color: inherit;
    line-height: 1.2;
}

.title-sub {
    font-size: 12px;
    font-weight: 400;
    color: inherit;
    opacity: 0.7;
    line-height: 1.2;
}

/* Welcome text styles */
.welcome-text {
    text-align: center;
    margin: 20px 0;
}

.welcome-line1 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
    font-style: italic;
}

.welcome-line2 {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

/* Search box container */
.search-box-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

/* Search box */
.search-input-box {
    width: 200px;
    display: flex;
    align-items: center;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 15px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.search-input-box:focus-within {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.search-input-box input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    cursor: pointer;
    font-size: 18px;
    display: none;
    transition: color 0.3s ease;
}

.clear-search:hover {
    color: #1565c0;
}

/* Filter button */
.filter-btn {
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #0d47a1;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

/* Filter area styles */
.filter-section {
    background: #fff;
    border-radius: 12px;
    padding: 5px 10px;
    margin: 5px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

/* Filter option container */
.filter-options {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    width: 100%;
}

/* Filter option */
.filter-option {
    position: relative;
    display: flex;
    align-items: center;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 15px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.filter-option:hover {
    background: #f8f9fa;
    color: #1565c0;
}

.filter-option.active {
    color: #1565c0;
    background: #f0f8ff;
}

.filter-option::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 8px;
}

/* Dropdown menu container */
.dropdown-group {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    width: 120px;
    z-index: 10;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.dropdown-group.hidden {
    display: none;
}

/* Add scrollbar styling */
.dropdown-group::-webkit-scrollbar {
    width: 6px;
}

.dropdown-group::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.dropdown-group::-webkit-scrollbar-thumb {
    background: #e9ecef;
    border-radius: 4px;
}

.dropdown-group::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}

/* Dropdown option */
.dropdown-item {
    padding: 8px 15px;
    color: #6c757d;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f0f8ff;
    color: #1565c0;
}

/* Display dropdown menu state */
.filter-option.active .dropdown-group {
    display: block;
}

/* Content area styles */
.content-section {
    margin-top: 5px;
}

/* Lottery item styles */
.lottery-item {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-height: 150px !important;
    height: 150px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column; 
    position: relative; 
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.lottery-item:hover {
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.1);
    border-color: #1565c0;
}

/* Logo container  */
.lottery-logo {
    position: absolute;
    top: 45px;
    left: 35px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    z-index: 2;
    border: 1px solid #e9ecef;
}

.lottery-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.lottery-logo div {
    font-size: 8px;
    color: #6c757d;
    text-align: center;
    line-height: 1.2;
}

.lottery-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Lottery title row */
.lottery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    width: 100%;
}

.lottery-title {
    color: #1565c0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    transition: color 0.3s ease;
}

.lottery-title:hover {
    color: #0d47a1;
}

.lottery-title a {
    text-decoration: none;
    color: inherit;
}

.lottery-title .time-info {
    font-size: 0.8em;
    margin-left: 15px;
    color: #666;
}

/* Favorite icon container */
.favorite-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: right;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.favorite-container:hover {
    transform: scale(1.05);
}

.favorite-icon {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto;
}

.favorite-icon.favorited {
    display: none;
}

.favorite-text {
    font-size: 7px;
    color: #1565c0;
    text-align: center;
    margin-top: 4px;
}

/* Lottery number */
.lottery-number {
    color: #1565c0;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin: 5px 0;
    line-height: 1.1;
    width: 100%;
}

/* Draw time */
.draw-time {
    color: #6c757d;
    font-size: 11px;
    text-align: center;
    margin: 6px 0;
    line-height: 1.1;
    width: 100%;
}

/* Bottom action bar */
.lottery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    line-height: 1;
    width: 100%;
    flex-wrap: nowrap;
}

/* Status tag */
.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: #f0f8ff;
    color: #1565c0;
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid #e9ecef;
}

/* Button group */
.button-group {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    padding: 6px 20px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    color: white;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-panel {
    background: #1565c0;
}

.btn-panel:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.btn-jodi {
    background: #0d47a1;
}

.btn-jodi:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

/* More button styles */
.more-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    width: fit-content;
    min-width: 120px;
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.more-button.hidden {
    display: none;
}

.more-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.more-button:hover::before {
    left: 100%;
}

.more-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(21, 101, 192, 0.4);
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}

.more-button:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.5);
}

.more-text {
    position: relative;
    z-index: 1;
}

.more-icon {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.more-button:hover .more-icon {
    transform: translateY(3px);
    animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(3px); }
    50% { transform: translateY(6px); }
}

/* Hidden content transition effect */
.hidden-content {
    transition: all 0.3s ease;
    display: none;
}

/* No search results prompt */
.no-results {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    display: none;
}

/* Basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
}

/* Container styles */
.lottery-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 12px;
}

/* Overall container styles */
.lottery-block {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Top tab container */
.tabs-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

/* Top tab styles */
.filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 100px;
    height: 40px;
    width: 100%;  /* Set width to 100% */
    box-sizing: border-box;
    overflow-x: auto;  /* Add horizontal scroll */
    white-space: nowrap;  /* Prevent label wrapping */
    -webkit-overflow-scrolling: touch;  /* Enhance mobile scroll experience */
    scrollbar-width: none;  /* Hide Firefox scrollbar */
    border: 1px solid #e9ecef;
}

.filter-tabs::-webkit-scrollbar {
    display: none;  /* Hide Chrome scrollbar */
}

.filter-tabs .tab {
    cursor: pointer;
    font-size: 11px;
    color: #6c757d;
    padding: 6px 11px;
    border-radius: 100px;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 70px;  /* Set minimum width to prevent excessive compression */
    flex: 0 0 auto;  /* Don't allow tab to shrink, keep fixed size */
    text-align: center;
}

/* Active state */
.filter-tabs .tab.active {
    color: #fff;
    background: #1565c0;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

/* Other state button styles */
.filter-tabs .tab:not(.active) {
    background: #fff;
    border: 1px solid #e9ecef;
}

/* Hover effect */
.filter-tabs .tab:not(.active):hover {
    background: #f0f8ff;
    color: #1565c0;
    border-color: #1565c0;
}

/* Keep horizontal arrangement, but adjust size */
@media screen and (max-width: 768px) {
    .lottery-item {
        height: 140px !important;
        max-height: 140px !important;
        padding: 12px;
    }
    
    .title-logo {
        width: 70px;
        height: 70px;
    }
    
    .home-header-logo {
        font-size: 16px;
        padding: 0;
        gap: 8px;
        margin-left: 20px;
    }
    
    .title-main {
        font-size: 16px;
    }
    
    .title-sub {
        font-size: 10px;
    }
    
    .lottery-logo {
        width: 55px;
        height: 55px;
        top: 45px;
        left: 25px;
    }
    
    .lottery-title {
        font-size: 13px;
    }
    
    .lottery-number {
        font-size: 20px;
        margin: 4px 0;
    }
    
    .draw-time {
        font-size: 10px;
        margin: 4px 0;
    }
    
    .lottery-footer {
        /* Keep horizontal layout */
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .status-tag {
        font-size: 11px;
        padding: 3px 8px;
    }

    .btn {
        padding: 5px 15px;
        font-size: 12px;
    }
    
    .favorite-icon {
        width: 18px;
        height: 18px;
    }
    
    .favorite-text {
        font-size: 6px;
    }
}

@media screen and (max-width: 480px) {
    .title-logo {
        width: 90px;
        height: 90px;
    }
    
    .home-header-logo {
        font-size: 14px;
        padding: 0;
        gap: 6px;
        margin-left: 20px;
    }
    
    .title-main {
        font-size: 14px;
    }
    
    .title-sub {
        font-size: 9px;
    }
    
    .lottery-logo {
        width: 55px;
        height: 55px;
        top: 45px;
        left: 25px;
    }
    
    .lottery-title {
        font-size: 12px;
    }
    
    .lottery-number {
        font-size: 18px;
    }
    
    .draw-time {
        font-size: 9px;
    }
    
    .btn {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .favorite-icon {
        width: 16px;
        height: 16px;
    }
    
    .favorite-text {
        font-size: 5px;
    }
}

/* Countdown styles */
.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px 0;
    color: #1565c0;
    font-size: 17px;
    font-weight: bold;
}

.countdown-label {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    margin-top: 0;
    font-weight: normal;
}

.countdown-container {
    text-align: center;
    display: none; /* Hidden by default, only shown in upcoming status */
}

/* Real countdown styles */
.real-countdown {
    font-size: 10px;
    margin: 5px 0px;
    color: #6c757d;
}

/* Status tag colors */
.status-tag.upcoming {
    background: #f0f8ff;
    color: #1565c0;
}

.status-tag.pending {
    background: #fff8f0;
    color: #e67e22;
}

.status-tag.results {
    background: #f0fff4;
    color: #27ae60;
}

/* News list styles */
.news-list {
    max-width: 425px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: #f8f9fa;
}

.news-item:last-child {
    border-bottom: none;
}

.news-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.news-dot {
    width: 6px;
    height: 6px;
    background-color: #1565c0;
    border-radius: 50%;
    margin-right: 10px;
    margin-top: 6px;
    flex-shrink: 0;
}

.news-content-wrapper {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.news-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.news-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #1565c0;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #6c757d;
}

.news-author-time {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.author-icon {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.news-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.time-icon {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.news-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 12px;
    background: rgba(21, 101, 192, 0.05);
    font-size: 11px;
    color: #6c757d;
    flex-shrink: 0;
}

.like-icon {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

/* Like and comment styles */
.interaction-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6c757d;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #1565c0;
}

.stat-item:hover svg {
    transform: scale(1.1);
}

.stat-item.liked {
    color: #1565c0;
}

.stat-item.liked svg path {
    fill: #1565c0;
}

.stat-item svg {
    transition: transform 0.3s ease;
}

/* News title link styles */
.news-title a, .news-subtitle a {
    text-decoration: none;
    color: inherit;
}

.news-title a:hover {
    color: #1565c0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#floatingPopupButton {
    animation: pulse 2s infinite;
}

#floatingPopupButton:hover {
    transform: scale(1.1) !important;
}

.popup-content {
    max-height: 80vh;
    overflow-y: auto;
}

/* Series list container styles */
.series-list-container {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: none;
    font-size: 14px;
    color: #6c757d;
    background-color: #fff;
    overflow-y: auto;
    line-height: 1.6;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
}

.series-item {
    display: inline-block;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.series-item:not(:last-child)::after {
    content: '|';
    margin-left: 6px;
    color: #ccc;
}

.series-item:hover {
    background: rgba(255, 0, 162, 0.1);
    color: #ff00a2;
}

.series-item.highlighted {
    background: rgba(255, 0, 162, 0.1);
    color: #ff00a2;
}

/* Lottery footer with countdown */
.lottery-footer.with-countdown {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.lottery-footer.with-countdown .status-tag {
    grid-column: 1;
    white-space: nowrap;
}

.lottery-footer.with-countdown .countdown-container {
    grid-column: 2;
    display: block;
    text-align: center;
}

.lottery-footer.with-countdown .button-group {
    grid-column: 3;
    white-space: nowrap;
}

/* Countdown styling */
.countdown {
    display: inline-block;
    color: #ff6600;
    font-size: 17px;
    font-weight: bold;
}

.countdown-container {
    text-align: center;
    display: none; /* Hidden by default */
}

/* Ensure responsive behavior */
@media screen and (max-width: 400px) {
    .lottery-footer.with-countdown {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .lottery-footer.with-countdown .status-tag {
        grid-column: 1;
        grid-row: 1;
    }
    
    .lottery-footer.with-countdown .countdown-container {
        grid-column: 1 / span 2;
        grid-row: 2;
    }
    
    .lottery-footer.with-countdown .button-group {
        grid-column: 2;
        grid-row: 1;
    }
}

/* News module styles */
.news-container {
    margin: 0 0 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    text-align: left;
}

.news-tabs {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.news-tab {
    padding: 10px 0;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
}

.news-tab.active {
    font-weight: bold;
    color: #ff00a2;
}

.news-tab.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background-color: #ff00a2;
}

.news-content {
    padding: 10px 15px;
    text-align: left;
}

.news-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.news-panel {
    display: none;
}

.news-panel.active {
    display: block;
}

/* Modal dialog styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 15px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 500px; 
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

h2 {
    font-size: 20px; /* Adjust title font size */
    margin-bottom: 10px;
}

h3 {
    font-size: 16px; /* Adjust subtitle font size */
    margin: 10px 0 5px 0;
}

p {
    font-size: 12px; /* Update paragraph font size */
    line-height: 1.3; /* Update line height */
    margin-bottom: 10px; /* Update bottom margin */
}

.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Alphabet navigation styles */
.alphabet-nav {
    opacity: 0.5;
    position: fixed;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 10px 5px;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.1);
    z-index: 100;
    border: 1px solid #e9ecef;
}

.alphabet-nav a {
    display: block;
    text-align: center;
    color: #000000;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.alphabet-nav a:hover,
.alphabet-nav a.active {
    color: #1565c0;
    font-weight: bold;
    background-color: #f0f8ff;
}

/* Highlight for matching items */
.lottery-item.highlight {
    box-shadow: 0 0 15px rgba(21, 101, 192, 0.3);
    border-color: #1565c0;
}

/* CSS styles for refresh button */
.refresh-button {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(21, 101, 192, 0.1);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.2);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
    margin-right: 35px;
}

.refresh-button:hover {
    background-color: #1565c0;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.3);
}

.refresh-button:hover img {
    filter: brightness(0) invert(1);
}

.refresh-button:active {
    transform: scale(0.95);
}

.refresh-button img {
    max-width: 100%;
    max-height: 100%;
    transition: filter 0.3s ease;
}

/* Rotation animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotating img {
    animation: rotate 1s linear infinite;
}

/* JavaScript Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.popup-overlay.hidden {
    opacity: 0;
}

.welcome-popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    max-width: 85%;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.5s ease;
    transform-origin: bottom left;
}

.expand-popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    max-width: 85%;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    transition: transform 0.4s ease;
}

/* Popup styles */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

.popup-title {
    color: #ff0090;
    margin-top: 0;
    font-size: 22px;
    text-align: center;
}

.popup-description {
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.popup-info {
    margin-bottom: 15px;
    text-align: center;
}

.popup-info p {
    margin: 5px 0;
    font-size: 14px;
}

.popup-button {
    background-color: #ff0090;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    width: 80%;
    margin: 0 auto;
    display: block;
}

/* Floating button styles */
.floating-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff0090;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    font-size: 10px;
    animation: pulse 2s infinite;
}

.floating-button.minimized {
    transform: scale(0);
    transition: transform 0.3s ease;
}

.floating-button-text {
    font-weight: bold;
    font-size: 9px;
    text-align: center;
}

/* Facebook pixel noscript */
.fb-pixel-noscript {
    display: none;
}

/* Hidden utility class */
.hidden {
    display: none;
}

/* Game image styles */
.game-image {
    display: block;
    max-width: 100%;
    margin: 0 auto 15px auto;
}

/* Video carousel styles */
/* Video carousel container */
.video-carousel-container {
    position: relative;
    width: 100%;
}

/* Video carousel wrapper */
.video-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Individual video item */
.video-item {
    display: none;
    width: 100%;
    transition: opacity 0.3s ease-in-out;
}

.video-item.active {
    display: block;
}

/* Video content wrapper */
.video-content {
    display: flex;
    flex-direction: column; 
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Video thumbnail container */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
}

/* Video poster image */
.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Video placeholder for videos without poster */
.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.video-icon {
    width: 48px;
    height: 48px;
    opacity: 0.8;
}

/* Video link styling */
.video-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.video-link:hover {
    text-decoration: none;
    color: inherit;
}

.video-link:hover .video-poster {
    transform: scale(1.05);
}

.video-link:hover .video-content {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.video-link:hover .video-title {
    color: #007bff;
}

/* Video type indicator */
.video-type-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.play-icon-overlay {
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.play-icon {
    width: 20px;
    height: 20px;
    color: white;
    margin-left: 2px; /* Slight offset for visual balance */
}

/* Hover effects for video type indicator */
.video-link:hover .play-icon-overlay {
    background: rgba(0, 123, 255, 0.9);
    border-color: white;
    transform: scale(1.1);
}

/* Pulse animation for video indicator */
.play-icon-overlay::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: videoPulse 2s infinite;
}

@keyframes videoPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Video info section */
.video-info {
    padding: 16px;
}

/* Video title */
.video-title {
    margin-bottom: 8px;
}

.video-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-title a:hover {
    color: #007bff;
}

/* Video subtitle */
.video-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video meta information */
.video-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Carousel navigation */
.carousel-navigation {
    position: absolute;
    top: 70px;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    z-index: 5;
    pointer-events: none;
}

/* Navigation buttons */
.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    margin: 0;
}

.carousel-btn:first-child {
    margin-left: 10px;
}

.carousel-btn:last-child {
    margin-right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 5;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #fff;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* No videos message */
.no-videos-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-content-icon {
    margin-bottom: 16px;
}

.no-content-icon svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.no-videos-message p {
    margin: 0;
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .video-thumbnail {
        height: 160px;
    }
    
    .video-info {
        padding: 12px;
    }
    
    .video-title a {
        font-size: 15px;
    }
    
    .video-meta {
        font-size: 12px;
        gap: 12px;
    }
    
    .carousel-navigation {
        position: absolute;
        padding: 0 5px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        margin: 0 5px;
    }
    
    .carousel-btn:first-child {
        margin-left: 5px;
    }
    
    .carousel-btn:last-child {
        margin-right: 5px;
    }
    
    .carousel-indicators {
        bottom: -60px;
    }
}

@media (max-width: 480px) {
    .video-thumbnail {
        height: 140px;
    }
    
    .video-meta {
        gap: 8px;
    }
    
    .carousel-navigation {
        padding: 0 3px;
    }
    
    .carousel-btn {
        width: 28px;
        height: 28px;
        margin: 0 3px;
    }
    
    .carousel-btn:first-child {
        margin-left: 3px;
    }
    
    .carousel-btn:last-child {
        margin-right: 3px;
    }
    
    .carousel-indicators {
        bottom: -50px;
        gap: 6px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
}

/* Updated news item styles with thumbnails */
.news-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* News thumbnail styles */
.news-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.news-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-cover {
    transform: scale(1.05);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}

.news-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

/* News content area */
.news-content-area {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.news-title {
    margin-bottom: 8px;
}

.news-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: #007bff;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.news-author-time {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.news-author,
.news-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-author svg,
.news-time svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.news-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #e91e63;
}

.news-likes svg {
    width: 12px;
    height: 12px;
}

/* Responsive adjustments for news module */
@media (max-width: 480px) {
    .news-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .news-thumbnail {
        width: 70px;
        height: 70px;
        margin-right: 10px;
    }
    
    .news-title a {
        font-size: 13px;
    }
    
    .news-meta {
        font-size: 11px;
    }
    
    .news-author-time {
        gap: 8px;
    }
}

/* Updated news item styles with thumbnails - DEBUGGING */
.news-container .news-content .news-panel .news-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 12px;
    margin-bottom: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}

.news-container .news-content .news-panel .news-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* News thumbnail styles - DEBUGGING */
.news-container .news-content .news-panel .news-item .news-thumbnail {
    flex-shrink: 0 !important;
    width: 80px !important;
    height: 80px !important;
    margin-right: 12px !important;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: block !important;
    float: none !important;
}

.news-container .news-content .news-panel .news-item .news-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block !important;
}

.news-container .news-content .news-panel .news-item:hover .news-cover {
    transform: scale(1.05);
}

.news-container .news-content .news-panel .news-item .news-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}

.news-container .news-content .news-panel .news-item .news-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

/* News content area - DEBUGGING */
.news-container .news-content .news-panel .news-item .news-content-area {
    flex: 1 !important;
    min-width: 0 !important;
    display: block !important;
    float: none !important;
}

.news-container .news-content .news-panel .news-item .news-title {
    margin-bottom: 8px !important;
    width: 100% !important;
    display: block !important;
}

.news-container .news-content .news-panel .news-item .news-title a {
    color: #333 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
    width: 100% !important;
}

.news-container .news-content .news-panel .news-item .news-title a:hover {
    color: #007bff !important;
}

.news-container .news-content .news-panel .news-item .news-meta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 6px !important;
    width: 100% !important;
}

.lottery-title a {
    color: #2196F3;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid #2196F3;
}

.lottery-title a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #2196F3;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lottery-title a:hover::after {
    transform: scaleX(1);
}

.lottery-title a:hover {
    color: #2196F3;
}