body.hashtags-page {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #090b10;
    color: #f3f4f6;
}

.hashtags-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(12, 16, 24, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hashtags-header-title {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.back-btn,
.home-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.hashtags-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px;
    display: grid;
    gap: 20px;
}

.hashtag-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(29, 78, 216, 0.12));
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.hashtag-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.22);
    color: #dbeafe;
}

.hashtag-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.hashtag-count strong {
    font-size: 20px;
}

.hashtag-count span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.hashtag-section h2 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

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

.video-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.video-thumb {
    width: 100%;
    aspect-ratio: 9 / 14;
    object-fit: cover;
    background: #111827;
}

.video-card-body {
    padding: 10px;
}

.video-card-title {
    font-size: 13px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-meta,
.video-card-stats {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hashtag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cloud-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #dbeafe;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.15);
    font-size: 13px;
    font-weight: 600;
}

.cloud-tag small {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.empty-state,
.hashtags-error {
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

.hashtags-error {
    display: flex;
    align-items: center;
    gap: 10px;
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.12);
}

@media (max-width: 768px) {
    .hashtags-main {
        padding: 12px;
    }

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