/* Stream Studio Page Styles */

/* --- Stream Studio Stepper & Form Enhancements --- */
.studio-stepper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    position: relative;
    margin-bottom: 1rem;
    padding: 0.5rem 0.25rem 1.25rem;
}

.stepper-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.stepper-progress-fill {
    height: 100%;
    width: 33.3%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transition: width 0.25s ease;
}

.step-node {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    transition: all 0.2s ease;
}

.step-node .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-node .step-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

.step-node.active {
    border-color: rgba(0, 224, 255, 0.5);
    box-shadow: 0 0 18px rgba(0, 224, 255, 0.2);
    background: rgba(0, 224, 255, 0.06);
}

.step-node.completed {
    border-color: rgba(123, 0, 255, 0.4);
    background: rgba(123, 0, 255, 0.05);
}

.settings-step { margin-top: 0.5rem; }

.helper-text {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: rgba(234, 246, 255, 0.65);
    line-height: 1.4;
}

.helper-text.subtle { color: rgba(234, 246, 255, 0.5); }

.form-input, .form-select, .form-textarea {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: rgba(0, 224, 255, 0.7);
    box-shadow: 0 0 0 1px rgba(0, 224, 255, 0.4);
}

.form-input.invalid, .form-select.invalid {
    border-color: rgba(255, 80, 100, 0.8);
    box-shadow: 0 0 0 1px rgba(255, 80, 100, 0.4);
}

.tag-limit { color: rgba(234, 246, 255, 0.65); font-size: 0.9rem; }

.tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.tag-suggestion {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tag-suggestion:hover {
    border-color: rgba(0, 224, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
}

.studio-cta-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(10, 14, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.status-pill.offline { background: rgba(255, 255, 255, 0.05); }
.status-pill.live { background: rgba(0, 224, 255, 0.12); border-color: rgba(0, 224, 255, 0.5); color: var(--text-main); }

.cta-actions { display: flex; gap: 0.6rem; }

.cta-primary, .cta-secondary {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-radius: 0.75rem;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-primary {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border: none;
    color: #0a0e1a;
    box-shadow: 0 8px 24px rgba(0, 224, 255, 0.35);
}

.cta-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.cta-secondary:disabled { opacity: 0.4; cursor: not-allowed; }

.cta-primary:hover:not(:disabled) { transform: translateY(-1px); }
.cta-secondary:hover:not(:disabled) { border-color: rgba(0, 224, 255, 0.4); }

.settings-step .form-group { margin-bottom: 1rem; }

/* CSS Variables */
:root {
    --primary-bg: #0a0e1a;
    --secondary-bg: #151932;
    --glass-bg: rgba(21, 25, 50, 0.8);
    --neon-blue: #00e0ff;
    --neon-purple: #7b00ff;
    --neon-pink: #ff00ff;
    --text-main: #eaf6ff;
    --text-secondary: rgba(234, 246, 255, 0.7);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header-content h1.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.05em;
}

.page-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* Featured Carousel Section */
.featured-carousel-section {
    margin-bottom: 2.5rem;
}

/* Carousel with Streamers Layout */
.carousel-with-streamers-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

.featured-carousel-section {
    order: -1;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2;
}

.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 50, 100, 0.4) 0%, rgba(150, 0, 100, 0.4) 50%, rgba(100, 0, 150, 0.4) 100%);
    background-size: cover;
    background-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.3) 0%, rgba(10, 14, 26, 0.8) 100%);
}

.carousel-content {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.carousel-title {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.03em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.btn-watch-stream {
    background: rgba(123, 85, 247, 0.9);
    color: var(--text-main);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 2rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
    box-shadow: 0 4px 16px rgba(123, 85, 247, 0.4);
}

.btn-watch-stream:hover {
    background: rgba(123, 85, 247, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 85, 247, 0.6);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    gap: 0.6rem;
    z-index: 3;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-dot:first-child {
    background: rgba(255, 255, 255, 0.9);
    width: 12px;
    height: 12px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
    width: 12px;
    height: 12px;
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 224, 255, 0.2);
    border: 1px solid rgba(0, 224, 255, 0.4);
    color: #00e0ff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    padding: 0;
}

.carousel-arrow:hover {
    background: rgba(0, 224, 255, 0.35);
    border-color: rgba(0, 224, 255, 0.7);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-prev {
    left: 1.5rem;
}

.carousel-arrow-next {
    right: 1.5rem;
}

/* Old Featured Stream Section - Keep for backwards compatibility but hide */
.featured-stream-section {
    display: none;
}

.featured-streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.25rem;
}

.featured-stream-card {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 224, 255, 0.2);
    border-radius: 0.875rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 224, 255, 0.1);
    transition: all 0.3s;
}

