/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f47321;
    --primary-dark: #d4611a;
    --bg-dark: #1a1a1a;
    --bg-darker: #111111;
    --bg-card: #242424;
    --bg-header: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    --border: #333333;
    --online: #00cc44;
    --tag-bg: #2a2a2a;
    --tag-hover: #3a3a3a;
    --input-bg: #2d2d2d;
    --shadow: rgba(0,0,0,0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

input {
    outline: none;
    border: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== HEADER ===== */
.header {
    background-color: var(--bg-header);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1600px;
    margin: 0 auto;
    gap: 15px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(244, 115, 33, 0.3);
}

.logo-text span {
    color: var(--text-primary);
}

.logo-badge {
    background: var(--primary);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: -10px;
}

/* Search */
.search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.search-bar:focus-within {
    border-color: var(--primary);
}

.search-bar input {
    flex: 1;
    background: transparent;
    color: var(--text-primary);
    padding: 9px 14px;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--primary);
    color: white;
    padding: 9px 16px;
    font-size: 15px;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 115, 33, 0.3);
}

.btn-broadcast {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
}

.btn-broadcast:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.btn-broadcast .dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== NAVIGATION ===== */
.nav-bar {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}

.nav-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-item .nav-icon {
    font-size: 15px;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 5px;
    flex-shrink: 0;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== BANNER ===== */
.banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(244, 115, 33, 0.2);
    overflow: hidden;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244,115,33,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.banner-text h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
}

.banner-text p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 500px;
}

.banner-text p span {
    color: var(--primary);
    font-weight: 600;
}

.banner-btn {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.banner-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 115, 33, 0.4);
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title .live-dot {
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

.section-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.section-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== FILTERS ===== */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--tag-bg);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.filter-btn:hover {
    background: var(--tag-hover);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-sort {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-select {
    background: var(--input-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.sort-select:hover, .sort-select:focus {
    border-color: var(--primary);
    color: var(--text-primary);
}

/* ===== STREAM GRID ===== */
.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* ===== STREAM CARD ===== */
.stream-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
}

.stream-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    border-color: var(--primary);
}

.stream-card:hover .card-overlay {
    opacity: 1;
}

.card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #1a1a1a;
}

.card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.stream-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: rgba(244, 115, 33, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    transform: scale(0.8);
    transition: transform 0.2s;
}

.stream-card:hover .play-btn {
    transform: scale(1);
}

/* Badges */
.card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.badge {
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-live {
    background: #e74c3c;
    color: white;
}

.badge-hd {
    background: rgba(0,0,0,0.7);
    color: #00cc44;
    border: 1px solid #00cc44;
}

.badge-new {
    background: #9b59b6;
    color: white;
}

.badge-vip {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

/* Viewer count */
.viewer-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.viewer-count::before {
    content: '👁';
    font-size: 10px;
}

/* Card Info */
.card-info {
    padding: 10px 12px;
}

.card-streamer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.streamer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.streamer-details {
    flex: 1;
    min-width: 0;
}

.streamer-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.streamer-name:hover {
    color: var(--primary);
}

.streamer-location {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.card-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tag {
    background: var(--tag-bg);
    color: var(--text-muted);
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.tag:hover {
    background: var(--tag-hover);
    color: var(--primary);
    border-color: var(--primary);
}

/* Online indicator */
.online-indicator {
    width: 8px;
    height: 8px;
    background: var(--online);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--online);
}

/* ===== TAGS CLOUD ===== */
.tags-section {
    margin-bottom: 30px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-cloud-item {
    background: var(--tag-bg);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}

.tag-cloud-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.tag-cloud-item .tag-count {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 4px;
}

.tag-cloud-item:hover .tag-count {
    color: rgba(255,255,255,0.7);
}

/* ===== LOAD MORE ===== */
.load-more-section {
    text-align: center;
    padding: 20px 0 40px;
}

.btn-load-more {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-load-more:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 115, 33, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border);
    padding: 40px 20px 20px;
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand .logo-text {
    font-size: 22px;
    margin-bottom: 12px;
    display: block;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    padding: 35px;
    border: 1px solid var(--border);
    transform: translateY(-20px);
    transition: transform 0.3s;
    position: relative;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    color: var(--text-muted);
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--tag-bg);
    color: var(--text-primary);
}

.modal-logo {
    text-align: center;
    margin-bottom: 25px;
}

.modal-logo .logo-text {
    font-size: 28px;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 25px;
}

.modal-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.modal-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.modal-tab:hover {
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 13px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 5px;
    transition: all 0.2s;
}

.form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(244, 115, 33, 0.4);
}

.form-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin: 15px 0;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.social-login {
    display: flex;
    gap: 10px;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-twitter {
    background: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background: #1a91da;
}

.btn-google {
    background: #db4437;
    color: white;
}

.btn-google:hover {
    background: #c53929;
}

.form-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary);
}

/* ===== NOTIFICATION TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    z-index: 3000;
    transform: translateX(120%);
    transition: transform 0.3s;
    box-shadow: 0 4px 20px var(--shadow);
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

/* ===== AGE VERIFICATION ===== */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.age-gate-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 50px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.age-gate-logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.age-gate-logo span {
    color: white;
}

.age-gate h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: white;
}

.age-gate p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.age-gate-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-age {
    padding: 13px 35px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-age-yes {
    background: var(--primary);
    color: white;
}

.btn-age-yes:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 115, 33, 0.4);
}

.btn-age-no {
    background: var(--tag-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-age-no:hover {
    background: var(--tag-hover);
    color: var(--text-primary);
}

.age-gate-warning {
    margin-top: 20px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .stream-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

@media (max-width: 900px) {
    .header-top {
        flex-wrap: wrap;
    }
    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .stream-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .header-top {
        padding: 10px 12px;
    }
    .main-content {
        padding: 12px;
    }
    .stream-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .btn-broadcast span {
        display: none;
    }
    .header-actions .btn-outline {
        display: none;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stream-card {
    animation: fadeIn 0.4s ease forwards;
}

.stream-card:nth-child(1) { animation-delay: 0.05s; }
.stream-card:nth-child(2) { animation-delay: 0.1s; }
.stream-card:nth-child(3) { animation-delay: 0.15s; }
.stream-card:nth-child(4) { animation-delay: 0.2s; }
.stream-card:nth-child(5) { animation-delay: 0.25s; }
.stream-card:nth-child(6) { animation-delay: 0.3s; }
.stream-card:nth-child(7) { animation-delay: 0.35s; }
.stream-card:nth-child(8) { animation-delay: 0.4s; }

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--tag-bg) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== STREAM CARD OFFLINE ===== */
.stream-card-offline {
    opacity: 0.75;
    border-color: var(--border) !important;
}

.stream-card-offline:hover {
    opacity: 1;
    border-color: var(--text-muted) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.stream-card-offline .streamer-name {
    color: var(--text-secondary);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(244, 115, 33, 0.4);
    z-index: 500;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}
