*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter,sans-serif;
}

body{
    background:#070b17;
    color:white;
    overflow-x:hidden;
}

body::-webkit-scrollbar{
    width:10px;
}

body::-webkit-scrollbar-thumb{
    background:#0ea5ff;
    border-radius:20px;
}

body::-webkit-scrollbar-track{
    background:#111827;
}

/* animated background */
.bg{
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    overflow:hidden;
    z-index:-2;
}

.circle{
    position:absolute;
    border-radius:50%;
    filter:blur(90px);
    opacity:.25;
    animation:float 20s infinite linear;
}

.c1{
    width:500px;
    height:500px;
    background:#0099ff;
    left:-150px;
    top:-120px;
}

.c2{
    width:450px;
    height:450px;
    background:#00ffaa;
    right:-120px;
    top:120px;
}

.c3{
    width:350px;
    height:350px;
    background:#ff0066;
    left:30%;
    bottom:-100px;
}

@keyframes float{
    0%{
        transform:translateY(0px) rotate(0);
    }
    50%{
        transform:translateY(-60px) rotate(180deg);
    }
    100%{
        transform:translateY(0px) rotate(360deg);
    }
}

/* navbar */
nav{
    position:sticky;
    top:0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 50px;
    backdrop-filter:blur(25px);
    background:rgba(10,15,35,.72);
    border-bottom:1px solid rgba(255,255,255,.08);
    z-index:999;
}

.logo{
    font-size:32px;
    font-weight:900;
    color:#00c3ff;
}

.logo span{
    color:white;
}

.menu{
    display:flex;
    gap:30px;
}

.menu a{
    text-decoration:none;
    color:white;
    font-weight:600;
    transition:.3s;
}

.menu a:hover{
    color:#00c3ff;
}

.search{
    display:flex;
    align-items:center;
    background:#1a2238;
    padding:10px 16px;
    border-radius:40px;
    width:300px;
}

.search input{
    border:none;
    outline:none;
    background:none;
    color:white;
    width:100%;
    font-size:15px;
}

/* hero */
.hero{
    padding:80px 10%;
    text-align:center;
}

.hero h1{
    font-size:65px;
    font-weight:900;
    line-height:1.1;
}

.hero span{
    color:#00bfff;
}

.hero p{
    margin-top:20px;
    font-size:20px;
    opacity:.8;
}

.live{
    display:inline-flex;
    align-items:center;
    gap:12px;
    margin-top:30px;
    background:#101d37;
    padding:14px 24px;
    border-radius:50px;
    font-weight:700;
}

.dot{
    width:14px;
    height:14px;
    background:red;
    border-radius:50%;
    animation:pulse 1s infinite;
}

@keyframes pulse{
    50%{
        transform:scale(1.5);
    }
}

/* ticker */
.ticker{
    margin:40px auto;
    width:90%;
    background:#10192d;
    padding:16px;
    border-radius:14px;
    overflow:hidden;
    white-space:nowrap;
}

.move{
    display:inline-block;
    padding-left:100%;
    animation:ticker 25s linear infinite;
}

@keyframes ticker{
    0%{
        transform:translateX(0);
    }
    100%{
        transform:translateX(-100%);
    }
}

/* platforms selector */
.platforms {
    display: flex;
    gap: 12px;
    padding: 10px 10%;
    justify-content: center;
    flex-wrap: wrap;
}

.platforms button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platforms button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.platforms button.active {
    background: #0ea5ff;
    border-color: #0ea5ff;
    box-shadow: 0 0 15px rgba(14, 165, 255, 0.4);
}

