/* ============================================================
   🟢 PART 1: GLOBAL RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0b0b0b;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    text-align: center;
    padding-bottom: 70px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 12px 20px;
}

/* ============================================================
   IMAGE SHARPNESS
   ============================================================ */
img,
.thumb-img,
.category-thumb,
.trending-thumb {
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    filter: contrast(1.08) saturate(1.15) brightness(1.02);
}

/* ============================================================
   🟡 PART 2: COMMON STYLES (Index, List, Video)
   ============================================================ */

/* --- Blinking Title --- */
.title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 8px 0;
    padding: 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid;
    text-shadow: 0 0 10px currentColor;
    animation: blinkColors 2s infinite alternate, pulseLight 1.5s infinite alternate;
}

@keyframes blinkColors {
    0% { color: #ff2d55; border-color: #ff2d55; box-shadow: 0 0 20px #ff2d55; }
    14% { color: #ff5500; border-color: #ff5500; box-shadow: 0 0 20px #ff5500; }
    28% { color: #ffaa00; border-color: #ffaa00; box-shadow: 0 0 20px #ffaa00; }
    42% { color: #ffff00; border-color: #ffff00; box-shadow: 0 0 20px #ffff00; }
    57% { color: #00ff88; border-color: #00ff88; box-shadow: 0 0 20px #00ff88; }
    71% { color: #0088ff; border-color: #0088ff; box-shadow: 0 0 20px #0088ff; }
    85% { color: #aa55ff; border-color: #aa55ff; box-shadow: 0 0 20px #aa55ff; }
    100% { color: #ff2d55; border-color: #ff2d55; box-shadow: 0 0 20px #ff2d55; }
}

@keyframes pulseLight {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* --- Social Icons --- */
.social-text {
    font-size: 10px;
    color: #ffcc88;
    margin: 5px 0 2px;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 2px 0 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #222;
    color: white;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
}

.social-icon:active {
    transform: translateY(2px);
}

.social-icon.instagram {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon.telegram {
    background: #0088cc;
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* --- Search Bar --- */
.sticky-search {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0b0b0b;
    padding: 5px 0 8px;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 8px 15px 8px 40px;
    font-size: 13px;
    border-radius: 30px;
    border: 2px solid #ff3300;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23ff9900" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>');
    background-repeat: no-repeat;
    background-position: 15px center;
}

.search-box:focus {
    box-shadow: 0 0 12px rgba(255, 51, 0, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111;
    border-radius: 12px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 10px 12px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    text-align: left;
}

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

.search-video-id {
    color: #ff9900;
    font-weight: bold;
    font-size: 12px;
}

/* ============================================================
   🔵 PART 3: INDEX.HTML EXCLUSIVE STYLES
   ============================================================ */

/* --- Tabs --- */
.tabs-wrapper {
    margin: 10px 0 5px;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 8px 20px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.tab-btn.active {
    color: #ffcc00;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #ff3300, #ff9900);
    border-radius: 2px;
}

.tabs-underline {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff6600, #ff3300, #ff6600, transparent);
    margin-top: 2px;
    width: 100%;
}

/* --- Stats Bar --- */
.stats-bar {
    background: rgba(255, 51, 0, 0.08);
    border-radius: 30px;
    padding: 5px 12px;
    margin: 6px 0 12px;
    display: inline-flex;
    gap: 18px;
}

.stat-item {
    text-align: center;
    padding: 2px 8px;
}

.stat-number {
    font-size: 16px;
    font-weight: bold;
    color: #ff9900;
}

.stat-label {
    font-size: 10px;
    color: #aaa;
    margin-top: 1px;
}

/* --- Panels --- */
.panel {
    display: none;
    animation: fadeIn 0.2s;
}

.panel.active-panel {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Categories Grid (Index) --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 10px 0;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #333;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.category-card:hover {
    border-color: #ff3300;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -8px rgba(255, 51, 0, 0.4);
}

.category-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.category-name {
    padding: 10px;
    font-size: 15px;
    font-weight: bold;
    color: #ffcc00;
    background: rgba(0, 0, 0, 0.8);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.video-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 51, 0, 0.9);
    color: white;
    padding: 2px 7px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
}

/* --- Trending Grid (Index) --- */
.trending-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 10px 0;
}

@media (min-width: 768px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.trending-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #444;
    cursor: pointer;
    transition: 0.2s;
}

.trending-item:hover {
    border-color: #ff6600;
    transform: translateY(-3px);
}

.trending-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.trending-title {
    padding: 7px;
    font-size: 12px;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.native-trending-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #444;
}

.native-thumb {
    width: 100%;
    background: #1a1a1a;
}

.native-title {
    padding: 7px;
    font-size: 11px;
    color: #ffaa44;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
}

/* --- Latest Grid (Index) --- */
.latest-grid {
    margin: 10px 0;
}

.latest-video-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 768px) {
    .latest-video-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.latest-card {
    background: rgba(20, 20, 20, 0.9);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}

.latest-card:hover {
    border-color: #ff6600;
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(255, 68, 0, 0.3);
}

/* ============================================================
   🟢 THUMB CONTAINER (Single Definition - Merged)
   ============================================================ */
.thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
    border-radius: 10px;
}

.thumb-container img,
.thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s, transform 0.3s ease;
}

.thumb-container:hover img {
    transform: scale(1.05);
}

.preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    pointer-events: none;
}

/* ============================================================
   🟢 DURATION (Single Definition - Merged)
   ============================================================ */
.duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: bold;
    z-index: 2;
}

/* --- Latest Info --- */
.latest-info {
    padding: 10px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    height: auto;
}

.latest-id {
    font-weight: bold;
    color: #ffaa44;
    font-size: 13px;
    margin-bottom: 4px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ============================================================
   🟢 LATEST TITLE - Helvetica Neue Black + White Outline
   ============================================================ */
.latest-title {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    font-size: 14px;
    font-style: italic;
    line-height: 1.3;
    
    /* Black inside, white outline */
    color: #000;
    -webkit-text-fill-color: #000;
    -webkit-text-stroke: 1.5px #fff;
    
    /* Clean look - no shadow/filter */
    
    /* Word wrapping */
    display: block;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

/* ============================================================
   🟢 BUBBLE WORD SYSTEM (Replaces .bubble-letter)
   ============================================================ */
.bubble-word {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.25em;
}

.bubble-letter {
    display: inline;
}

/* --- Ad Inline --- */
.ad-inline {
    background: transparent;
    border-radius: 8px;
    margin: 5px 0;
    text-align: center;
}

/* --- Pagination (Index) --- */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 15px 0 10px;
    flex-wrap: wrap;
}

.pagination-btn,
.page-num {
    background: #ff3300;
    border: none;
    color: white;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.page-num {
    background: #333;
    min-width: 36px;
    text-align: center;
}

.page-num.active-page {
    background: #ff6600;
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.5);
}

.pagination-btn:disabled,
.page-num.disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-btn:hover:not(:disabled),
.page-num:hover:not(.active-page) {
    background: #ff6600;
    transform: scale(1.02);
}

.ellipsis {
    color: #aaa;
    padding: 0 4px;
}

/* --- Subtitle Badge --- */
.subtitle-badge {
    background: linear-gradient(90deg, #ff3300, #ff9900);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    margin: 4px 0 10px 0;
    box-shadow: 0 0 20px rgba(255, 51, 0, 0.3);
    animation: pulseLight 1.5s infinite alternate;
}

/* ============================================================
   🟣 PART 4: LIST.HTML EXCLUSIVE STYLES
   ============================================================ */

/* --- Flaming Wrapper --- */
.wrapper {
    margin: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 3px solid transparent;
    background: linear-gradient(#000, #000) padding-box,
        linear-gradient(45deg, #ff0033, #ff9900, #ff0033) border-box;
    animation: flame 3s linear infinite;
    max-width: 100%;
    box-sizing: border-box;
}

@keyframes flame {
    0% { filter: hue-rotate(0); }
    100% { filter: hue-rotate(360deg); }
}

/* --- Category Info --- */
.category-info {
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 51, 0, 0.1);
    border-radius: 8px;
    font-size: 16px;
}

.category-heading {
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
    margin: 4px 0 8px 0;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}

.back-link,
.back-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.back-link:hover,
.back-btn:hover {
    background: #ff3300;
    transform: translateY(2px);
}

/* --- Grid (List) --- */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.grid a {
    text-decoration: none;
    display: block;
}

/* --- Video Title (List) - Helvetica Neue + Flex Wrap --- */
.video-title {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    font-size: 13px;
    
    color: #000;
    -webkit-text-fill-color: #000;
    -webkit-text-stroke: 1px #fff;
    
    margin-top: 5px;
    min-height: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    line-height: 1.3;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.video-title.center {
    justify-content: center;
    text-align: center;
}

.video-title.left {
    justify-content: flex-start;
    text-align: left;
    padding-left: 5px;
}

.vid-id {
    color: #ff9900;
    margin-right: 3px;
    font-weight: bold;
}

/* --- Video Categories --- */
.video-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.category-tag {
    background: linear-gradient(135deg, #ff3300, #ff6600);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(255, 51, 0, 0.3);
    letter-spacing: 0.3px;
}

.category-tag:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ff5500, #ff8800);
    box-shadow: 0 4px 12px rgba(255, 51, 0, 0.5);
}

.category-tag a {
    color: #fff;
    text-decoration: none;
    display: block;
}

/* --- Ad Box --- */
.ad-box {
    grid-column: 1 / -1;
    margin: 20px 0;
    padding: 10px;
    background: #111;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.ad-desktop {
    display: none;
}

.ad-mobile {
    display: block;
}

@media (min-width: 768px) {
    .ad-desktop {
        display: block;
    }
    .ad-mobile {
        display: none;
    }
}

/* --- Smart Link --- */
.smart {
    display: block;
    text-align: center;
    margin: 15px 0;
    background: #ff0033;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
}

.smart:hover {
    background: #cc0022;
}

/* --- Pagination (List) --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0 5px;
    flex-wrap: wrap;
}

.pagination a {
    background: #ff0033;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
}

.pagination span {
    background: #666;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}

/* ============================================================
   🟠 PART 5: VIDEO.HTML EXCLUSIVE STYLES
   ============================================================ */

/* --- Ad Spot --- */
.ad-spot {
    margin: 4px 0 6px 0;
    background: transparent;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Warning Box --- */
.warning-box {
    background: #1f1a0c;
    border-left: 6px solid #ffaa00;
    border-right: 1px solid #ffaa44;
    border-top: 1px solid #ffaa44;
    border-bottom: 1px solid #ffaa44;
    border-radius: 10px;
    padding: 6px 10px;
    margin: 4px 0 6px 0;
    box-shadow: 0 0 12px rgba(255, 170, 0, 0.3);
    text-align: left;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.warning-message {
    font-size: 13px;
    line-height: 1.3;
    color: #ffe6b3;
}

.warning-message:first-child {
    margin-bottom: 4px;
    border-bottom: 1px dashed #ffaa5566;
    padding-bottom: 4px;
}

.warning-message strong,
.warning-message b {
    color: #ffaa44;
}

.warning-emoji {
    font-size: 16px;
    margin-right: 4px;
    display: inline-block;
}

.warning-message i {
    color: #ffbb66;
}

/* --- Double Tap Indicator --- */
.double-tap-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 2px 0 6px 0;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    border: 1px solid #333;
    font-size: 14px;
    color: #ffaa44;
    flex-wrap: wrap;
}

.tap-icon {
    font-size: 18px;
    line-height: 1;
    color: #ff9900;
}

.tap-label {
    font-size: 12px;
    font-weight: bold;
    color: #ddd;
    background: #222;
    padding: 1px 6px;
    border-radius: 10px;
}

.tap-divider {
    color: #555;
    font-size: 14px;
}

/* --- Video Player --- */
.video-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    margin: 6px auto;
}

.video-box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Video Info --- */
.video-info {
    margin: 6px 0;
    font-size: 14px;
    color: #ccc;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: #111;
    padding: 6px 10px;
    border-radius: 10px;
}

.video-id {
    color: #ff9900;
    font-weight: bold;
    background: #1e1e1e;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

/* --- Video Page Title (Big) - Helvetica Neue --- */
.video-title-big {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    font-size: 24px;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 8px;
    padding: 4px 0;
    text-align: center;
    
    color: #000;
    -webkit-text-fill-color: #000;
    -webkit-text-stroke: 2px #fff;
    
    display: block;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

/* --- Video Description --- */
.video-description {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 600;
    color: #e0d6b0;
    line-height: 1.7;
    letter-spacing: 0.3px;
    text-shadow: 0 0 10px rgba(255, 200, 100, 0.05);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #ff9900;
    font-style: italic;
    word-break: normal;
    overflow-wrap: break-word;
}

/* --- Navigation Buttons --- */
.nav-buttons {
    margin: 6px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s;
    display: inline-block;
    border: 1px solid #444;
    box-shadow: 
        0 4px 0 #0a0a0a,
        0 6px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.5px;
}

.nav-btn:hover {
    background: linear-gradient(145deg, #ff3300, #cc2200);
    border-color: #ff6600;
    box-shadow: 
        0 2px 0 #0a0a0a,
        0 8px 16px rgba(255, 51, 0, 0.3);
    transform: translateY(2px);
}

.nav-btn:active {
    transform: translateY(4px);
    box-shadow: 
        0 0px 0 #0a0a0a,
        0 4px 8px rgba(255, 51, 0, 0.2);
}

.back-home-btn {
    background: linear-gradient(145deg, #1a3a6a, #0a1a3a);
    border-color: #4488ff;
    box-shadow: 
        0 4px 0 #051020,
        0 6px 12px rgba(0, 0, 0, 0.4);
}

.back-home-btn:hover {
    background: linear-gradient(145deg, #224488, #112255);
    border-color: #66aaff;
    box-shadow: 
        0 2px 0 #051020,
        0 8px 16px rgba(68, 136, 255, 0.3);
}

/* --- Danger Box / Smartlink --- */
.danger-box {
    margin: 6px auto;
    padding: 4px 10px;
    border-radius: 30px;
    background: #1e0a06;
    border: 1px solid #ff3300;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 14px rgba(255, 60, 0, .5);
}

.danger-text {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
    margin: 2px 0;
}

.danger-btn {
    margin-top: 2px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    background: #ff3300;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.2s;
}

.danger-btn:hover {
    background: #ff5500;
    transform: scale(1.02);
}

/* --- Native Ad --- */
.native-ad-container {
    margin: 8px 0 6px;
    text-align: center;
}

/* ============================================================
   🟢 RELATED VIDEOS - FULLY FIXED
   ============================================================ */

#relatedVideos {
    margin: 10px 0;
}


/* --- Sticky Ad --- */
#sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000000cc;
    backdrop-filter: blur(4px);
    z-index: 9999;
    min-height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #ff6600;
}

.sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #000;
    padding: 6px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* --- Bottom Social --- */
.bottom-social {
    margin: 10px 0 60px 0;
    padding: 8px 0 4px;
    border-top: 1px solid #333;
}

.bottom-social .join-text-small {
    margin-bottom: 4px;
}

/* ============================================================
   🔷 PART 6: NEW FEATURES
   ============================================================ */

/* --- Stats Count Buttons --- */
.stats-count {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 6px 0 10px 0;
    flex-wrap: wrap;
}

.count-item {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    color: #ffcc00;
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: inline-block;
    letter-spacing: 0.5px;
}

/* --- Back Button --- */
.back-btn {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(145deg, #ff3300, #cc2200);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 3px 0 #881800, 0 4px 10px rgba(255, 51, 0, 0.3);
    transition: 0.15s;
    cursor: pointer;
}

.back-btn:hover {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #881800, 0 6px 14px rgba(255, 51, 0, 0.4);
    background: linear-gradient(145deg, #ff4400, #dd2800);
}

.back-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0px 0 #881800, 0 4px 8px rgba(255, 51, 0, 0.2);
}

/* --- More Videos Button --- */
.more-videos-container {
    grid-column: 1 / -1;
    text-align: center;
    margin: 10px 0;
}

.more-videos-btn {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    color: #ffcc00;
    padding: 10px 28px;
    border-radius: 30px;
    border: 1px solid #444;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 0 #0a0a0a, 0 6px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
    letter-spacing: 0.5px;
}

.more-videos-btn:hover {
    transform: translateY(2px);
    background: linear-gradient(145deg, #ff3300, #cc2200);
    border-color: #ff6600;
    box-shadow: 0 2px 0 #0a0a0a, 0 8px 16px rgba(255, 51, 0, 0.3);
}

.max-videos-reached {
    color: #666;
    font-size: 13px;
    letter-spacing: 1px;
}

/* --- Swipe Indicator --- */
.swipe-indicator {
    color: #666;
    font-size: 12px;
    letter-spacing: 3px;
    margin: 4px 0 0px 0;
    opacity: 0.6;
    animation: pulseSwipe 2s ease-in-out infinite;
}

@keyframes pulseSwipe {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

/* ============================================================
   🔴 PART 7: SIDE MENU (Sliding Drawer)
   ============================================================ */

#menuToggleBtn {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    font-size: 24px;
    color: #ff9900;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 12px;
    border-radius: 6px;
    border: 1px solid #ff6600;
    user-select: none;
    line-height: 1.3;
}

#menuOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

#menuDrawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #111;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.8);
    border-right: 2px solid #ff3300;
}

#menuDrawer.open {
    transform: translateX(0);
}

#menuHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px 15px;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
}

.menu-logo {
    font-size: 20px;
    font-weight: bold;
    color: #ff9900;
}

.menu-close {
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    padding: 0 10px;
}

.menu-close:hover {
    color: #ff3300;
}

#menuNav {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

#menuNav li {
    padding: 0;
}

#menuNav .menu-link {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    border-left: 3px solid transparent;
    transition: 0.2s;
}

#menuNav .menu-link:hover {
    background: rgba(255, 51, 0, 0.1);
    color: #fff;
    border-left-color: #ff6600;
}

#menuNav .menu-link.active-link {
    color: #ff9900;
    border-left-color: #ff9900;
    background: rgba(255, 153, 0, 0.05);
}

#menuCategoryHeading {
    color: #ff6600;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    border-top: 1px solid #333;
    margin-top: 10px;
    letter-spacing: 1px;
}

#menuCategoryList {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

#menuCategoryList li {
    padding: 0;
}

#menuCategoryList .menu-link {
    display: block;
    padding: 8px 20px;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

#menuCategoryList .menu-link:hover {
    background: rgba(255, 51, 0, 0.05);
    color: #fff;
    border-left-color: #ff6600;
}

#menuSocial {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #333;
    margin-top: 10px;
    position: relative;
    z-index: 10001;
}

#menuSocial .social-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
}

/* ============================================================
   🟢 PART 8: MEDIA QUERIES (Responsive)
   ============================================================ */

@media (max-width: 640px) {
    .tab-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    .stat-number {
        font-size: 14px;
    }
    .title {
        font-size: 20px;
    }
    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .latest-title {
        font-size: 11px;
    }
    .pagination-btn,
    .page-num {
        padding: 4px 10px;
        font-size: 11px;
        min-width: 30px;
    }
    .video-title-big {
        font-size: 20px;
    }
    .video-description {
        font-size: 14px;
        padding: 6px 10px;
    }
}

@media (max-width: 650px) {
    .warning-message {
        font-size: 12px;
        line-height: 1.3;
    }
    .warning-box {
        padding: 4px 8px;
    }
    .danger-text {
        white-space: normal;
        font-size: 12px;
    }
    .double-tap-indicator {
        font-size: 12px;
        padding: 2px 8px;
    }
    .tap-icon {
        font-size: 16px;
    }
    .tap-label {
        font-size: 10px;
    }
    .nav-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .latest-video-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid {
      
        grid-template-columns: 1fr 1fr;
    }
    .ad-desktop {
        display: block;
    }
    .ad-mobile {
        display: none;
    }
    .sticky {
        display: none;
    }
}

