@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('myinfo.css');
@import url('myinfo-mission.css');
@import url('merchant.css');
@import url('feedback.css');
@import url('profile.css');
@import url('streaming-room.css');
@import url('search-result.css');
@import url('blog.css');
@import url('header.css');
@import url('footer.css');
@import url('icons-set.css');
@import url('categories.css');
@import url('topup.css');
@import url('video-player.css');
@import url('gift-keyframes.css');

@import url('streamer-home.css');
@import url('streamer-dashboard.css');
@import url('streamer-schedule.css');
@import url('streamer-mission.css');
@import url('streamer-wallet.css');
@import url('streamer-community.css');
@import url('streamer-live-history.css');
@import url('streamer-chat-setting.css');
@import url('streamer-statistic.css');
@import url('streamer-message.css');
@import url('streamer-start-stream.css');

@import url('custom-icons.css');
@import url('default.css');
@import url('gradients.css');
@import url('buttons.css');
@import url('custom-title-banner.css');

/* =====================
   Theme Variables
====================== */
:root {
    /* Light theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f4;
    --bg-tertiary: #e8e8e8;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --card-bg: #ffffff;
    --card-bg-rgb: 255, 255, 255;
    --header-bg: var(--primary-rgb);
    --footer-bg: rgba(246, 246, 246, 0.6);
    --footer-text: #1C274C;
    --sidebar-bg: #ffffff;
    --dropdown-bg: #ffffff;
    --hover-bg: #f0f0f0;

    --primary: #724AFF;
    --primary-rgb: 114, 74, 255;
    --primary-dark: #6c36d8;
    --primary-rgb-dark: 108, 54, 216;
    --secondary: #4ADDFF;
    --secondary-rgb: 74, 221, 255;
    --secondary-dark: #4ADDFF;
    --secondary-rgb-dark: 74, 221, 255;
    --accent: #4caf50;
    --accent-dark: #388e3c;
    --error: #f44336;
    --error-dark: #d32f2f;
    --warning: #ff9800;
    --warning-dark: #e65100;
    --info: #2979ff;
    --info-dark: #1565c0;
    --bg: #f4f4f4;
    --bg-dark: #121212;
    --card: #ffffff;
    --card-dark: #1e1e1e;
    --text-main: #333333;
    --text-secondary: #666666;
    --text-light: #ffffff;
    --border: #e0e0e0;
    --border-dark: #404040;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --main-bg-color: #fff;
    --logo-img: url('../img/logo-light.svg');
    --main-bg: url('../img/main-bg-light.png');
    --main-bg-overlay: #fff4;
    --footer-logo-img: url('../img/footer-logo-light.svg');
    --footer-bg: url('../img/footer-bg-light.png');
    --footer-bg-overlay: #F5F5F8BF;
}

[data-theme="dark"] {
    /* Dark theme */
    /* --bg-primary: rgba(185, 0, 255, 1); */
    --logo-img: url('../img/logo-light.svg');
    --main-bg-color: rgba(185, 0, 255, 1);
    --header-bg: var(--primary-rgb);
    --footer-text: #fff;
    /* --bg-primary: #0d0e12;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border-color: #2e2e2e;
    --overlay-bg: rgba(0, 0, 0, 0.85);
    --card-bg: #1e1e1e;
    --header-bg: var(--primary);
    --sidebar-bg: #1a1a1a;
    --dropdown-bg: #2d2d2d;
    --hover-bg: #333333;
    --accent-color: #ff79b0;*/
    --text-main: #ffffff;
    --footer-bg: rgba(246, 246, 246, .25);
    --main-bg: url('../img/main-bg-dark.png');
    --main-bg-overlay: #fff4;
    --footer-logo-img: url('../img/logo-dark.svg');
    --footer-bg: url('../img/footer-bg-dark.png');
    --footer-bg-overlay: #00000040;
}

/* =====================
   Base Styles
====================== */
body {
    /* background-color: var(--bg-primary); */

    color: var(--text-primary);
    font-family: "Nunito", "Noto Sans SC", 'Segoe UI', 'Arial', sans-serif;
    margin: 0;
}

.container-white-space {
    min-height: calc(100vh - 441px);
}

/* =====================
   Scrollbar Styles
====================== */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}



/* =====================
   Global Styles
====================== */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

/* a:hover {
    color: var(--primary);
} */

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*reset icons set line-height*/
i.fi {
    line-height: 0;
}

.body-content {

    transition: padding-left 0.3s ease;
    will-change: padding-left;
    background: var(--main-bg-color) var(--main-bg) no-repeat top center / 100%;
    /* padding-bottom:40px; */
    background-attachment: fixed;
}

.body-content:before {
    content: "";
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.col {
    padding: 0 12px;
    flex: 1 1 0;
}

section {
    padding: 0 90px 0 40px;
}

/*Logo*/
.header-logo-link {
    text-indent: -9999px;
    background: var(--logo-img) no-repeat center center;
    width: 120px;
    height: 50px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 250px;
    height: 100%;
    /* background-color: var(--primary); */
    /* background: linear-gradient(220deg, var(--primary) 20%, var(--secondary) 100%); */
    background: rgba(var(--header-bg), 0.85);
    transition: width 0.3s cubic-bezier(.4, 0, .2, 1), transform 0.3s cubic-bezier(.4, 0, .2, 1);
    z-index: 1051;
}

.sidebar:before {
    content: '';
    position: absolute;
    width: 3px;
    height: calc(20% + 6px);
    top: 0;
    right: -3px;
    bottom: 0;
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary),
        0 0 2px var(--secondary),
        0 0 2px var(--secondary)
}

.sidebar:after {
    content: '';
    position: absolute;
    width: 3px;
    height: calc(80% - 143px);
    bottom: 0;
    right: -3px;
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary),
        0 0 2px var(--secondary),
        0 0 2px var(--secondary)
}

[data-theme="dark"] {
    .sidebar {
        background: #00000060;
        backdrop-filter: blur(6px);
    }
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 6px 19px;
}

.sidebar.collapsed .sidebar-header {
    padding: 6px 11px;
}