.platforms button[data-platform="TikTok"].active { background: #ff0050; border-color: #ff0050; box-shadow: 0 0 15px rgba(255, 0, 80, 0.4); }
.platforms button[data-platform="X"].active { background: #000; border-color: #333; box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); }
.platforms button[data-platform="YouTube"].active { background: #ff0000; border-color: #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); }

/* categories */
.categories{
    display:flex;
    gap:15px;
    overflow:auto;
    padding:30px 10%;
}

.categories button{
    background:#15203b;
    border:none;
    color:white;
    padding:14px 26px;
    border-radius:40px;
    cursor:pointer;
    transition:.3s;
    font-weight:600;
}

.categories button:hover{
    background:#00bfff;
}

.categories button.active{
    background:#0ea5ff;
}

/* cards */
.grid{
    padding:30px 10%;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:30px;
}

.card{
    background:rgba(17,25,45,.95);
    border-radius:22px;
    overflow:hidden;
    transition:.35s;
    cursor:pointer;
    box-shadow:0 15px 40px rgba(0,0,0,.3);
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.card:hover{
    transform:translateY(-8px);
}

.cover{
    height:220px;
    background:linear-gradient(135deg,#111827,#1a2238);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:70px;
    overflow:hidden;
    position: relative;
}

/* Video Player Styles */
.video-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.play-overlay {
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.video-container:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 0, 0, 1) !important;
}

.card:hover .video-container img {
    opacity: 0.7;
}

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #00ffaa;
    color: #070b17;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 255, 170, 0.4);
    animation: pulse-mini 1.5s infinite;
}

.trending-days-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffcc00;
    color: #070b17;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.4);
}

/* Breaking News Section */
.breaking-container {
    padding: 20px;
    margin: 20px auto;
    max-width: 1400px;
    background: rgba(255, 61, 0, 0.05);
    border-radius: 24px;
    border: 1px solid rgba(255, 61, 0, 0.2);
}

.breaking-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.live-tag {
    background: #ff3d00;
    color: white;
    padding: 6px 15px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1px;
    animation: pulse-mini 1s infinite;
}

.breaking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.breaking-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 61, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.breaking-card .cover {
    height: 150px;
    position: relative;
}

.breaking-card .content {
    padding: 15px;
}

.breaking-card h3 {
    font-size: 16px;
    margin: 8px 0;
    line-height: 1.4;
}

.breaking-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff3d00;
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
}

@keyframes pulse-mini {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cover img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.content{
    padding:25px;
}

.tag{
    display:inline-block;
    background:#0099ff;
    padding:7px 15px;
    border-radius:20px;
    font-size:13px;
    margin-bottom:15px;
}

.content h2{
    font-size:27px;
    margin-bottom:10px;
}

.summary{
    opacity:.8;
    line-height:1.6;
    margin-bottom:20px;
}

.stats{
    display:flex;
    justify-content:space-between;
    font-size:14px;
    opacity:.8;
}

.actions{
    display:flex;
    justify-content:space-between;
    margin-top:15px;
}

.engage-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.engage-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.engage-btn.liked {
    color: #ff0066;
    border-color: #ff0066;
    background: rgba(255, 0, 102, 0.1);
}

.join-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #0ea5ff, #00ffaa);
    border: none;
    color: #070b17;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
    margin-top: 15px;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(14, 165, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 255, 0); }
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 165, 255, 0.3);
    filter: brightness(1.1);
    animation: none;
}

