/**
 * Hydros OS - Weather, Paint Studio, World Clock, Compass & HydroTube Videos
 */

/* ========================================================
   NEW APPS: WEATHER, PAINT, CLOCK, COMPASS
   ======================================================== */

/* 1. WEATHER APP */
#weatherApp {
    background: linear-gradient(180deg, #0b1e36 0%, #0a1128 100%);
    color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.weather-canvas-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

.weather-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 16px 40px;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.weather-city-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
}

.weather-city-pills::-webkit-scrollbar {
    display: none;
}

.weather-city-pill {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.weather-city-pill.active {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.weather-hero {
    text-align: center;
    padding: 16px 0 20px;
}

.weather-city-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.weather-main-temp {
    font-size: 68px;
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1;
    margin: 4px 0;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.weather-condition-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.weather-high-low {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
}

.weather-update-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 14px;
    margin-top: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.weather-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34c759;
    box-shadow: 0 0 8px #34c759;
    animation: pulseWeatherDot 2s infinite ease-in-out;
}

@keyframes pulseWeatherDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.8);
    }
}

.weather-refresh-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0 2px;
    font-size: 11px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.25s ease;
}

.weather-refresh-btn:hover {
    color: #38bdf8;
}

.weather-refresh-btn.spinning i {
    animation: weatherSpin 0.75s linear infinite;
}

@keyframes weatherSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.weather-glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 14px;
}

.weather-card-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-hourly-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.weather-hourly-list::-webkit-scrollbar {
    display: none;
}

.weather-hourly-list:active,
.weather-hourly-list.is-dragging {
    cursor: grabbing;
}

.weather-hourly-list * {
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.weather-hour-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 44px;
    font-size: 12px;
}

.weather-hour-item i {
    font-size: 17px;
    color: #38bdf8;
}

.weather-daily-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.weather-daily-row:last-child {
    border-bottom: none;
}

.weather-day-label {
    width: 48px;
    font-weight: 600;
}

.weather-bar-container {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin: 0 12px;
    position: relative;
    overflow: hidden;
}

.weather-bar-fill {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #38bdf8, #facc15, #f97316);
}

.weather-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.weather-metric-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px;
}

.weather-metric-val {
    font-size: 22px;
    font-weight: 700;
    margin: 4px 0 2px;
}

.weather-metric-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* 2. PAINT STUDIO */
#paintApp {
    background: #121214;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    touch-action: none;
}

.paint-top-bar {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
}

.paint-canvas-area {
    flex: 1;
    position: relative;
    background: #ffffff;
    overflow: hidden;
    touch-action: none;
    cursor: crosshair;
}

#paintCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.paint-dock {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 28, 30, 0.88);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    border-radius: 28px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
    max-width: calc(100% - 24px);
}

.paint-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.paint-tool-btn.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.paint-colors {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.paint-color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.paint-color-dot.active {
    transform: scale(1.2);
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.paint-save-btn {
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.paint-save-btn:active {
    transform: scale(0.95);
}

/* 3. WORLD CLOCK & TIMER APP */
#clockApp {
    background: #000000;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.clock-segmented-control {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3px;
    margin: 10px 16px 8px;
}

.clock-segment-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 0;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clock-segment-btn.active {
    background: #636366;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.clock-view-tab {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px 30px;
    display: none;
}

.clock-view-tab.active {
    display: block;
}

.world-clock-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.world-clock-card:last-child {
    border-bottom: none;
}

.world-clock-city {
    font-size: 22px;
    font-weight: 600;
}

.world-clock-diff {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.world-clock-time {
    font-size: 32px;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
}

.world-clock-ampm {
    font-size: 14px;
    font-weight: 400;
    margin-left: 2px;
}

/* Timer View */
.timer-view-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px 0;
}

.timer-circle-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 10px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.timer-time-display {
    position: absolute;
    font-size: 44px;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}

.timer-presets-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.timer-preset-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.timer-preset-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.timer-actions-row {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.timer-circle-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.timer-circle-btn.start {
    background: rgba(52, 199, 89, 0.25);
    color: #34c759;
    border: 2px solid #34c759;
}

.timer-circle-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* 4. COMPASS APP */
#compassApp {
    background: #000000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.compass-dial-wrap {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 20px auto 28px;
    cursor: grab;
}

.compass-dial-wrap:active {
    cursor: grabbing;
}

#compassCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.compass-header {
    text-align: center;
    margin-bottom: 6px;
}

.compass-heading-num {
    font-size: 54px;
    font-weight: 200;
    letter-spacing: -1.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.compass-cardinal-dir {
    font-size: 20px;
    font-weight: 600;
    color: #ef4444;
    margin-left: 4px;
}

.compass-sub-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.5;
    margin-top: 6px;
}

.battery-percent-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: currentColor;
    display: inline-flex;
    align-items: center;
    user-select: none;
}