.sidebar-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.main-header-logo {
    display: none;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    margin: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* When sidebar is collapsed, hide sidebar logo and show header logo */
.sidebar.collapsed .sidebar-logo-link {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.sidebar.collapsed~.body-content .main-header-logo {
    display: flex;
}

/* When sidebar is expanded, show sidebar logo and hide header logo */
.sidebar:not(.collapsed) .sidebar-logo-link {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.sidebar:not(.collapsed)~.body-content .main-header-logo {
    display: none;
}

/* Mobile responsive - always show header logo on mobile */
@media (max-width: 768px) {
    .sidebar-logo-link {
        display: none !important;
    }

    .main-header-logo {
        display: flex !important;
    }

    .sidebar:before,
    .sidebar:after {
        background: none;
        box-shadow: none;
    }
}

/* Ensure smooth transitions */
.sidebar-logo-link h1,
.main-header-logo h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Alternative approach with transform for smoother animation */
.sidebar-logo-link {
    transform: translateX(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-logo-link {
    transform: translateX(-20px);
    opacity: 0;
    visibility: hidden;
}

/* Sidebar Streamer Lists Styling */
.sidebar-section {
    padding: 15px 0;
    border-top: 1px solid #90A4BB40;
}



.sidebar-streamer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-streamer-item {
    display: flex;
    align-items: center;
    padding: 5px 20px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-streamer-item:hover {
    background: #f5f6fa;
}

.sidebar-streamer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid #e0e0ff;
}

.sidebar-streamer-info {
    flex: 1;
    min-width: 0;
}

.sidebar-streamer-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    display: block;
}

.sidebar-streamer-item:hover .sidebar-streamer-name {
    color: var(--primary);
}

.sidebar-streamer-avatar-container {
    position: relative;
}

.sidebar-streamer-live-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1bcc2c;
    display: block;
    box-shadow: 0 0 4px rgba(27, 204, 44, 0.6);
}

/* Custom scrollbar for streamer lists */
.sidebar-streamer-list::-webkit-scrollbar {
    width: 4px;
}

.sidebar-streamer-list::-webkit-scrollbar-track {
    background: #f5f5ff;
}

.sidebar-streamer-list::-webkit-scrollbar-thumb {
    background: #c1b5ff;
    border-radius: 10px;
}

.sidebar-streamer-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}



/* Animation for live dot */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(27, 204, 44, 0.7);
    }

    70% {
        box-shadow: 0 0 0 4px rgba(27, 204, 44, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(27, 204, 44, 0);
    }
}

.sidebar-streamer-live-dot {
    animation: pulse 1.5s infinite;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 5px 24px;
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all ease 0.2s;
}

.sidebar-menu-item.mobile-only {
    display: none;
}

.sidebar-menu-item.active,
.sidebar-menu-item:hover {
    color: var(--secondary);
    position: relative;
}

.sidebar-menu-item.active .sidebar-menu-icon,
.sidebar-menu-item:hover .sidebar-menu-icon {
    background: #fff;
    border-radius: 50%;
}

.sidebar-menu-item.active:before,
.sidebar-menu-item:hover:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5%;
    width: 23%;
    height: 90%;
    background: var(--secondary);
    border-radius: 0 25px 25px 0;
    z-index: -1;
}

.sidebar.collapsed .sidebar-menu-item.active:before,
.sidebar.collapsed .sidebar-menu-item:hover:before {
    width: 80%;
}