/* Hot Discussion Spotlight Refined */
.hot-discussion {
    width: 90%;
    margin: 0 auto 40px auto;
    background: linear-gradient(145deg, rgba(14, 165, 255, 0.1), rgba(0, 255, 170, 0.05));
    border: 1px solid rgba(14, 165, 255, 0.2);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.hot-label {
    background: #ffcc00;
    color: #070b17;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
    letter-spacing: 1px;
}

.hot-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.hot-image {
    width: 320px;
    height: 200px;
    border-radius: 24px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hot-platform-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    color: white;
}

.hot-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.verified-pulse {
    font-size: 11px;
    font-weight: 800;
    color: #00ffaa;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-pulse::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #00ffaa;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

.hot-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #0ea5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hot-summary {
    opacity: 0.8;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.real-stats-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.03);
    padding: 15px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.real-stat {
    display: flex;
    flex-direction: column;
}

.stat-icon { font-size: 18px; margin-bottom: 4px; }
.stat-value { font-size: 20px; font-weight: 900; color: #fff; }
.stat-label { font-size: 11px; font-weight: 700; opacity: 0.5; text-transform: uppercase; }

.hot-stats-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.hot-join-btn {
    background: linear-gradient(90deg, #0ea5ff, #00c3ff);
    color: white;
    padding: 16px 35px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.hot-join-btn:hover {
    background: #00c3ff;
    transform: scale(1.05);
}

@media(max-width: 768px) {
    .hot-flex {
        flex-direction: column;
        text-align: center;
    }
    .hot-image {
        width: 100%;
        height: 180px;
    }
    .hot-stats {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
}

.hot-chat-preview {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0,0,0,0.2);
    padding: 12px;
    border-radius: 12px;
}

.hot-chat-msg {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    animation: slideInChat 0.5s ease-out;
}

.hot-chat-msg .user {
    font-weight: 800;
    color: #0ea5ff;
}

.hot-chat-msg .text {
    opacity: 0.8;
}

@keyframes slideInChat {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Creator Badge & Create Discussion */
.creator-badge {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: #070b17;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    margin-left: 8px;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
}

.create-discussion-btn {
    background: linear-gradient(45deg, #ffd700, #ffae00);
    color: #070b17;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    margin: 20px auto;
}

.create-discussion-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #111827;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #ffd700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    background: #1a2238;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    color: white;
    outline: none;
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #ffd700;
    color: #070b17;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.buy-badge-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border: 1px solid #ffd700;
    padding: 20px;
    border-radius: 18px;
    text-align: center;
    margin-bottom: 30px;
}

.user-discussion-tag {
    background: linear-gradient(45deg, #ffd700, #ff8c00) !important;
    color: #070b17 !important;
    font-weight: 900 !important;
}

/* Scanner Status */
.scanner-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 195, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 195, 255, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #00c3ff;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    transition: 0.3s;
}

.scanner-status.active {
    background: rgba(0, 255, 170, 0.2);
    border-color: #00ffaa;
    color: #00ffaa;
}

.scan-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
}

.scan-dot.pulse {
    animation: pulse 1s infinite;
}

/* charts */
.trending-charts {
    padding: 30px 10%;
}

.chart-container {
    background: rgba(17, 25, 45, 0.95);
    border-radius: 22px;
    padding: 25px;
    margin-top: 20px;
}
.chart-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.bar-label { width: 120px; font-size: 14px; }
.bar-bg {
    flex-grow: 1;
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5ff, #00ffaa);
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

/* notifications */
.notif-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff0066;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 800;
}

.notif-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    width: 320px;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.notif-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-weight: 800;
    font-size: 14px;
    color: #0ea5ff;
}

.notif-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    transition: 0.2s;
}

.notif-item:hover {
    background: rgba(255,255,255,0.05);
}

.notif-item.unread {
    background: rgba(14, 165, 255, 0.05);
    border-left: 3px solid #0ea5ff;
}

.notif-item:last-child {
    border-bottom: none;
}

/* polls */
.poll-box {
    background: #1a2238;
    padding: 20px;
    border-radius: 15px;
    margin-top: 25px;
}
.poll-option {
    background: rgba(255,255,255,0.05);
    padding: 12px 15px;
    border-radius: 12px;
    margin-top: 12px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.poll-option:hover:not(.voted) {
    background: rgba(14, 165, 255, 0.15);
    border-color: rgba(14, 165, 255, 0.4);
    transform: translateX(5px);
}

.poll-option.voted {
    cursor: default;
    background: rgba(255,255,255,0.03);
}

.poll-option.selected {
    border-color: #0ea5ff;
    background: rgba(14, 165, 255, 0.1);
}

.poll-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(14, 165, 255, 0.1);
    z-index: 0;
    transition: width 1s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.poll-option span {
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.poll-option .percent {
    font-weight: 800;
    color: #0ea5ff;
}

/* infinite scroll loader */
#loader {
    text-align: center;
    padding: 40px;
    display: none;
}

/* mobile */
@media(max-width:900px){
    nav{
        padding:18px;
        flex-wrap:wrap;
    }
    .menu{
        display:none;
    }
    .search{
        width:100%;
        margin-top:15px;
    }
    .hero h1{
        font-size:42px;
    }
}