/* 5. VIDEOS APP (HydroTube) */
.videos-window {
    padding-top: calc(50px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 10px)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: #0a0a0e !important;
    color: #f1f1f5 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.videos-browse-view,
.videos-theater-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.videos-header {
    height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(12, 12, 18, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    z-index: 10;
}

.videos-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.videos-logo-badge {
    width: 30px;
    height: 22px;
    background: linear-gradient(135deg, #ff0033, #cc0029);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    box-shadow: 0 0 14px rgba(255, 0, 51, 0.55);
}

.videos-logo-badge i {
    margin-left: 2px;
}

.videos-brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.videos-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.videos-header-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.videos-header-btn:active {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(0.92);
}

.videos-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.videos-search-bar-wrap {
    padding: 8px 16px 10px 16px;
    background: rgba(12, 12, 18, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    animation: videosSlideDown 0.2s ease-out;
}

@keyframes videosSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.videos-search-input-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 6px 14px;
    color: #ffffff;
}

.videos-search-input-box i {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
}

.videos-search-input-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13px;
}

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

.videos-search-clear {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
}

.videos-categories-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: rgba(12, 12, 18, 0.95);
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.videos-categories-bar::-webkit-scrollbar {
    display: none;
}

.videos-category-chip {
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.videos-category-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
}

.videos-category-chip.active {
    background: #ffffff;
    color: #0b0b10;
    font-weight: 700;
    border-color: #ffffff;
    box-shadow: 0 2px 14px rgba(255, 255, 255, 0.35);
}

.videos-scroll-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px 90px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Hero Featured Card */
.videos-hero-card {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(32, 22, 28, 0.95), rgba(16, 16, 22, 0.98));
    border: 1.5px solid rgba(255, 0, 51, 0.4);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 28px rgba(255, 0, 51, 0.2);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s;
}

.videos-hero-card:active {
    transform: scale(0.985);
}

.videos-hero-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
}

.videos-hero-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.videos-hero-card:hover .videos-hero-thumb {
    transform: scale(1.03);
}

.videos-hero-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 4px 9px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.videos-hero-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 5px;
    letter-spacing: 0.3px;
    z-index: 2;
}

.videos-hero-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
    transition: background 0.2s;
}

.videos-hero-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 0, 51, 0.9);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.2s;
}

.videos-hero-play-btn i {
    margin-left: 3px;
}

.videos-hero-card:active .videos-hero-play-btn {
    transform: scale(0.9);
}

.videos-hero-details {
    padding: 14px 16px;
}

.videos-hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.videos-hero-tag {
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.videos-hero-stat {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}

.videos-hero-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.videos-hero-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.videos-hero-channel-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.videos-channel-badge-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #ffffff;
}

.videos-channel-name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.videos-verified-badge {
    color: #38bdf8;
    font-size: 11px;
}

/* Section Header */
.videos-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.videos-section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #ffffff;
}

.videos-section-count {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
}

/* Video Cards Tile Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
}

@media (min-width: 560px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
}

.video-card {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.22s ease,
        box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.22s ease;
}

.video-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.18);
    transform: translateY(-3px);
}

.video-card:active {
    transform: scale(0.975);
    background: rgba(255, 255, 255, 0.1);
}

.video-card:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #090910;
    overflow: hidden;
}

.video-thumb-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.video-card:hover .video-thumb {
    transform: scale(1.06);
    filter: brightness(1.08);
}

/* Play Badge Overlay on Tile Thumbnail */
.video-tile-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}

.video-tile-play-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.65), 0 0 12px rgba(255, 255, 255, 0.35);
    transform: scale(0.8);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card:hover .video-tile-play-overlay {
    opacity: 1;
}

.video-card:hover .video-tile-play-badge {
    transform: scale(1.08);
}

.video-tile-badge-top {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    pointer-events: none;
}

.video-tile-hd-pill {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #38bdf8;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 2px 6px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.video-duration-pill {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    letter-spacing: 0.3px;
    z-index: 2;
}

.video-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 9px 10px 11px;
    flex: 1;
}

.video-card-title {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.video-card:hover .video-card-title {
    color: #38bdf8;
}

.video-tile-channel-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-top: 1px;
}

.video-card-avatar {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 9px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.video-tile-channel-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.video-verified-check {
    font-size: 9.5px;
    color: #38bdf8;
    flex-shrink: 0;
}

.video-card-meta {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.video-meta-dot {
    opacity: 0.45;
    font-size: 8px;
}

/* Theater / Watch View */
.videos-theater-nav {
    height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background: rgba(12, 12, 18, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    z-index: 10;
}

.videos-theater-back-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.videos-theater-back-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
}

.videos-theater-back-btn:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.95);
}