.sidebar-menu-icon {
    min-width: 24px;
    padding: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-menu-title {
    transition: opacity 0.2s, width 0.2s, margin 0.2s;
    white-space: nowrap;
    font-size: 16px;
}

.sidebar.collapsed .sidebar-menu-title {
    opacity: 0;
    width: 0;
    margin: 0;
    pointer-events: none;
}


/* Sidebar Sections */
.sidebar-section-title {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 24px 4px 24px;
    letter-spacing: 1px;
}

.sidebar.collapsed .sidebar-section-title {
    display: none;
}



.sidebar.collapsed .sidebar-section {
    padding-left: 0;
    padding-right: 0;
}

.sidebar.collapsed .sidebar-section ul,
.sidebar.collapsed .sidebar-section li {
    font-size: 0;
}

.sidebar.collapsed .sidebar-section img {
    width: 28px;
    height: 28px;
}

/* Sidebar Toggle */
.sidebar-toggle {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 22px;
    line-height: 0;
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px 0 0;
}

.sidebar-toggle.mobile {
    display: none;
}

@media (max-width: 768px) {

    .sidebar-toggle.mobile {
        display: block;
        margin: 0;
    }
}

/* Sidebar collapse button styles */
.sidebar-collapse-btn {
    position: absolute;
    right: -28px;
    top: 20%;
    width: 28px;
    height: 150px;
    background: url("../img/sidebar-btn-bg.png") no-repeat center center;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    /* clip-path: polygon(0 0, 80% 20%, 80% 80%, 0 100%, 0 100%, 0% 60%, 0 0); */
}


.sidebar-collapse-btn:hover {
    /* background: #7c5ae5; */
}

.sidebar-collapse-btn:after {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 28px;
    height: 138px;

    background: rgba(var(--header-bg), 0.85);
    backdrop-filter: blur(6px);
    clip-path: polygon(0 0, 80% 16%, 80% 84%, 0 100%, 0 100%, 0% 60%, 0 0);
    z-index: -1;
}

[data-theme="dark"] .sidebar-collapse-btn:after {
    background: #0004;
}

.sidebar-collapse-icon {
    font-size: 16px;
    transition: transform 0.3s;
    padding: 0 6px 0 0;
}

.sidebar.collapsed .sidebar-collapse-icon {
    transform: rotate(180deg);
    padding: 0 0 0 6px;
}

.sidebar.collapsed {
    width: 64px;
    min-width: 64px;
}

.sidebar.collapsed .sidebar-menu-title,
.sidebar.collapsed .sidebar-section-title,
.sidebar.collapsed .sidebar-section {
    display: none;
}

.sidebar.collapsed .sidebar-menu-item {
    padding: 5px 0;
    justify-content: center;
}

.sidebar.collapsed .sidebar-menu-icon {
    margin-right: 0;
}

.sidebar-recommendations {
    border-radius: 8px;

    margin-bottom: 20px;
}

.sidebar.collapsed .sidebar-recommendations {
    display: none;
}

.sidebar-scrollable {
    height: calc(100% - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox, Safari 18.2+, Chromium 121+ */

}

.recommendation-container {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    gap: 12px;
}

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

.recommendation-item:hover {
    transform: translateY(-3px);
}

.recommendation-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recommendation-item img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.recommendation-label {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
    text-align: center;
}


/* =====================
   Dark Mode Toggle
====================== */
/* Remove dark-mode-toggle from header styles if needed */

/* Add styles for dark mode toggle inside dropdown */
.dark-mode-toggle {
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.dark-mode-toggle:hover {
    background: var(--hover-bg);
    color: var(--primary);
}


/* =====================
   Layout & Content
====================== */
.content {
    transition: margin-left 0.3s cubic-bezier(.4, 0, .2, 1);
    margin-left: 250px;
}

.sidebar.collapsed~.content {
    margin-left: 64px;
}

/* =====================
   Stream Cards & Grid
====================== */
.stream-card {
    width: 25%;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.stream-preview {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #2d206e;
    overflow: hidden;
}

.preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

/* Add hover effect */
.stream-card:hover .preview-img {
    transform: scale(1.05);
}

.badge-live {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff3b30;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 8px;
    letter-spacing: 1px;
    z-index: 2;
    /* Add animation */
    animation: pulseBadge 2s infinite ease-in-out;
    transform-origin: center;
    will-change: transform, box-shadow;
}

.badge-live::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    border-radius: 8px;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 3px rgba(255, 59, 48, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

[data-theme="dark"] .badge-live {
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.3);
}



.badge-viewers {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.icon-eye {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 3c-4 0-7 4.5-7 5s3 5 7 5 7-4.5 7-5-3-5-7-5zm0 8c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3zm0-5a2 2 0 100 4 2 2 0 000-4z"/></svg>') no-repeat center center;
    background-size: 16px 16px;
    margin-right: 4px;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    cursor: pointer;
    transition: all ease 0.2s;
}

.stream-card:hover .play-btn-overlay {
    opacity: 1;
}

.play-btn-overlay .play-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(2);
    transition: all ease 0.2s;
}

.stream-card:hover .play-btn-overlay .play-btn {
    transform: scale(1);
}

.stream-info {
    padding: 8px;
}

.streamer-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    border: 1px solid #e6e6e6;
}

.stream-title {
    font-size: 14px;
    font-weight: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.button-row {
    display: flex;
    gap: 8px;
}

.btn-tag {
    background: #ACAFCA1C;
    color: #656565;
    border: none;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-tag:hover {
    background: #333;
}

.stream-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.stream-menu-dropdown {
    position: relative;
    display: inline-block;
}

.stream-menu-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    transition: background 0.2s;
    outline: none;
}

.stream-menu-btn:focus,
.stream-menu-btn:hover {
    background: var(--hover-bg);
    color: var(--primary);
}

.stream-menu-list {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    min-width: 140px;
    background: var(--dropdown-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.12);
    z-index: 20;
    list-style: none;
    padding: 8px 0;
}

.stream-menu-dropdown.open .stream-menu-list {
    display: block;
}

.stream-menu-list li {
    padding: 8px 20px;
}

.stream-menu-list button {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

.stream-menu-list button:hover {
    color: var(--error);
}

/* Streamer Overlay */
.streamer-overlay {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 18px;
    padding: 3px 10px 3px 3px;
    z-index: 2;
}

.streamer-overlay .streamer-avatar-container {
    display: flex;
    align-items: center;
}

.streamer-overlay .avatar {
    width: 28px;
    height: 28px;
    margin-right: 6px;
    border: 1px solid #fff;
}

.streamer-overlay .streamer-name {
    color: #656565;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.streamer-overlay .streamer-hot-points {
    font-size: 13px;
    display: flex;
    align-items: normal;
}

.icon-hot-points {
    width: 16px;
    height: 16px;
    background: url(../img/icon-fire.svg);
    background-size: 16px 16px;
    margin-right: 4px;
}



/* =====================
   Swiper Section & Title Box
====================== */
.swiper-section {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
}

.swiper-title-box {
    flex: 0 0 220px;
    /* background-image:
        radial-gradient(at 80% 0%, rgb(205, 245, 252) 0px, transparent 20%),
        radial-gradient(at 0% 50%, rgb(121, 121, 121) 0px, transparent 40%),
        radial-gradient(at 80% 50%, rgb(255, 245, 248) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(226, 200, 185, 0.596) 0px, transparent 40%),
        radial-gradient(at 80% 100%, rgb(162, 159, 236) 0px, transparent 30%),
        radial-gradient(at 0% 0%, rgb(238, 206, 215) 0px, transparent 20%);
    background-size: 400% 400%;
    animation: gradient 20s ease infinite; */
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 180px;
    max-width: 240px;
    position: relative;
    margin-right: 0;
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;

}

.swiper-title-box.esport {
    /* background: linear-gradient(135deg, #fc0000 0%, #ff4757 50%, #ff6b7a 100%); */
    background: url('../img/cat1-bg.png')no-repeat 0 0;
    background-size: 150% 150%;
    animation: gradient 8s ease infinite;
}

.swiper-title-box.sport {
    /* background: linear-gradient(135deg, #1f00ac 0%, #4834d4 50%, #686de0 100%); */
    background: url('../img/cat4-bg.png')no-repeat 0 0;
    background-size: 150% 150%;
    animation: gradient 10s ease infinite;
}

.swiper-title-box.gaming {
    /* background: linear-gradient(135deg, #01943a 0%, #26d67c 50%, #55efc4 100%); */
    background: url('../img/cat2-bg.png')no-repeat 0 0;
    background-size: 150% 150%;
    animation: gradient 12s ease infinite;
}

.swiper-title-box.entertainment {
    /* background: linear-gradient(135deg, #c23616 0%, #e55039 50%, #ff6348 100%); */
    background: url('../img/cat3-bg.png')no-repeat 0 0;
    background-size: 150% 150%;
    animation: gradient 9s ease infinite;
}

.swiper-title-box.starshow {
    /* background: linear-gradient(135deg, #9c059c 0%, #d63031 50%, #fd79a8 100%); */
    background: url('../img/cat5-bg.png')no-repeat 0 0;
    background-size: 150% 150%;
    animation: gradient 11s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.swiper-title-main {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.swiper-title-sub {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.swiper-title-icon {
    position: absolute;
    width: 165px;
    height: 165px;
    bottom: 20px;
    right: 20px;
}

.swiper-title-more {
    /* color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    align-self: flex-end;
    transition: text-decoration 0.2s; */
    z-index: 1;
    width: 30px;
    height: 30px;
    background: url('../img/cat-more-arrow.png')no-repeat 0 0/ contain;
    text-indent: -9999px;
    position: absolute;
    right: 10px;
    top: 20px;
}

.swiper-title-more:hover {
    text-decoration: underline;
}

/* Swiper Container & Arrows */
.swiper-container {
    position: relative;
    width: calc(100% - 232px);
    margin: 0;
    flex: 1 1 0;
}

.swiper-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--primary);
    color: #fff;
    border: none;
    width: 35px;
    height: 45px;
    font-size: 15px;
    cursor: pointer;
    display: block;
    transition: background 0.2s;
}

.swiper-arrow-left {
    left: 0;
    border-radius: 0 999px 999px 0;
}

.swiper-arrow-right {
    right: 0;
    border-radius: 999px 0 0 999px;
}

.swiper-arrow.disabled,
.swiper-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Hover effects for swiper title boxes */
.swiper-title-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.15);
    transition: all 0.3s ease;
}

/* .swiper-title-box.esport:hover {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 50%, #fc0000 100%);
}

.swiper-title-box.sport:hover {
    background: linear-gradient(135deg, #4834d4 0%, #3742fa 50%, #1f00ac 100%);
}

.swiper-title-box.gaming:hover {
    background: linear-gradient(135deg, #26d67c 0%, #2ed573 50%, #01943a 100%);
}

.swiper-title-box.entertainment:hover {
    background: linear-gradient(135deg, #e55039 0%, #eb4d4b 50%, #c23616 100%);
}

.swiper-title-box.starshow:hover {
    background: linear-gradient(135deg, #d63031 0%, #e84393 50%, #9c059c 100%);
} */

/* =====================
   News Section
====================== */
.news-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 40px;
    padding-bottom: 40px;
    margin-bottom: 30px;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    background: url('../img/news-bg-2.png') no-repeat center center/cover;
}

.news-main {
    flex: 0 0 50%;
    min-width: 0;
    max-width: calc(50% - 10px);
}

.news-main,
.mySwiper {
    max-height: 250px;
}

.news-main-bg {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    background: #222;
}

.news-main-bg img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    display: block;
}

.news-main-overlay {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .4) 100%);
}