.featured-stream-card:hover {
    border-color: rgba(0, 224, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 224, 255, 0.2);
    transform: translateY(-4px);
}

.featured-stream-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.placeholder-stream-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.15) 0%, rgba(123, 0, 255, 0.15) 50%, rgba(255, 0, 255, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-stream-bg::after {
    content: '▶';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.live-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #EF4444;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.5);
}

.live-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.featured-viewer-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-stream-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
}

.featured-streamer {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.featured-avatar {
    width: 48px;
    height: 48px;
    border-radius: 0.6rem;
    border: 2px solid rgba(0, 224, 255, 0.4);
    box-shadow: 0 2px 12px rgba(0, 224, 255, 0.2);
    flex-shrink: 0;
}

.featured-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.featured-title {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-clamp: 2;
    line-clamp: 2;
    line-clamp: 2;
    line-clamp: 2;
    line-clamp: 2;
    line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.featured-streamer-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.featured-game-tag {
    display: inline-block;
    background: rgba(0, 224, 255, 0.15);
    color: var(--neon-blue);
    padding: 0.3rem 0.75rem;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
    border: 1px solid rgba(0, 224, 255, 0.3);
}

.btn-join-stream {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    color: var(--text-main);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.6rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 224, 255, 0.3);
}

.btn-join-stream:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 224, 255, 0.5);
}

/* Search and Filter Section */
.search-filter-section {
    margin-bottom: 2rem;
}

.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.search-bar svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-bar input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 224, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1);
}

.search-bar input:focus + svg,
.search-bar input:focus ~ svg {
    color: #00e0ff;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(15, 20, 35, 0.98);
    border: 1px solid rgba(0, 224, 255, 0.3);
    border-radius: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 224, 255, 0.15);
    backdrop-filter: blur(20px);
}

.search-results-content {
    padding: 0.5rem;
}

.search-result-group {
    margin-bottom: 1rem;
}

.search-result-group:last-child {
    margin-bottom: 0;
}

.search-group-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(0, 224, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 0.75rem;
    margin: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.search-result-item:hover {
    background: rgba(0, 224, 255, 0.08);
}

.search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.2), rgba(123, 0, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result-icon.live::after {
    content: 'LIVE';
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    background: #ff0055;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    position: absolute;
    margin-top: -20px;
    margin-left: 20px;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.search-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 224, 255, 0.15);
    color: rgba(0, 224, 255, 0.9);
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 224, 255, 0.3);
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 224, 255, 0.3);
    border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 224, 255, 0.5);
}

/* Stream Filters */
.stream-filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.filter-btn.active {
    background: rgba(0, 224, 255, 0.15);
    border-color: rgba(0, 224, 255, 0.5);
    color: #00e0ff;
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.2);
}

.filter-btn.active:hover {
    background: rgba(0, 224, 255, 0.2);
    box-shadow: 0 0 24px rgba(0, 224, 255, 0.3);
}

/* Streams Layout */
.streams-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Top Streamers Sidebar */
.top-streamers-sidebar {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 224, 255, 0.2);
    border-radius: 1.2rem;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.sidebar-title {
    margin: 0 0 1.5rem 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--neon-blue);
    letter-spacing: 0.03em;
}

.streamers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.streamer-rank-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(0, 224, 255, 0.1);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.streamer-rank-item:hover {
    background: rgba(0, 224, 255, 0.08);
    border-color: rgba(0, 224, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 224, 255, 0.2);
}

.rank-badge {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    color: var(--text-main);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 224, 255, 0.3);
}

.rank-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    min-width: 0;
}

.rank-avatar {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 224, 255, 0.3);
    flex-shrink: 0;
}

.rank-info div {
    flex: 1;
    min-width: 0;
}