.videos-theater-brand {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.videos-player-stage {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
    user-select: none;
}

.videos-main-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    display: block;
    cursor: pointer;
}

/* Persistent Red Progress Bar at the Bottom of Video When Watching (YouTube Style) */
.video-bottom-red-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.22);
    z-index: 22;
    cursor: pointer;
    overflow: hidden;
    transition: height 0.15s ease;
}

.videos-player-stage:hover .video-bottom-red-bar {
    height: 5.5px;
}

.video-bottom-red-fill {
    height: 100%;
    width: 0%;
    background: #ff0033;
    box-shadow: 0 0 8px rgba(255, 0, 51, 0.95);
    transition: width 0.08s linear;
}

/* Persistent Time Display at Bottom of Video (Shows how far into video & total duration) */
.video-bottom-persistent-info {
    position: absolute;
    bottom: 10px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
    z-index: 23;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: opacity 0.25s ease;
}

/* When the full pause screen / HUD overlay is visible, hide standalone persistent badge */
.video-hud-overlay.show-hud~.video-bottom-persistent-info,
.videos-player-stage:has(.video-hud-overlay.show-hud) .video-bottom-persistent-info {
    opacity: 0;
    pointer-events: none;
}

/* On-Screen HUD Overlay (Appears on tap/hover/pause, auto-hides smoothly when playing) */
.video-hud-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px 10px 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.12) 32%, rgba(0, 0, 0, 0.18) 68%, rgba(0, 0, 0, 0.92) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 25;
    user-select: none;
}

.video-hud-overlay.show-hud {
    opacity: 1;
    pointer-events: auto;
}

/* Top HUD Bar */
.hud-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: auto;
}

.hud-video-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.2px;
    flex: 1;
}

.hud-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

/* Center HUD Controls (Rewind 10s, Glowing Play/Pause, Fast Forward 10s) */
.hud-center-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    pointer-events: auto;
    margin: auto 0;
}

.hud-skip-circle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.hud-skip-circle-btn i {
    font-size: 15px;
}

.hud-skip-circle-btn .hud-btn-label {
    font-size: 9px;
    font-weight: 800;
    margin-top: -2px;
    letter-spacing: -0.2px;
}

.hud-skip-circle-btn:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hud-skip-circle-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.25);
}

.hud-play-circle-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0033, #dc2626);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(255, 0, 51, 0.7), 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s;
}

.hud-play-circle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 35px rgba(255, 0, 51, 0.9), 0 4px 18px rgba(0, 0, 0, 0.6);
}

.hud-play-circle-btn:active {
    transform: scale(0.9);
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.9);
}

/* Bottom HUD Controls & Time Bar */
.hud-bottom-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: auto;
}

/* Interactive Red Timeline Bar (Where you can see video progress & skip ahead) */
.hud-timeline-container {
    width: 100%;
    height: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    touch-action: none;
}

.hud-timeline-rail {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 3px;
    position: relative;
    transition: height 0.16s ease;
}

.hud-timeline-container:hover .hud-timeline-rail,
.hud-timeline-container.scrubbing .hud-timeline-rail {
    height: 8px;
}

.hud-timeline-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ff0033;
    border-radius: 3px;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.95);
    transition: width 0.08s linear;
}

.hud-timeline-thumb {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid #ff0033;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 0, 51, 0.85);
    pointer-events: none;
    transition: left 0.08s linear, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-timeline-container:hover .hud-timeline-thumb,
.hud-timeline-container.scrubbing .hud-timeline-thumb {
    transform: translate(-50%, -50%) scale(1.25);
}

.hud-timeline-container.scrubbing .hud-timeline-played,
.hud-timeline-container.scrubbing .hud-timeline-thumb {
    transition: none !important;
}

/* Controls Row Below Time Bar */
.hud-controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-mini-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, color 0.15s;
}

.hud-mini-btn:hover {
    color: #ff0033;
}

.hud-mini-btn:active {
    transform: scale(0.9);
}

/* Duration & Current Time Display */
.hud-time-display {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, monospace;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
}

.hud-time-slash {
    color: rgba(255, 255, 255, 0.45);
    margin: 0 1px;
}

.hud-spacer {
    flex: 1;
}

/* Skip Ahead Button */
.hud-skip-pill {
    background: rgba(255, 0, 51, 0.22);
    border: 1px solid rgba(255, 0, 51, 0.6);
    color: #ffffff;
    border-radius: 14px;
    padding: 4px 11px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.3);
}

.hud-skip-pill:hover {
    background: rgba(255, 0, 51, 0.55);
    border-color: #ff0033;
    box-shadow: 0 0 16px rgba(255, 0, 51, 0.6);
    transform: translateY(-1px);
}

.hud-skip-pill:active {
    transform: scale(0.94);
}