.news-main-bg .news-logo {
    width: 64px;
    height: 64px;
    min-height: inherit;
    object-fit: inherit;
    margin-bottom: 12px;
}

.news-badge {
    background: #ff3b30;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 12px;
    padding: 4px 16px;
    position: absolute;
    top: 16px;
    right: 16px;
    letter-spacing: 1px;
}

.news-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.5);
}

.news-desc {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
}

.news-list {
    flex: 1;
    width: 50%;
    min-width: 320px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    padding: 18px 0 0 0;
}

.news-list ul {
    list-style: none;
    margin: 0;
    padding: 0 18px 0 18px;
    max-height: 188px;
    overflow-y: auto;
}

.news-list li a {
    display: flex;
    align-items: center;
    font-size: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding: 7px 0;
    color: #444;
    gap: 8px;
}

.news-type {
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    padding: 2px 8px;
    margin-right: 6px;
    color: #fff;
}

.news-type.sale {
    background: #ff9800;
}

.news-type.info {
    background: #2979ff;
}

.news-type.update {
    background: #4caf50;
}

.news-type.event {
    background: #e44fff;
}

.news-type.news {
    background: #ff9500;
}

.news-type.announcement {
    background: #ff3b30;
}

.news-type.product {
    background: #5856d6;
}

.news-date {
    margin-left: auto;
    color: #888;
    font-size: 13px;
    min-width: 38px;
    text-align: right;
}

.news-list-footer {
    padding: 8px 18px 12px 0;
    text-align: right;
}

.news-more {
    color: #2979ff;
    font-size: 15px;
    text-decoration: none;
    font-weight: 500;
}

.news-more:hover {
    text-decoration: underline;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
}

.news-card {
    overflow: hidden;
    border-radius: 12px;
    width: calc(25% - 10px);
    background-color: var(--card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.news-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.news-tag.article {
    background-color: #8f5fff;
}

.news-tag.news {
    background-color: #ff9500;
}

.news-tag.update {
    background-color: #34c759;
}

.news-tag.event {
    background-color: #ff3b30;
}

.news-content {
    padding: 15px;
}

.news-grid-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.6;
}


/* =====================
   Main Video Carousel
====================== */
.main-video-carousel {
    display: flex;
    gap: 28px;
    margin: 0;
    /* padding: 40px 90px 40px 40px; */
    align-items: center;
    justify-content: center;


}

.main-video-area {
    flex: 1 1 0;
    position: relative;
    min-width: 0;
    max-width: 1100px;
    aspect-ratio: 16/9;
    background: #222;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(44, 62, 80, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-video-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 60%, rgba(0, 0, 0, 0.7) 100%);
}

.main-video-live {
    background: #ff3b30;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 8px;
    letter-spacing: 1px;
    align-self: flex-start;
    margin-bottom: 8px;
}

.main-video-viewers {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    align-self: flex-start;
    margin-bottom: 12px;
}

.main-video-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.main-video-streamer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-video-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.main-video-streamer-name {
    color: #fff;
}

/* Main Video Thumbnails */
.main-video-thumbnails-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    max-width: 160px;
    position: relative;
}

.main-thumb-arrow {
    color: #724AFF;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 4px 0;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}

.main-thumb-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}