.rank-name {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-viewers {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.follow-btn {
    background: rgba(0, 224, 255, 0.15);
    border: 1px solid rgba(0, 224, 255, 0.4);
    color: var(--neon-blue);
    padding: 0.35rem 0.75rem;
    border-radius: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.follow-btn:hover {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    border-color: transparent;
    color: var(--text-main);
    box-shadow: 0 2px 12px rgba(0, 224, 255, 0.4);
}

/* Live Streams Section */
.live-streams-section {
    flex: 1;
}

.section-heading {
    margin: 0 0 1.5rem 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.03em;
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stream-card {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 224, 255, 0.15);
    border-radius: 0.875rem;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.stream-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 224, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 224, 255, 0.3);
}

.stream-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.1) 0%, rgba(123, 0, 255, 0.1) 100%);
    border-radius: 0.5rem;
}

.stream-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #1a1a2e;
    display: block;
}

.placeholder-stream {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.2) 0%, rgba(123, 0, 255, 0.2) 50%, rgba(255, 0, 255, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-stream::after {
    content: '▶';
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.live-badge-small {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #EF4444;
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 0.4rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

.live-pulse-small {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.stream-viewer-count {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-main);
    padding: 0.35rem 0.75rem;
    border-radius: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-card-info {
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    flex: 1;
}

.stream-avatar {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 224, 255, 0.3);
    flex-shrink: 0;
}

.stream-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.stream-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;

    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    /* Fallback for non-webkit browsers */
    max-height: 2.6em;
}

.stream-streamer {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stream-game {
    display: inline-block;
    background: rgba(0, 224, 255, 0.15);
    color: var(--neon-blue);
    padding: 0.25rem 0.65rem;
    border-radius: 0.35rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    border: 1px solid rgba(0, 224, 255, 0.25);
}

/* Recommended Streamers Section */
.recommended-streamers-section {
    margin-top: 3rem;
}

.recommended-streamers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommended-streamer-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    background: var(--glass-bg);
    border: 1px solid rgba(0, 224, 255, 0.15);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.recommended-streamer-item:hover {
    background: rgba(0, 224, 255, 0.08);
    border-color: rgba(0, 224, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 224, 255, 0.2);
    transform: translateX(4px);
}

.rec-streamer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 0.6rem;
    overflow: hidden;
    border: 1.5px solid rgba(0, 224, 255, 0.3);
    flex-shrink: 0;
}

.rec-streamer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-streamer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.rec-streamer-name {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-streamer-game {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-viewer-badge {
    background: linear-gradient(135deg, #FF1447 0%, #FF3366 100%);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 20, 71, 0.3);
}

/* Old Recommended Section - Keep for backwards compatibility but hide */
.recommended-section {
    display: none;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.recommended-card {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 224, 255, 0.15);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.recommended-card:hover {
    border-color: rgba(0, 224, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 224, 255, 0.3);
}

.rec-avatar {
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    border: 2px solid rgba(0, 224, 255, 0.4);
    box-shadow: 0 2px 16px rgba(0, 224, 255, 0.2);
}

.rec-name {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.rec-game {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rec-viewers {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(234, 246, 255, 0.5);
}

.btn-follow-main {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    color: var(--text-main);
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 0.6rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 224, 255, 0.3);
}

.btn-follow-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 224, 255, 0.5);
}

/* Expandable grid for Show more */
.expandable {
    max-height: calc(2 * (16 / 9 * 280px + 4.5rem)); /* 2 rows, adjust as needed */
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.expandable.expanded {
    max-height: 2000px; /* Large enough to show all cards */
}
.show-more-btn {
    display: block;
    margin: 1.5rem auto 0 auto;
    background: none;
    border: none;
    color: var(--neon-blue);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}
.show-more-btn:hover {
    color: var(--neon-cyan);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .featured-streams-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .carousel-with-streamers-layout {
        grid-template-columns: 1fr;
    }

    .top-streamers-sidebar {
        position: static;
        display: none;
    }

    .streams-layout {
        grid-template-columns: 1fr;
    }
    
    .streams-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .recommended-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 1024px) {
    .carousel-container {
        height: 340px;
    }

    .carousel-title {
        font-size: 2.5rem;
    }

    .featured-streams-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .streams-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 900px) {
    .search-filter-section {
        gap: 1rem;
    }

    .stream-filters {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .filter-btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .dashboard-main-content {
        padding: 2rem 1.5rem;
    }
    
    .page-header-content h1.page-title {
        font-size: 2rem;
    }

    /* Carousel responsive */
    .carousel-container {
        height: 300px;
    }

    .carousel-content {
        bottom: 2rem;
        left: 2rem;
        gap: 1rem;
    }

    .carousel-title {
        font-size: 2rem;
    }

    .btn-watch-stream {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .carousel-dots {
        bottom: 1rem;
        right: 1.5rem;
        gap: 0.5rem;
    }

    /* Carousel arrows responsive */
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow-prev {
        left: 1rem;
    }

    .carousel-arrow-next {
        right: 1rem;
    }

    /* Search bar tablet */
    .search-bar {
        max-width: 100%;
    }

    .search-bar input {
        font-size: 0.9rem;
    }

    .featured-streams-grid {
        grid-template-columns: 1fr;
    }

    .featured-stream-card {
        padding: 0;
    }

    .featured-stream-info {
        padding: 1rem;
        gap: 0.85rem;
    }
    
    .featured-avatar {
        width: 44px;
        height: 44px;
    }

    .featured-title {
        font-size: 1rem;
    }
    
    .featured-streamer-name {
        font-size: 0.9rem;
    }
    
    .btn-join-stream {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .streams-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.25rem;
    }

    .recommended-streamers-list {
        gap: 0.65rem;
    }

    .recommended-streamer-item {
        padding: 0.8rem 0.9rem;
    }

    .rec-streamer-avatar {
        width: 44px;
        height: 44px;
    }

    .rec-streamer-name {
        font-size: 0.9rem;
    }

    .rec-viewer-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.65rem;
    }

    .recommended-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }

    .recommended-card {
        padding: 1.25rem 1rem;
    }

    .rec-avatar {
        width: 64px;
        height: 64px;
    }

    .rec-name {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .carousel-container {
        height: 280px;
    }

    .carousel-title {
        font-size: 1.75rem;
    }

    .streams-grid {
        grid-template-columns: 1fr;
    }

    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dashboard-main-content {
        padding: 1.5rem 1rem;
    }
    
    .page-header {
        margin-bottom: 1.5rem;
    }
    
    .page-header-content h1.page-title {
        font-size: 1.75rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    /* Carousel mobile */
    .featured-carousel-section {
        margin-bottom: 2rem;
    }

    .carousel-container {
        height: 250px;
        border-radius: 0.75rem;
    }

    .carousel-content {
        bottom: 1.5rem;
        left: 1.5rem;
        gap: 0.85rem;
    }

    .carousel-title {
        font-size: 1.5rem;
    }

    .btn-watch-stream {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .carousel-dots {
        bottom: 0.75rem;
        right: 1rem;
        gap: 0.4rem;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    /* Carousel arrows mobile */
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
        stroke: #ff3366;
        /* You can change #ff3366 to any color you prefer */
    }

    .carousel-arrow-prev {
        left: 0.75rem;
    }

    .carousel-arrow-next {
        right: 0.75rem;
    }

    .carousel-dot.active {
        width: 10px;
        height: 10px;
    }

    .featured-stream-section {
        margin-bottom: 2rem;
    }

    .featured-streams-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-stream-info {
        padding: 0.85rem;
        gap: 0.75rem;
    }
    
    .featured-avatar {
        width: 40px;
        height: 40px;
    }
    
    .featured-title {
        font-size: 0.95rem;
    }
    
    .btn-join-stream {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
    
    .stream-filters {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .filter-btn {
        padding: 0.65rem 1.1rem;
        font-size: 0.85rem;
    }

    .streams-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .recommended-streamers-list {
        gap: 0.6rem;
    }

    .recommended-streamer-item {
        padding: 0.75rem 0.85rem;
        gap: 0.85rem;
    }

    .rec-streamer-avatar {
        width: 40px;
        height: 40px;
    }

    .rec-streamer-name {
        font-size: 0.85rem;
    }

    .rec-streamer-game {
        font-size: 0.75rem;
    }

    .rec-viewer-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .stream-card-info {
        padding: 0.85rem;
    }

    .stream-avatar {
        width: 40px;
        height: 40px;
    }
    
    .stream-title {
        font-size: 0.9rem;
    }
    
    .stream-streamer {
        font-size: 0.8rem;
    }

    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .recommended-card {
        padding: 1rem 0.75rem;
    }
    
    .rec-avatar {
        width: 56px;
        height: 56px;
    }
    
    .rec-name {
        font-size: 0.95rem;
    }
    
    .rec-game {
        font-size: 0.85rem;
    }
    
    .btn-follow-main {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

    /* STREAM STUDIO BUTTON ONLY */
    .btn-toggle-studio {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
        color: white;
        border: none;
        border-radius: 0.5rem;
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-toggle-studio:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 224, 255, 0.3);
    }

    .page-header-actions {
        display: flex;
        align-items: center;
    }

/* ============================================ */
/* STREAM STUDIO SECTION */
/* ============================================ */

.my-stream-studio-section {
    margin: 0.75rem 0 0.5rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 224, 255, 0.15);
    border-radius: 1rem;
    padding: 0.75rem;
}

.studio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0;
}

/* Compact the heading inside the Studio header */
.studio-header .section-heading {
    margin: 0;
}

.stream-preview-container {
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(0, 224, 255, 0.2);
    border-radius: 0.75rem;
    padding: 0.5rem;
}

.studio-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1rem;
    /* removed internal padding to prevent extra spacing */
}

.studio-main-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
/* Removed stray property that caused CSS parse issues */

.stream-preview-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(21, 25, 50, 0.9) 0%, rgba(10, 14, 26, 0.95) 100%);
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.preview-placeholder svg {
    opacity: 0.3;
    margin-bottom: 1rem;
}

.preview-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0.5rem 0;
}

.preview-subtext {
    font-size: 0.9rem;
    margin: 0;
}

.stream-status-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.status-indicator {
    padding: 0.5rem 1rem;
    border-radius: 0.35rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator.offline {
    background: rgba(100, 100, 100, 0.8);
    color: #bbb;
}

.status-indicator.live {
    background: rgba(255, 0, 0, 0.8);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.stream-duration {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0.35rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    color: var(--neon-blue);
}

.stream-controls-panel {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 224, 255, 0.1);
}

.control-btn {
    padding: 0.75rem;
    background: rgba(21, 25, 50, 0.6);
    border: 1px solid rgba(0, 224, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover:not(:disabled) {
    background: rgba(0, 224, 255, 0.1);
    border-color: var(--neon-blue);
    transform: translateY(-2px);
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.control-btn.btn-go-live {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: none;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.control-btn.btn-go-live:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.control-btn.btn-go-live.streaming {
    background: linear-gradient(135deg, #666, #444);
}

.control-divider {
    width: 1px;
    background: rgba(0, 224, 255, 0.2);
    margin: 0 0.5rem;
}

.control-btn.active {
    background: rgba(0, 224, 255, 0.2);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.stream-settings-container {
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(0, 224, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow: hidden;
    box-sizing: border-box;
}

.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 224, 255, 0.1);
}

.settings-tab {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-tab:hover {
    color: var(--text-main);
}

.settings-tab.active {
    color: var(--neon-blue);
    border-bottom-color: var(--neon-blue);
}

.settings-content { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-group { margin-bottom: 1.25rem; width: 100%; box-sizing: border-box; }
.form-label { display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--text-main); margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 0.75rem 1rem; background: rgba(21, 25, 50, 0.6); box-sizing: border-box;
    border: 1px solid rgba(0, 224, 255, 0.2); border-radius: 0.5rem; color: var(--text-main);
    font-family: 'Inter', sans-serif; font-size: 0.9rem; transition: all 0.3s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--neon-blue); box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-range { width: 100%; height: 6px; background: rgba(21, 25, 50, 0.6); border-radius: 3px; outline: none; appearance: none; -webkit-appearance: none; }
.form-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: var(--neon-blue); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.form-range::-webkit-slider-thumb:hover { background: var(--neon-purple); transform: scale(1.2); }

.tag-input-container { display: flex; gap: 0.5rem; width: 100%; box-sizing: border-box; }
.btn-add-tag { padding: 0.75rem 1.5rem; background: var(--neon-blue); color: white; border: none; border-radius: 0.5rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
.btn-add-tag:hover { background: var(--neon-purple); transform: translateY(-2px); }
.tags-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.tag-item { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: rgba(0, 224, 255, 0.15); border: 1px solid var(--neon-blue); border-radius: 1rem; color: var(--neon-blue); font-size: 0.85rem; font-weight: 500; }
.tag-remove { background: none; border: none; color: var(--neon-blue); font-size: 1.25rem; cursor: pointer; padding: 0; line-height: 1; transition: color 0.3s ease; }
.tag-remove:hover { color: #ff0000; }

.sources-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.source-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: rgba(21, 25, 50, 0.4); border: 1px solid rgba(0, 224, 255, 0.15); border-radius: 0.5rem; transition: all 0.3s ease; }
.source-item:hover { border-color: var(--neon-blue); background: rgba(21, 25, 50, 0.6); }
.source-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(0, 224, 255, 0.1); border-radius: 0.5rem; color: var(--neon-blue); }
.source-info { flex: 1; }
.source-name { font-weight: 600; color: var(--text-main); margin: 0 0 0.25rem 0; }
.source-status { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.source-toggle { position: relative; width: 50px; height: 26px; background: rgba(100, 100, 100, 0.3); border: 1px solid rgba(100, 100, 100, 0.5); border-radius: 13px; cursor: pointer; transition: all 0.3s ease; }
.toggle-slider { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: all 0.3s ease; }
.source-toggle.active { background: var(--neon-blue); border-color: var(--neon-blue); }
.source-toggle.active .toggle-slider { transform: translateX(24px); }
.btn-add-source { width: 100%; padding: 0.85rem; background: rgba(0, 224, 255, 0.1); border: 1px dashed var(--neon-blue); border-radius: 0.5rem; color: var(--neon-blue); font-family: 'Inter', sans-serif; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-add-source:hover { background: rgba(0, 224, 255, 0.2); border-style: solid; transform: translateY(-2px); }

.studio-stats-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.stats-card { background: rgba(10, 14, 26, 0.6); border: 1px solid rgba(0, 224, 255, 0.2); border-radius: 0.75rem; padding: 1.25rem; }
.stats-title { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text-main); margin: 0 0 1rem 0; }
.stat-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid rgba(0, 224, 255, 0.1); }
.stat-item:last-child { border-bottom: none; }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); }
.stat-value { font-family: 'Orbitron', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--neon-blue); }
.health-metric { margin-bottom: 1rem; }
.health-metric:last-child { margin-bottom: 0; }
.metric-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.metric-label { font-size: 0.85rem; color: var(--text-secondary); }
.metric-status, .metric-value { font-size: 0.8rem; font-weight: 600; }
.metric-status.status-good { color: #00ff88; }
.metric-value { color: var(--neon-blue); }
.health-bar { width: 100%; height: 6px; background: rgba(21, 25, 50, 0.6); border-radius: 3px; overflow: hidden; }
.health-fill { height: 100%; background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple)); border-radius: 3px; transition: width 0.5s ease; }
.health-fill.warning { background: linear-gradient(90deg, #ffaa00, #ff6600); }
.quick-chat-container { max-height: 200px; overflow-y: auto; }
.chat-messages { display: flex; flex-direction: column; gap: 0.5rem; }
.chat-empty { text-align: center; color: var(--text-secondary); font-size: 0.85rem; padding: 1rem; margin: 0; }
.chat-message { padding: 0.5rem; background: rgba(21, 25, 50, 0.4); border-radius: 0.35rem; font-size: 0.85rem; }
.chat-username { font-weight: 600; color: var(--neon-blue); margin-right: 0.5rem; }
.chat-text { color: var(--text-main); }

@media (max-width: 1200px) {
    .studio-layout { grid-template-columns: 1fr; }
    .studio-stats-sidebar { flex-direction: row; flex-wrap: wrap; }
    .stats-card { flex: 1; min-width: 280px; }
}

@media (max-width: 768px) {
    .my-stream-studio-section { padding: 1rem; }
    .studio-header { flex-direction: column; gap: 1rem; align-items: stretch; }
    .btn-toggle-studio { justify-content: center; }
    .stream-controls-panel { flex-wrap: wrap; }
    .control-btn.btn-go-live { width: 100%; justify-content: center; }
    .settings-tabs { overflow-x: auto; }
    .settings-tab { white-space: nowrap; }
    .studio-stats-sidebar { flex-direction: column; }
    .stats-card { min-width: unset; }
}

    /* (Removed preview and status styles per request) */

    /* (Removed stream controls styles per request) */

    /* (Removed settings styles per request) */

    /* (Removed form styles per request) */

    /* Tag Input */
    .tag-input-container {
        display: flex;
        gap: 0.5rem;
    }

    .btn-add-tag {
        padding: 0.75rem 1.5rem;
        background: var(--neon-blue);
        color: white;
        border: none;
        border-radius: 0.5rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .btn-add-tag:hover {
        background: var(--neon-purple);
        transform: translateY(-2px);
    }

    .tags-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .tag-item {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        background: rgba(0, 224, 255, 0.15);
        border: 1px solid var(--neon-blue);
        border-radius: 1rem;
        color: var(--neon-blue);
        font-size: 0.85rem;
        font-weight: 500;
    }

    .tag-remove {
        background: none;
        border: none;
        color: var(--neon-blue);
        font-size: 1.25rem;
        cursor: pointer;
        padding: 0;
        line-height: 1;
        transition: color 0.3s ease;
 }
    .tag-remove:hover {
        color: #ff0000;
    }

    /* Top Live Games Section */
    .top-live-games-section {
        margin-bottom: 3rem;
    }

    .games-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .view-all-link {
        color: var(--neon-blue);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        transition: color 0.3s ease;
    }

    .view-all-link:hover {
        color: var(--neon-cyan);
    }

    .games-carousel {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0;
        scroll-behavior: smooth;
        margin-bottom: -0.7rem;
    }

    .games-carousel::-webkit-scrollbar {
        height: 6px;
    }

    .games-carousel::-webkit-scrollbar-track {
        background: rgba(0, 224, 255, 0.1);
        border-radius: 10px;
    }

    .games-carousel::-webkit-scrollbar-thumb {
        background: rgba(0, 224, 255, 0.4);
        border-radius: 10px;
    }

    .games-carousel::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 224, 255, 0.6);
    }

    .game-card {
        flex: 0 0 150px;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        height: 330px;
        overflow: hidden;
    }

    .game-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 224, 255, 0.2);
    }

    .game-thumbnail {
        position: relative;
        width: 100%;
        aspect-ratio: 3 / 4;
        border-radius: 0.75rem;
        overflow: hidden;
        background-color: #1a1a2e;
        margin-bottom: 0.75rem;
        flex-shrink: 0;
    }

    .game-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .game-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
        display: flex;
        align-items: flex-end;
        padding: 1rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        height: 100%;
        width: 100%;
    }

    .game-card:hover .game-overlay {
        opacity: 1;
    }

    .game-viewers {
        color: white;
        text-align: left;
        width: 100%;
        min-height: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .viewer-count {
        display: block;
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--neon-cyan);
        line-height: 1;
    }

    .viewer-text {
        display: block;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1;
    }

    .game-info {
        padding: 0 0.25rem;
        display: flex;
        flex-direction: column;
        height: 4.75rem;
    }

    .game-name {
        font-size: 0.95rem;
        font-weight: 700;
        color: white;
        margin: 0 0 0.5rem 0;
        line-height: 1.3;
        height: 2.6rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        -moz-box-orient: vertical;
        /* Fallback for non-webkit browsers */
        max-height: 2.6em;
    }

    .game-tags {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        overflow: hidden;
        height: 1.75rem;
        align-items: center;
    }

    .game-tag {
        display: inline-block;
        background: rgba(0, 224, 255, 0.15);
        color: var(--neon-blue);
        padding: 0.25rem 0.6rem;
        border-radius: 0.3rem;
        font-size: 0.75rem;
        font-weight: 600;
        border: 1px solid rgba(0, 224, 255, 0.3);
        transition: all 0.3s ease;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .game-tag:hover {
        background: rgba(0, 224, 255, 0.25);
        border-color: rgba(0, 224, 255, 0.6);
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
        .game-card {
            flex: 0 0 140px;
        }

        .games-carousel {
            gap: 1rem;
        }
    }

    @media (max-width: 768px) {
        .game-card {
            flex: 0 0 120px;
        }

        .games-carousel {
            gap: 0.75rem;
        }

        .game-name {
            font-size: 0.85rem;
        }

        .game-tag {
            font-size: 0.7rem;
            padding: 0.2rem 0.5rem;
        }
    }

    @media (max-width: 480px) {
        .game-card {
            flex: 0 0 100px;
        }

        .games-carousel {
            gap: 0.5rem;
        }

        .games-section-header {
            margin-bottom: 1rem;
        }

        .section-heading {
            font-size: 1.3rem;
        }
    }

    /* Game Live Streams Section */
    .game-live-streams-section {
        margin-bottom: 3.5rem;
    }

    .game-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .live-streams-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 0;
    }

    .live-streams-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .stream-card-large {
        flex: 0 0 280px;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    .stream-card-large:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 224, 255, 0.2);
    }

    .stream-thumbnail-large {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 0.75rem;
        overflow: hidden;
        background-color: #1a1a2e;
        margin-bottom: 0.75rem;
        flex-shrink: 0;
    }

    .stream-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        background-color: #1a1a2e;
    }

    .live-badge {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        background: #EF4444;
        color: #fff;
        padding: 0.35rem 0.75rem;
        border-radius: 0.4rem;
        font-family: 'Orbitron', sans-serif;
        font-size: 0.75rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        letter-spacing: 0.5px;
    }

    .live-pulse {
        display: inline-block;
        width: 0.5rem;
        height: 0.5rem;
        background: white;
        border-radius: 50%;
        animation: pulse-animate 1.5s infinite;
    }

    @keyframes pulse-animate {
        0%, 100% {
            opacity: 1;
        }
        50% {
            opacity: 0.5;
        }
    }

    .stream-viewer-badge {
        position: absolute;
        bottom: 0.75rem;
        left: 0.75rem;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 0.4rem 0.75rem;
        border-radius: 0.4rem;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .stream-info {
        padding: 0 0.25rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .streamer-header {
        display: flex;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .streamer-avatar {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        flex-shrink: 0;
        object-fit: cover;
    }

    .stream-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: white;
        margin: 0;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        -moz-box-orient: vertical;
        /* Fallback for non-webkit browsers */
        max-height: 2.6em;
    }

    .streamer-name {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
        margin: 0;
    }

    .stream-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .stream-tag {
        display: inline-block;
        background: rgba(0, 224, 255, 0.15);
        color: var(--neon-blue);
        padding: 0.2rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.7rem;
        font-weight: 600;
        border: 1px solid rgba(0, 224, 255, 0.3);
        white-space: nowrap;
        transition: all 0.3s ease;
    }

    .stream-tag:hover {
        background: rgba(0, 224, 255, 0.25);
        border-color: rgba(0, 224, 255, 0.6);
    }

    /* Responsive Design for Live Streams */
    @media (max-width: 1200px) {
        .stream-card-large {
            flex: 0 0 240px;
        }

        .live-streams-carousel {
            gap: 1rem;
        }
    }

    @media (max-width: 768px) {
        .stream-card-large {
            flex: 0 0 200px;
        }

        .live-streams-carousel {
            gap: 0.75rem;
        }

        .stream-title {
            font-size: 0.8rem;
        }

        .stream-tag {
            font-size: 0.65rem;
            padding: 0.15rem 0.4rem;
        }
    }

    @media (max-width: 480px) {
        .stream-card-large {
            flex: 0 0 160px;
        }

        .live-streams-carousel {
            gap: 0.5rem;
        }

        .streamer-avatar {
            width: 2rem;
            height: 2rem;
        }
    }
    /* Show more separator style */
.show-more-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1.5rem 0;
    color: #b3c6d4;
    font-weight: 500;
    font-size: 1rem;
}

.show-more-separator::before,
.show-more-separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #444a55;
    margin: 0 1rem;
}

.show-more-separator span {
    white-space: nowrap;
    color: #7fd7ff;
    font-weight: 600;
    letter-spacing: 0.05em;
}