/* Center Play / Pause Indicator Pulse */
.hud-center-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    z-index: 28;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-center-pulse.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Double Tap Skip Ripple Indicators */
.hud-tap-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    pointer-events: none;
    opacity: 0;
    z-index: 35;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hud-tap-indicator.left {
    left: 14%;
}

.hud-tap-indicator.right {
    right: 14%;
}

.hud-tap-indicator.active {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Fullscreen Theater State */
.videos-player-stage.expanded-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: #000000 !important;
}

/* Floating Emoji Burst Layer */
.videos-emoji-burst-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 20;
}

.floating-burst-emoji {
    position: absolute;
    font-size: 32px;
    user-select: none;
    animation: floatEmojiUp 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes floatEmojiUp {
    0% {
        transform: translate(-50%, 0) scale(0.6) rotate(0deg);
        opacity: 1;
    }

    70% {
        opacity: 0.95;
    }

    100% {
        transform: translate(calc(-50% + var(--dx, 0px)), -150px) scale(1.4) rotate(var(--rot, 0deg));
        opacity: 0;
    }
}

.videos-watch-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px 90px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.videos-watch-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.videos-watch-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0;
}

.videos-watch-stats {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.videos-category-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
    color: #ffffff;
    font-weight: 600;
}

.videos-actions-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.videos-actions-bar::-webkit-scrollbar {
    display: none;
}

.videos-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.videos-action-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.15);
}

.videos-action-btn.active {
    background: #ffffff;
    color: #0f0f14;
    border-color: #ffffff;
}

/* Try Not to Laugh Challenge Widget */
.videos-tntl-widget {
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.15));
    border: 1.5px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.25);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s;
}

.videos-tntl-widget.shake-laugh {
    animation: tntlShake 0.4s ease-in-out;
}

@keyframes tntlShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px) rotate(-1deg);
    }

    40% {
        transform: translateX(6px) rotate(1deg);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.tntl-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tntl-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tntl-flame {
    font-size: 16px;
}

.tntl-title {
    font-size: 13px;
    font-weight: 800;
    color: #f87171;
    letter-spacing: 0.3px;
}

.tntl-live-pill {
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    letter-spacing: 0.4px;
}

.tntl-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.tntl-body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tntl-counter-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 95px;
    text-align: center;
}

.tntl-count-num {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: #ef4444;
    font-family: -apple-system, monospace;
}

.tntl-count-label {
    font-size: 9px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.4px;
    margin-top: 3px;
}

.tntl-rank-badge {
    font-size: 10px;
    font-weight: 700;
    color: #f59e0b;
    margin-top: 5px;
    white-space: nowrap;
}

.tntl-button-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tntl-laugh-btn {
    background: linear-gradient(135deg, #ef4444, #f97316);
    border: none;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
    transition: transform 0.1s, box-shadow 0.1s;
}

.tntl-laugh-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
}

.tntl-btn-emoji {
    font-size: 18px;
}

.tntl-btn-text {
    font-size: 13px;
    letter-spacing: 0.2px;
}

.tntl-btn-sub {
    background: rgba(0, 0, 0, 0.25);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.tntl-sub-actions {
    display: flex;
    gap: 6px;
}

.tntl-sub-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.tntl-sub-btn:active {
    background: rgba(255, 255, 255, 0.18);
}

/* Channel Bar */
.videos-channel-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.videos-channel-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    flex-shrink: 0;
}

.videos-channel-text {
    flex: 1;
    min-width: 0;
}

.videos-channel-name-verified {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.videos-channel-subs {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.videos-subscribe-btn {
    background: #ffffff;
    border: none;
    color: #0f0f14;
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.videos-subscribe-btn.subscribed {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Description Box */
.videos-description-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.videos-desc-text {
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.8);
}

.videos-chapters-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
}

.video-chapter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.08);
    width: fit-content;
}

.video-chapter-pill:active {
    background: rgba(56, 189, 248, 0.2);
}

/* Comments Section */
.videos-comments-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}

.videos-comments-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.videos-comments-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.videos-comments-count {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.videos-add-comment-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 4px 6px 4px 12px;
}

.videos-user-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #ffffff;
    flex-shrink: 0;
}

.videos-comment-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.videos-comment-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 12px;
}

.videos-comment-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.videos-comment-send-btn {
    background: #ff0033;
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
}

.videos-comment-send-btn:active {
    transform: scale(0.92);
}

.videos-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-comment-item {
    display: flex;
    gap: 10px;
    animation: commentFadeIn 0.3s ease-out;
}

@keyframes commentFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-comment-avatar {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.video-comment-content {
    flex: 1;
    min-width: 0;
}

.video-comment-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.video-comment-user {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.video-comment-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.video-comment-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.35;
}

/* Up Next Section */
.videos-up-next-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.videos-up-next-header {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.videos-up-next-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 580px) {
    .videos-up-next-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}