.main-video-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.main-video-thumb {
    width: 175px;
    height: 115px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--card-bg);
    cursor: pointer;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-video-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(143, 95, 255, 0.18);
    transform: scale(1.15);
    z-index: 2;
}

.main-video-thumb {
    transition: transform 0.25s cubic-bezier(.25, .8, .25, 1), box-shadow 0.2s, border-color 0.2s;
}

.main-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}



/* Main Video Thumbnails Wrapper same height as video */
/* .main-video-carousel {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
} */

.main-video-thumbnails-wrapper {
    flex: 0 0 180px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    min-height: 360px;
    max-height: 100%;
}



/* =====================
   Stream List Section
====================== */
.stream-list-section {
    margin: 40px 0;
    position: relative;
}

.stream-list-header {
    display: flex;
    justify-content: flex-start;
    /* Remove space for arrows */
    align-items: center;
    margin-bottom: 1rem;
}

.stream-list-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

/* Remove/hide arrows */
.stream-list-arrows,
.stream-list-arrow {
    display: none !important;
}

.stream-list-swiper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stream-list-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    flex-wrap: wrap;
    position: relative;
    transition: height 0.3s;
    gap: 10px;
}

.stream-list-row .stream-card {
    width: 100%;
    transition: transform 0.4s cubic-bezier(.25, .8, .25, 1);
    will-change: transform;
}

.stream-list-row.search-result-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* =====================
   End Hot Stream Section
====================== */



/* =====================
   Floating Navigation Styles
====================== */
/* Floating Navigation Toggle Functionality */
.floating-wrap {
    position: fixed;
    right: 0;
    top: 20%;
}

.floating-nav {
    transition: transform 0.3s ease;
}

.floating-nav.hidden {
    transform: translateX(100%);
}

.floating-nav-toggle {

    width: 52px;
    height: 48px;
    margin: 0 0 10px;
    background: #0009;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1004;
    transition: background 0.2s, transform 0.3s ease;
    outline: none;
    font-size: 16px;
}

.floating-nav-toggle:hover {
    background: var(--primary);
}

.floating-nav-toggle.nav-hidden {
    transform: translateX(0);
}

.floating-nav-toggle.nav-visible {
    transform: translateX(-2px);
}

.floating-nav-toggle i {
    transition: transform 0.3s ease;
}

.floating-nav-toggle.nav-hidden i {
    transform: rotate(180deg);
}

/* Responsive adjustments for floating nav toggle */
@media (max-width: 768px) {
    .floating-nav-toggle {
        width: 28px;
        height: 40px;
        font-size: 14px;
        display: none;
    }
}

.floating-nav {

    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #0009;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 4px 24px rgba(143, 95, 255, 0.18);
    padding: 20px 0;
    z-index: 1003;
}

.floating-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 12px;
    padding: 3px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-radius: 8px;
    outline: none;
}

.floating-nav-item:hover,
.floating-nav-item:focus {
    background: var(--primary);
    color: #fff;
}

.floating-nav-icon {
    width: 28px;
    height: 28px;
    font-size: 22px;
    margin-bottom: 4px;
    display: block;
}

/* Enhanced Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 70px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-bottom-nav.hidden {
    transform: translateY(100%);
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    min-width: 50px;
    overflow: hidden;
}

.mobile-bottom-nav-item.active {
    background: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

.mobile-bottom-nav-item.active .mobile-bottom-nav-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.mobile-bottom-nav-item.active .mobile-bottom-nav-label {
    color: var(--primary);
    font-weight: 600;
}

.mobile-bottom-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 20px;
}

.mobile-bottom-nav-icon i {
    font-size: 20px;
}

.mobile-bottom-nav-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Navigation Badges and Indicators */
.nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePulse 2s infinite;
}

.nav-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: dotBlink 1.5s infinite;
}

.nav-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--card-bg);
    border-radius: 50%;
    background: #ddd;
}

.nav-status-dot.online {
    background: #2ed573;
    animation: statusPulse 2s infinite;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.mobile-bottom-nav-item.active .nav-avatar {
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Ripple Effect */
.nav-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-search-overlay.active {
    transform: translateY(0);
}

.mobile-search-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
}

.mobile-search-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-search-close:hover {
    background: rgba(var(--text-rgb), 0.1);
}

.mobile-search-input-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search-input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.mobile-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.mobile-search-voice {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mobile-search-voice:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.mobile-search-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.mobile-search-section {
    margin-bottom: 30px;
}

.mobile-search-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.mobile-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-search-tag {
    padding: 8px 16px;
    background: rgba(var(--text-rgb), 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-search-tag.hot::before {
    content: '🔥';
    margin-right: 5px;
}

.mobile-search-tag.trending::before {
    content: '📈';
    margin-right: 5px;
}

.mobile-search-tag.new::before {
    content: '✨';
    margin-right: 5px;
}

.mobile-search-tag:hover,
.mobile-search-tag:active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.mobile-search-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.search-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(var(--text-rgb), 0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-history-item:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

.search-history-item i {
    color: var(--text-secondary);
    font-size: 16px;
}

.search-history-item span {
    flex: 1;
    color: var(--text-color);
    font-size: 14px;
}

.search-history-delete {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    padding: 4px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-history-delete:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.clear-search-history {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-search-history:hover {
    background: rgba(var(--text-rgb), 0.05);
    border-color: var(--text-secondary);
}

/* Mobile Category Overlay */
.mobile-category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-category-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-category-container {
    width: 100%;
    background: var(--card-bg);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-category-overlay.active .mobile-category-container {
    transform: translateY(0);
}

.mobile-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-category-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.mobile-category-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-category-close:hover {
    background: rgba(var(--text-rgb), 0.1);
}

.mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 20px;
}

.mobile-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    background: rgba(var(--card-bg-rgb), 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-category-item:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 24px;
    color: white;
}

.category-icon.games {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-icon.entertainment {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-icon.music {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-icon.sports {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-icon.education {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.category-icon.lifestyle {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.category-name {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

/* Animations */
@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes dotBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(46, 213, 115, 0);
    }
}

/* Hide mobile nav on desktop */
@media (min-width: 769px) {

    .mobile-bottom-nav,
    .mobile-search-overlay,
    .mobile-category-overlay {
        display: none;
    }
}

/* Mobile nav adjustments */
@media (max-width: 480px) {
    .mobile-bottom-nav {
        height: 65px;
    }

    .mobile-bottom-nav-item {
        padding: 6px 8px;
    }

    .mobile-bottom-nav-icon {
        width: 24px;
        height: 24px;
    }

    .mobile-bottom-nav-label {
        font-size: 10px;
    }

    .mobile-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}


/* =====================
   Login Modal Styles
====================== */
.login-modal {
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal-overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.login-modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(44, 62, 80, 0.18);
    padding: 0;
    min-width: 600px;
    max-width: 800px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.login-modal-inner {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 32px 32px 24px 32px;
    gap: 0;
    align-items: stretch;
}

.login-modal-left {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    max-width: 320px;
    padding: 0 24px 0 0;
}

.login-modal-title {
    color: #7c5ae5;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 18px;
}

.login-modal-qr {
    width: 160px;
    height: 160px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #e0e0e0;
}

.login-modal-qr-tip {
    color: #333;
    font-size: 1rem;
    margin-top: 8px;
    text-align: center;
}

.login-modal-divider {
    width: 1px;
    background: #d1c4e9;
    margin: 0 32px;
    min-height: 220px;
    align-self: center;
}

.login-modal-right {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    max-width: 340px;
    padding: 0 0 0 24px;
}

.full-width-modal .login-modal-right {
    
    max-width:100%;
    padding: 0;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-input-group {
    display: flex;
    align-items: center;
    background: #f4f4f4;
    border-radius: 8px;
    padding: 0 16px;
    height: 48px;
    margin-bottom: 0;
    border: 1px solid transparent;
}

.login-input-group.error{
    border: 1px solid #ff6b6b;
}

.login-input-group.error .fi{
    color:#ff6b6b;
}

.login-input-group.success{
    border: 1px solid #4ad966;
}

.login-input-group.success .fi{
    color:#4ad966;
}

.login-input-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
    flex: 1;
    height: 48px;
}

.login-input::placeholder {
    color: #bdbdbd;
}

.login-btn {
    width: 100%;
    height: 48px;
    background: #7c5ae5;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.login-btn:hover {
    background: #5e3fc7;
}

.login-agree {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-agree input[type="checkbox"] {
    accent-color: #7c5ae5;
    margin-right: 4px;
}

.login-agree a {
    color: #7c5ae5;
    text-decoration: underline;
    margin: 0 2px;
}

.login-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.login-modal-close:hover {
    color: #7c5ae5;
}

.login-modal-register {
    position: absolute;
    top: 18px;
    left: 38px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    z-index: 11;
}

.login-modal-register:hover {
    color: #7c5ae5;
    text-decoration: underline;
}






/* Pagination dots for the video thumbnails */
.main-video-pagination {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    gap: 10px;
    z-index: 5;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background-color: var(--primary);
    opacity: 0.6;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.pagination-dot.active {
    opacity: 1;
    transform: scale(1.2);
    height: 32px;
    box-shadow: 0 0 8px rgba(143, 95, 255, 0.5);
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .main-video-pagination {
        flex-direction: row;
        right: auto;
        top: auto;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        gap: 15px;
    }

    .pagination-dot.active {
        width: 22px;
        height: 12px;
    }
}

/* Gifting dropdown styles */
.gifting-dropdown-list {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gifting-dropdown-item {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f6f6f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gifting-dropdown-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.gifting-dropdown-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Position the dropdown relative to its parent */
.gifting-center {
    position: relative;
}

/* Style for the arrow button */
.gifting-arrow-btn {
    background: transparent;
    border: none;
    color: #8f5fff;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.2s ease;
}

.gifting-arrow-btn:hover {
    transform: translateY(-2px);
}

/* Rotate the arrow when dropdown is open */
.gifting-arrow-btn.active span {
    transform: rotate(180deg);
    display: inline-block;
}

/* Dark mode support */
[data-theme="dark"] .gifting-dropdown-list {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .gifting-dropdown-item {
    background: #333333;
}

[data-theme="dark"] .gifting-dropdown-item:hover {
    background: #444444;
}

[data-theme="dark"] .pagination-dot {
    background-color: var(--secondary);
}

[data-theme="dark"] .main-thumb-arrow {
    color: var(--secondary);
}



@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .row {
        margin: 0 -8px;
    }

    .col {
        padding: 0 8px;
    }

    .body-content {
        background-size: cover;
    }



    /** Sidebar styles for smaller screens **/
    .sidebar-section {
        padding: 10px 0;
    }

    .sidebar-streamer-item {
        padding: 6px 15px;
    }

    .swiper-arrow {
        display: none !important;
    }

    .swiper-section {
        display: block;
    }

    .swiper-title-box {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        padding: 12px 10px;
        border-radius: 12px;
        box-shadow: none;
        gap: 8px;
        margin-bottom: 5px;
    }

    .swiper-title-icon {
        margin-right: 0;
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .swiper-title-main {
        font-size: 1.2rem;
        margin-bottom: 4px;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .swiper-title-sub {
        font-size: 1rem;
        margin-bottom: 8px;
        font-weight: 500;
        letter-spacing: 0.5px;
        margin-left: 0;
    }

    .swiper-title-more {
        margin-left: 0;
        font-size: 0.95rem;
        margin-top: auto;
        align-self: flex-end;
    }

    section {
        padding: 0 10px;
    }

    /*News section*/
    .news-section {
        flex-direction: column;
        align-items: stretch;
    }

    .news-main {
        flex: 0 0 100%;
        min-width: 0;
        max-width: 100%;
    }

    .news-list {
        flex: 1;
        width: 100%;
        min-width: 320px;
        max-width: 100%;
    }

    /*main video carousel*/
    .main-video-carousel {
        flex-direction: column;
        align-items: stretch;
        max-height: inherit;
        gap: 10px;
        margin: 10px 0 0 0;
    }

    .main-video-area {
        flex: 1;
        /* width: 100%;
        max-width: 100%;
        aspect-ratio: unset;
        min-width: 0;
        min-height: 180px; */
        /* Ensure visible height on mobile */
    }

    .main-video {
        width: 100%;
        height: auto;
        /* Let video scale naturally */
        min-height: 120px;
        /* Prevent collapse */
        object-fit: cover;
        border-radius: 12px;
        background: #111;
    }

    .main-video-thumbnails-wrapper {
        flex-direction: row;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        height: auto;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
        margin-left: 0;
        min-height: inherit;
        flex: 1;
    }

    .main-video-thumbnails {
        flex-direction: row;
        gap: 8px;
        padding: 0 8px;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .main-video-thumb {
        width: 120px;
        height: 68px;
        margin: 0;
    }

    .main-thumb-arrow {
        margin: 0 4px;
    }

    /*floating nav*/
    .floating-nav {
        display: none;
        right: 0;
        top: auto;
        bottom: 16px;
        transform: none;
        flex-direction: row;
        border-radius: 12px 12px 0 0;
        padding: 8px 0 8px 0;
        gap: 8px;
    }

    .floating-nav-item {
        font-size: 0.85rem;
        padding: 6px 6px;
    }

    .floating-nav-icon {
        width: 22px;
        height: 22px;
        margin-bottom: 2px;
    }

    .stream-list-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        overflow-x: visible;
    }



    .mobile-bottom-nav {
        display: flex;
    }

    .swiper-container {
        width: 100%;
    }

    .stream-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        white-space: normal;
        overflow-x: visible;
    }

    .stream-card {
        width: 100%;
        flex: 1 1 0;
        border-radius: 6px;
    }

    .stream-list-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        overflow-x: visible;
    }

    .streamer-overlay .streamer-hot-points {
        display: none;
    }

    .button-row {
        display: none;
    }

    .login-modal-content {
        min-width: 90vw;
        max-width: 98vw;
        padding: 0;
    }

    .login-modal-inner {
        flex-direction: column;
        padding: 24px 8px 16px 8px;
        gap: 18px;
    }

    .login-modal-divider {
        width: 100%;
        height: 1px;
        min-height: 0;
        margin: 18px 0;
        background: #d1c4e9;
    }

    .login-modal-left,
    .login-modal-right {
        min-width: 0;
        max-width: 100%;
        padding: 0;
    }




    .news-card {
        width: calc(50% - 10px);
    }


}




@media (max-width: 768px) {
    .container {
        padding: 0 8px;
    }

    .row {
        margin: 0 -4px;
    }

    .col {
        padding: 0 4px;
    }



    .sidebar.collapsed .sidebar-section {
        display: none;
    }

    .sidebar-collapse-btn {
        display: none;
        /* Hide on mobile as sidebar behavior is different */
    }

    .sidebar-menu-item.mobile-only {
        display: flex;
    }

    .streamer-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 10px;
    }

    .streamer-info-details {
        width: 100%;
        gap: 4px;
    }

    .streamer-info-actions {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        min-width: 0;
        width: 100%;
        justify-content: flex-end;
    }

    .streamer-title {
        max-width: 180px;
        font-size: 0.95rem;
    }

    /*main carousel*/
    .main-video-thumb {
        width: 120px;
        height: 68px;
    }

    .stream-list-row .stream-card {
        min-width: 100%;
    }

    /* .stream-list-row {
        grid-template-columns: 1fr;
    } */

    .stream-list-section {
        padding: 1rem 0.5rem 1.5rem 0.5rem;
    }

    .news-card {
        width: 100%;
    }




    .login-modal-content {
        min-width: 98vw;
        max-width: 100vw;
        border-radius: 0;
    }

    .login-modal-inner {
        padding: 12px 2px 8px 2px;
    }

    .login-modal-qr {
        width: 120px;
        height: 120px;
    }





    .emoji-popup-list {
        left: 4px;
        bottom: 54px;
        min-width: 180px;
        max-width: 98vw;
        padding: 10px 4px;
    }

    .emoji-popup-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .emoji-popup-item {
        width: 32px;
        height: 32px;
    }

    .streaming-post-thumbnails {
        grid-template-columns: repeat(2, 80px);
        grid-gap: 6px;
    }

    .post-thumb {
        width: 80px;
        height: 80px;
    }

    #postImageModalImg {
        max-width: 98vw;
        max-height: 60vh;
    }
}

@media (max-width: 400px) {
    .history-dropdown-menu {
        width: 98vw;
        min-width: 0;
        max-width: 100vw;
        border-radius: 0 0 12px 12px;
        left: 50% !important;
        top: 120% !important;
        transform: translateX(-50%) !important;
    }

    .history-item {
        padding: 8px 2px;
    }

    .history-thumb {
        width: 38px;
        height: 38px;
    }
}


@media (min-width: 1025px) {
    .stream-grid {
        /* overflow-x: auto;
        overflow-y: visible; */
        white-space: nowrap;
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        /* scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: none; */
        width: 100%;
    }

    /* .stream-card {
        flex: 0 0 320px;
        width: 320px;
    } */


}

.badges {
    display: inline-block;

}

.badges .userbadge {
    height: 18px;
    vertical-align: middle;
    display: inline-block;
}

.badges .fanbadge {
    height: 28px;
    vertical-align: middle;
    display: inline-block;
}

.badges .streamerbadge {
    height: 28px;
    vertical-align: middle;
    display: inline-block;
}

/* Gift Custom Amount Input */
.gift-custom-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gift-custom-input {
    flex: 1;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    text-align: center;
    min-width: 80px;
}

.gift-custom-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.gift-custom-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.gift-custom-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary), #5a3bcc);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.gift-custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 74, 255, 0.4);
}

.gift-custom-btn:active {
    transform: translateY(0);
}

/* Custom input responsive design */
@media (max-width: 768px) {
    .gift-custom-amount {
        flex-direction: column;
        gap: 6px;
    }

    .gift-custom-input {
        min-width: 100%;
    }

    .gift-custom-btn {
        width: 100%;
        padding: 8px 16px;
    }
}

/* Mobile History Overlay */
.mobile-history-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-history-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-history-container {
    width: 100%;
    background: var(--card-bg);
    border-radius: 20px 20px 0 0;
    padding: 0;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-history-overlay.active .mobile-history-container {
    transform: translateY(0);
}

.mobile-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-history-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-history-close:hover {
    background: rgba(var(--text-rgb), 0.1);
}

.mobile-history-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.mobile-history-clear {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-history-clear:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

.mobile-history-tabs {
    display: flex;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 9;
}

.mobile-history-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-history-tab.active {
    color: var(--primary);
    font-weight: 600;
}

.mobile-history-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.mobile-history-content {
    padding: 0;
    max-height: calc(80vh - 140px);
    overflow-y: auto;
}

.mobile-history-tab-content {
    display: none;
    padding: 15px;
}

.mobile-history-tab-content.active {
    display: block;
}

.mobile-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(var(--text-rgb), 0.02);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.mobile-history-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    transform: translateX(5px);
}

.mobile-history-thumb {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
    flex-shrink: 0;
}

.mobile-history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-history-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff3b30;
    color: white;
    font-size: 8px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.mobile-history-info {
    flex: 1;
    min-width: 0;
}

.mobile-history-title-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-history-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.mobile-history-streamer {
    font-weight: 500;
    color: var(--text-color);
}

.mobile-history-time {
    color: var(--text-secondary);
}

.mobile-history-dot {
    width: 3px;
    height: 3px;
    background: var(--text-secondary);
    border-radius: 50%;
}

.mobile-history-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.mobile-history-empty i {
    font-size: 48px;
    color: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 16px;
    display: block;
}

.mobile-history-empty-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.mobile-history-empty-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.mobile-history-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: var(--card-bg);
    border-radius: 0 0 20px 20px;
}

.mobile-history-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-history-view-all:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

/* Hide mobile history overlay on desktop */
@media (min-width: 769px) {
    .mobile-history-overlay {
        display: none;
    }
}


/* ===========================
   Inventory Button Styles
============================ */
.inventory-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.inventory-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}

.btn-button i {
    font-size: 16px;
    color: #FFD700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Feedback Modal File Upload Styles
============================ */
.form-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fafafa;
}

.form-upload:hover {
    border-color: #724AFF;
    background: #f0f0ff;
}

.form-upload.drag-over {
    border-color: #724AFF;
    background: #f0f0ff;
    transform: scale(1.02);
}

.form-upload.has-files {
    border-color: #4CAF50;
    background: #f0fff0;
}

.form-upload input[type="file"] {
    display: none;
}

.upload-icon {
    font-size: 32px;
    color: #999;
    margin-bottom: 8px;
}

.upload-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.upload-limit {
    font-size: 12px;
    color: #999;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.upload-file-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.upload-file-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.upload-file-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-file-remove:hover {
    background: rgba(255, 0, 0, 1);
}

.upload-file-name {
    padding: 4px 6px;
    font-size: 10px;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feedback Modal Specific Styles */
.feedback-submit {
    background: linear-gradient(135deg, #724AFF, #5a3acc);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.feedback-submit:hover {
    background: linear-gradient(135deg, #5a3acc, #4829a3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(114, 74, 255, 0.3);
}

.feedback-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===========================
   Registration Modal Styles
============================ */
/* Registration Error Styling within Login Modal Structure */
.registration-error {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 4px;
    margin-bottom: 8px;
    min-height: 16px;
}

.registration-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.registration-btn-loading i {
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Overlay Button Styles */
.enter-live-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 34, 97, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
}

.enter-live-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    color: #fff;
    /* box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6); */
}

.enter-live-btn i {
    font-size: 14px;
}

/* Show button on hover of main video area */
.main-video-area:hover .enter-live-btn,
.main-video-thumbnails-wrapper:hover .enter-live-btn {
    opacity: 1;
    visibility: visible;
}

/* Responsive styles for thumbnails wrapper */
.main-video-thumbnails-wrapper .enter-live-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    gap: 6px;
}

.main-video-thumbnails-wrapper .enter-live-btn i {
    font-size: 12px;
}

/* ===========================
   Stream Loading Animation
============================ */
.stream-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    margin-top: 20px;
    width: 100%;
}

.stream-loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #666;
    text-align: center;
}

.loading-icon {
    font-size: 32px;
    color: #6c5ce7;
    animation: spin 1.5s linear infinite;
    display: inline-block;
}

.loading-text {
    font-size: 14px;
    color: #888;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

/* Spinning animation for loading icon */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pulse animation for loading text */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Loading container hover effect */
.stream-loading-container:hover .loading-icon {
    animation: spin 0.8s linear infinite;
    color: #5b4cdb;
}

.stream-loading-container:hover .loading-text {
    color: #333;
}

/* Responsive loading animation */
@media (max-width: 768px) {
    .stream-loading-container {
        padding: 30px 20px;
    }

    .loading-icon {
        font-size: 28px;
    }

    .loading-text {
        font-size: 13px;
    }
}

/* Alternative loading states */
.stream-loading-animation.fast .loading-icon {
    animation: spin 0.5s linear infinite;
}

.stream-loading-animation.slow .loading-icon {
    animation: spin 2.5s linear infinite;
}

/* Loading animation with dot progression */
.loading-text::after {
    content: '';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {

    0%,
    33% {
        content: '';
    }

    33%,
    66% {
        content: '.';
    }

    66%,
    100% {
        content: '..';
    }
}

/* ===========================
   Forgot Password Button in Login Modal
============================ */
.login-forgot-password {
    text-align: center;
}

.register-btn {
    color: var(--primary);
    padding: 6px ;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    min-width: 120px;
}

.forgot-password-subtitle{
    margin-bottom:10px;
}

.forgot-password-btn {
    color: var(--text-secondary);
    padding: 6px ;
    font-size: 12px;
    cursor: pointer;
    
    transition: all 0.3s ease;
    min-width: 120px;
}

.forgot-password-btn:hover {
    color:var(--primary-dark);
}

.forgot-password-btn i {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .forgot-password-btn {
        font-size: 13px;
        padding: 6px 14px;
        min-width: 100px;
    }
}