/* ========================================
   RESPONSIVE CSS
   ======================================== */

/* Hide bottom nav on PC by default */
.bottom-nav {
    display: none;
}

@media (max-width: 1024px) {
    .main-content {
        padding: 0;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        overscroll-behavior-x: none;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
    }

    /* Padding for content pages */
    .main-content.taxonomy-content,
    .main-content.search-results-page {
        padding: 20px;
    }

    /* ===== TOP HEADER ===== */
    .fixed-top-container {
        display: none;
    }

    
    /* ===== VIDEO FEED ===== */
    .video-row {
        position: relative;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        background-color: #000;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        flex-shrink: 0;
    }

    .video-row-inner {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .video-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        min-height: 100vh;
        max-width: 100%;
        border-radius: 0;
        margin: 0;
        padding: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 9 / 16;
        overflow: hidden;
        background-color: #000;
    }
    
    /* Override YouTube video height on tablet */
    .video-container:has(.youtube-player),
    .video-container:has(.youtube-video-98vh) {
        height: 100vh !important;
        max-height: 100vh !important;
        min-height: 100vh !important;
    }
    
    .video-container .youtube-player,
    .youtube-video-98vh {
        height: 100vh !important;
        max-height: 100vh !important;
    }

    .tiktok-video {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* Vertical video on iPad */
    .video-container:has(.tiktok-video[data-aspect-ratio="portrait"]) {
        aspect-ratio: 9 / 16;
    }

    /* Landscape video on iPad */
    .video-container:has(.tiktok-video[data-aspect-ratio="landscape"]) {
        aspect-ratio: 16 / 9;
        max-height: 100vh;
    }

    /* Square video on iPad */
    .video-container:has(.tiktok-video[data-aspect-ratio="square"]) {
        aspect-ratio: 1 / 1;
        max-width: 100%;
        max-height: 100vh;
    }

    .video-details {
        width: 100%;
    }

    /* Move video-sidebar inside video container */
    .video-sidebar {
        position: absolute;
        right: 10px;
        bottom: 80px;
        flex-direction: column;
        gap: 16px;
        margin-top: 0;
        justify-content: flex-end;
        align-items: center;
        z-index: 200 !important;
        pointer-events: auto !important;
    }

    /* Ensure layout items are in column and centered (iPad) */
    .video-sidebar .action-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 201 !important;
        pointer-events: auto !important;
    }
    
    /* Ensure action-icon-wrapper is clickable */
    .video-sidebar .action-icon-wrapper {
        position: relative;
        z-index: 202 !important;
        pointer-events: auto !important;
    }

    .author-avatar-wrapper {
        order: -1;
        margin-bottom: 8px;
    }

    .action-item {
        margin: 0;
        margin-bottom: 12px;
    }

    .action-item .icon-svg,
    .action-item .icon-img {
        width: 44px;
        height: 44px;
        font-size: 20px;
        color: #fff;
    }

    .action-item .icon-svg,
    .action-item .icon-img {
        width: 26px;
        height: 26px;
    }

    .action-item .count {
        font-size: 11px;
    }

    .video-sidebar .action-item .count {
        color: #fff;
        text-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.8),
            0 0 4px rgba(0, 0, 0, 0.6),
            -1px -1px 0 rgba(0, 0, 0, 0.8),
            1px -1px 0 rgba(0, 0, 0, 0.8),
            -1px 1px 0 rgba(0, 0, 0, 0.8),
            1px 1px 0 rgba(0, 0, 0, 0.8);
    }

    /* Remove background of action-icon-wrapper in video sidebar on iPad */
    .video-sidebar .action-icon-wrapper {
        background: transparent;
        width: auto;
        height: auto;
        border-radius: 0;
    }

    /* White icon with shadow for visibility on white video */
    .video-sidebar .action-item .icon-svg,
    .video-sidebar .action-item .icon-img {
        filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
        color: #fff;
    }

    /* Liked/saved icon primary color on iPad */
    .video-sidebar .action-item.liked .icon-svg,
    .video-sidebar .action-item.liked .icon-img {
        filter: brightness(0) saturate(100%) invert(31%) sepia(98%) saturate(2479%) hue-rotate(202deg) brightness(97%) contrast(90%) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
        color: var(--puna-primary);
    }

    .video-sidebar .action-item.saved .icon-svg,
    .video-sidebar .action-item.saved .icon-img {
        filter: brightness(0) saturate(100%) invert(77%) sepia(100%) saturate(1352%) hue-rotate(1deg) brightness(103%) contrast(101%) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
        color: var(--puna-secondary);
    }

    .video-top-controls {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .video-details h4 {
        font-size: 15px;
    }

    .video-caption {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }

    /* ===== VIDEO NAVIGATION ===== */
    /* Hide up/down navigation buttons on iPad */
    .video-nav {
        display: none;
    }

    /* ===== VIDEO WATCH ===== */
    .video-watch-container {
        flex-direction: column;
        padding-bottom: 60px; /* Space for bottom nav */
    }

    .video-watch-player {
        flex: 0 0 100%;
        width: 100%;
        min-height: 50vh;
    }

    .video-player-wrapper {
        height: 50vh;
    }

    .video-watch-info {
        flex: 0 0 100%;
        width: 100%;
        max-height: 50vh;
    }

    .upload-preview-panel {
        position: static;
    }

    body.single .tiktok-app .sidebar.mobile-sidebar {
        display: block;
    }

    /* ===== SEARCH ===== */
    .search-panel {
        left: 72px;
        width: 300px;
    }

    .search-suggestions-sidebar {
        display: none;
    }

    .main-content.search-results-page,
    .main-content.search-results-page:has(.search-suggestions-sidebar) {
        padding-right: 0;
        margin: 0;
    }

    .search-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    /* ===== TAXONOMY ===== */
    .taxonomy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .taxonomy-header {
        padding-top: 0;
    }
}

/* ========================================
   MOBILE (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
    /* ===== MAIN CONTENT ===== */
    .main-content {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        overscroll-behavior-x: none;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
    }

    /* Padding for content pages */
    .main-content.taxonomy-content,
    .main-content.search-results-page {
        padding: 20px;
    }

    /* ===== SIDEBAR ===== */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        z-index: 9998;
        transition: left 0.3s ease;
        width: 70%;
        max-width: 300px;
        flex: none;
        height: 100vh;
        box-shadow: 2px 0 16px rgba(0, 0, 0, 0.1);
        padding: 0;
        background-color: var(--puna-bg);
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .sidebar.collapsed {
        left: 0;
        width: 60%;
        max-width: 300px;
        flex: none;
    }

    .sidebar.collapsed .logo {
        margin: 0 auto;
    }
    
    .sidebar-social {
        margin: 0 auto;
    }
    
    
    .sidebar ul {
        list-style: none;
        padding: 0;
        width: 100%;
        margin: 12px 0;
        overflow: visible;
    }

    .sidebar ul li {
        margin-bottom: 4px;
        position: relative;
        overflow: visible;
    }

    .sidebar ul li a {
        padding: 12px 16px;
        justify-content: flex-start;
        display: flex;
        align-items: center;
        color: var(--puna-text);
        text-decoration: none;
        border-radius: 8px;
        transition: background-color 0.2s, color 0.2s;
        position: relative;
        overflow: visible;
    }

    .sidebar ul li a:hover,
    .sidebar ul li a:active,
    .sidebar ul li a.active {
        transform: none;
        background-color: rgba(0, 0, 0, 0.05);
    }

    .sidebar ul li a:active {
        background-color: rgba(0, 0, 0, 0.08);
    }

    .sidebar-menu .icon-svg,
    .sidebar-menu .icon-img {
        width: 24px;
        height: 24px;
        margin-right: 12px;
        flex-shrink: 0;
    }

    /* ===== SEARCH PANEL (Mobile) ===== */
    /* Hide sidebar off-canvas when search opens */
    body.search-panel-active .sidebar {
        left: -100%;
    }

    /* Hide overlay when search is open and sidebar overlay state was used */
    body.search-panel-active.sidebar-open::before {
        display: none;
    }

    /* Make main content clickable/indicate dismiss */
    body.search-panel-active .main-content {
        cursor: pointer;
    }

    .sidebar .sidebar-footer {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        padding: 0 16px 20px;
        margin-top: auto;
    }

    .sidebar .sidebar-footer p {
        font-size: 11px;
        color: rgba(0, 0, 0, 0.5);
    }

    .sidebar .sidebar-search-trigger {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: calc(100% - 16px);
        padding: 12px 16px;
        margin: 0 8px 12px 8px;
        border-radius: 8px;
        background-color: var(--puna-muted);
        border: 1px solid rgba(0, 0, 0, 0.08);
        cursor: pointer;
        transition: background-color 0.2s ease;
        box-sizing: border-box;
    }

    .sidebar .sidebar-search-trigger:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .sidebar .sidebar-search-trigger .icon-svg,
    .sidebar .sidebar-search-trigger .icon-img {
        width: 20px;
        height: 20px;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .sidebar .sidebar-search-trigger .search-text {
        color: rgba(17, 24, 35, 0.6);
        font-size: 14px;
    }


    .sidebar .search-text {
        opacity: 1;
        width: auto;
        overflow: visible;
        display: inline;
        position: static;
    }

    /* Hide social tooltip on mobile */
    .social-link .social-tooltip {
        display: none;
    }

    /* ===== BOTTOM NAVIGATION BAR (MOBILE) ===== */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        background: var(--puna-bg);
        border-top: 1px solid var(--puna-muted);
        padding: 8px 0;
        z-index: 999;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        height: 60px;
    }

    .bottom-nav-item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        cursor: pointer;
    }

    .bottom-nav-item .icon-svg,
    .bottom-nav-item .icon-img {
        width: 24px;
        height: 24px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        filter: brightness(0) saturate(100%);
        color: var(--puna-text);
    }

    .bottom-nav-item:hover,
    .bottom-nav-item:active {
        transform: scale(1.15);
    }

    .bottom-nav-item:hover .icon-svg,
    .bottom-nav-item:hover .icon-img,
    .bottom-nav-item:active .icon-svg,
    .bottom-nav-item:active .icon-img {
        transform: scale(1.2);
        filter: brightness(0) saturate(100%) invert(31%) sepia(98%) saturate(2479%) hue-rotate(202deg) brightness(97%) contrast(90%);
    }

    .bottom-nav-item.active .icon-svg,
    .bottom-nav-item.active .icon-img {
        filter: brightness(0) saturate(100%) invert(31%) sepia(98%) saturate(2479%) hue-rotate(202deg) brightness(97%) contrast(90%);
    }

    .bottom-nav-search {
        cursor: pointer;
    }

    /* Bottom Nav Logo */
    .bottom-nav-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
        z-index: 10;
    }

    .bottom-nav-logo-link {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        padding: 6px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        position: relative;
        transform: translateY(-15px);
    }

    .bottom-nav-logo-link:active {
        transform: translateY(-15px) scale(0.95);
    }

    .bottom-nav-logo-img {
        width: 50px;
        height: 50px;
        object-fit: contain;
        border-radius: 50%;
        display: block;
    }

    /* Add padding to main content on mobile to account for bottom nav */
    .main-content {
        padding-bottom: 80px;
    }

    /* ===== VIDEO FEED ===== */
    .video-row {
        position: relative;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 0;
        margin: 0;
        width: 100vw;
        height: calc(100vh - 60px);
        min-height: calc(100vh - 60px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
        background-color: #000;
        flex-shrink: 0;
    }

    .video-container {
        width: 100vw;
        height: calc(100vh - 60px);
        max-height: calc(100vh - 60px);
        min-height: calc(100vh - 60px);
        max-width: 100vw;
        border-radius: 0;
        margin: 0;
        padding: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 9 / 16;
        overflow: hidden;
        background-color: #000;
    }
    
    /* Override YouTube video height on mobile */
    .video-container:has(.youtube-player),
    .video-container:has(.youtube-video-98vh) {
        height: calc(100vh - 60px) !important;
        max-height: calc(100vh - 60px) !important;
        min-height: calc(100vh - 60px) !important;
    }
    
    .video-container .youtube-player,
    .youtube-video-98vh {
        height: calc(100vh - 60px) !important;
        max-height: calc(100vh - 60px) !important;
    }
    
    .tiktok-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* Vertical video on mobile */
    .video-container:has(.tiktok-video[data-aspect-ratio="portrait"]) {
        aspect-ratio: 9 / 16;
        max-width: 100vh;
    }
    
    /* Landscape video on mobile */
    .video-container:has(.tiktok-video[data-aspect-ratio="landscape"]) {
        aspect-ratio: 16 / 9;
        max-height: 100vh;
        max-width: 100vh;
    }
    
    /* Square video on mobile */
    .video-container:has(.tiktok-video[data-aspect-ratio="square"]) {
        aspect-ratio: 1 / 1;
        max-width: 100vw;
        max-height: 100vh;
    }

    .video-details {
        padding-right: 30px;
    }

    /* Move video-sidebar inside video container */
    .video-sidebar {
        position: absolute;
        right: 10px;
        bottom: 80px;
        flex-direction: column;
        gap: 12px;
        margin-top: 0;
        justify-content: flex-end;
        align-items: center;
        z-index: 200 !important;
        pointer-events: auto !important;
    }

    /* Ensure layout items are in column and centered (Mobile) */
    .video-sidebar .action-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 201 !important;
        pointer-events: auto !important;
    }

    .author-avatar-wrapper {
        order: -1;
        margin-bottom: 8px;
    }

    .action-item {
        margin: 0;
        margin-bottom: 10px;
    }

    .action-item .icon-svg,
    .action-item .icon-img {
        width: 40px;
        height: 40px;
        font-size: 18px;
        color: #fff;
    }
    
    .action-item .icon-svg,
    .action-item .icon-img {
        width: 26px;
        height: 26px;
    }

    .action-item .count {
        font-size: 10px;
    }
    .video-sidebar .action-item .count {
        color: #fff;
        text-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.8),
            0 0 4px rgba(0, 0, 0, 0.6),
            -1px -1px 0 rgba(0, 0, 0, 0.8),
            1px -1px 0 rgba(0, 0, 0, 0.8),
            -1px 1px 0 rgba(0, 0, 0, 0.8),
            1px 1px 0 rgba(0, 0, 0, 0.8);
    }
    
    /* Remove background of action-icon-wrapper in video sidebar on mobile */
    .video-sidebar .action-icon-wrapper {
        background: transparent;
        width: auto;
        height: auto;
        border-radius: 0;
    }
    
    /* White icon with shadow for visibility on white video */
    .video-sidebar .action-item .icon-svg,
    .video-sidebar .action-item .icon-img {
        filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
        color: #fff;
    }
    
    /* Liked/saved icon primary color on mobile */
    .video-sidebar .action-item.liked .icon-svg,
    .video-sidebar .action-item.liked .icon-img {
        filter: brightness(0) saturate(100%) invert(31%) sepia(98%) saturate(2479%) hue-rotate(202deg) brightness(97%) contrast(90%) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
        color: var(--puna-primary);
    }
    
    .video-sidebar .action-item.saved .icon-svg,
    .video-sidebar .action-item.saved .icon-img {
        filter: brightness(0) saturate(100%) invert(77%) sepia(100%) saturate(1352%) hue-rotate(1deg) brightness(103%) contrast(101%) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
        color: var(--puna-secondary);
    }

    .video-top-controls {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    /* ===== VIDEO NAVIGATION ===== */
    /* Hide on mobile because using swipe */
    .video-nav {
        display: none;
    }

    /* ===== SHARE MODAL ===== */
    .share-modal {
        padding: 10px;
    }

    .share-modal-content {
        max-width: 100%;
    }

    .share-modal-header {
        padding: 16px 20px;
    }

    .share-modal-body {
        padding: 16px 20px;
    }

    .share-options-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        justify-items: center;
    }

    .share-option-icon {
        width: 56px;
        height: 56px;
        border-radius: 24px;
        font-size: 20px;
    }
    
    .share-option-icon .icon-svg,
    .share-option-icon .icon-img {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }

    .share-option-label {
        font-size: 11px;
    }

    /* ===== VIDEO WATCH ===== */
    .video-watch-back-btn {
        top: 10px;
        left: 10px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .video-player-controls {
        top: 10px;
        right: 10px;
    }
    
    .video-player-mute-btn,
    .video-player-play-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .video-info-section {
        padding: 16px;
    }
    
    .video-interaction-stats {
        padding: 12px 16px;
        gap: 16px;
    }
    
    .interaction-item .icon-svg,
    .interaction-item .icon-img {
        font-size: 24px;
    }
    
    .interaction-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .interaction-item .icon-svg,
    .interaction-item .icon-img {
        width: 24px;
        height: 24px;
    }
    
    .video-share-options {
        padding: 12px 16px;
    }
    
    .video-comments-tabs {
        padding: 0 16px;
    }
    
    .comments-tab {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .video-watch-comments-list {
        padding: 12px 16px;
    }
    
    .video-watch-comment-input-container {
        padding: 12px 16px;
    }
    
    /* Small mobile adjustments */
    .video-watch-player {
        min-height: 40vh;
    }
    
    .video-player-wrapper {
        height: 40vh;
    }
    
    .video-watch-info {
        max-height: 60vh;
    }

    /* ===== COMMENTS ===== */
    .comments-sidebar {
        width: 100%;
        max-width: 100%;
    }

    /* ===== PROFILE ===== */
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
        padding: 24px 16px;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-content {
        padding: 16px;
    }

    .profile-header {
        padding: 20px 0;
    }

    .profile-avatar {
        width: 88px;
        height: 88px;
    }

    .profile-username {
        font-size: 24px;
    }

    .profile-usernicename {
        font-size: 16px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* ===== SEARCH ===== */
    .search-panel {
        left: 0;
        width: 100%;
        z-index: 10001;
        border-right: none;
    }
    
    /* Mobile adjustments for search panel moved to search.css */
    
    .search-results-page {
        padding: 16px 0;
    }
    
    .search-tabs,
    .search-tab-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .search-tabs {
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .search-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .search-tab {
        font-size: 16px;
        white-space: nowrap;
        padding: 12px 0;
    }
    
    .search-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .search-video-info {
        padding: 8px 0 0;
    }
    
    .search-video-title {
        font-size: 12px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .search-video-meta {
        font-size: 11px;
    }

    /* ===== TAXONOMY ===== */
    .taxonomy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    /* Taxonomy header improvements on mobile */
    .taxonomy-header {
        padding: 16px 20px;
    }
    
    .taxonomy-header h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .taxonomy-tabs {
        gap: 8px;
    }
    
    .taxonomy-tabs .tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* ===== VIDEO NAVIGATION ===== */
    .video-nav {
        right: 12px;
        gap: 8px;
    }

    .video-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Small mobile - Hide on small mobile because using swipe */
    .video-nav {
        display: none;
    }
    
    .video-sidebar {
        right: 10px;
        bottom: 70px;
        gap: 10px;
    }

    .action-item .icon-svg,
    .action-item .icon-img {
        width: 36px;
        height: 36px;
        font-size: 16px;
        color: #fff;
    }
    
    .action-item .icon-svg,
    .action-item .icon-img {
        width: 26px;
        height: 26px;
    }

    .action-item .count {
        font-size: 9px;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
    }

    .video-details h4 {
        font-size: 14px;
    }

    .video-caption {
        font-size: 12px;
    }

    /* ===== MODAL ===== */
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 16px 20px 12px;
    }
    
    .modal-footer {
        padding: 0 20px 20px;
    }
    
    .contact-btn {
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }

    /* ===== EMPTY STATE ===== */
    .taxonomy-empty-state,
    .main-content .taxonomy-empty-state {
        min-height: calc(100vh - 150px);
        padding: 40px 20px;
    }

    .taxonomy-empty-state .icon-svg,
    .taxonomy-empty-state .icon-img,
    .main-content .taxonomy-empty-state .icon-svg,
    .main-content .taxonomy-empty-state .icon-img {
        width: 64px;
        height: 64px;
        margin-bottom: 24px;
    }

    .taxonomy-empty-state h3,
    .main-content .taxonomy-empty-state h3 {
        font-size: 20px;
    }

    .taxonomy-empty-state p,
    .main-content .taxonomy-empty-state p {
        font-size: 14px;
    }

    .taxonomy-empty-state .empty-state-btn,
    .main-content .taxonomy-empty-state .empty-state-btn,
    .search-tab-content .taxonomy-empty-state .empty-state-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Search tab content empty state */
    .search-tab-content .taxonomy-empty-state {
        min-height: calc(100vh - 250px);
        padding: 40px 20px;
    }

    .search-tab-content .taxonomy-empty-state .icon-svg,
    .search-tab-content .taxonomy-empty-state .icon-img {
        width: 64px;
        height: 64px;
        margin-bottom: 24px;
    }

    .search-tab-content .taxonomy-empty-state h3 {
        font-size: 20px;
    }

    .search-tab-content .taxonomy-empty-state p {
        font-size: 14px;
    }
}

/* ========================================
   TOUCH DEVICES
   ======================================== */

@media (hover: none) and (pointer: coarse) {
    /* ===== VIDEO NAVIGATION ===== */
    /* Increase touch target size */
    .video-nav-btn {
        width: 48px;
        height: 48px;
    }

    /* ===== VIDEO FEED ===== */
    .action-item {
        min-width: 48px;
        min-height: 48px;
    }
    
    /* On touch screens, always show volume slider when not muted */
    .volume-control-wrapper:not(.muted) .volume-slider-container {
        width: 80px;
        opacity: 1;
    }

    /* ===== SHARE MODAL ===== */
    .share-options-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .share-option {
        min-width: 60px;
        min-height: 60px;
    }

    /* Remove hover effects */
    .video-nav-btn:hover {
        background: var(--puna-muted);
    }

    .action-item:hover {
        background: transparent;
    }
    
    /* ===== VIDEO WATCH ===== */
    /* On touch screens, always show slider when not muted */
    .video-watch-player .video-player-bottom-actions .volume-control-wrapper:not(.muted) .volume-slider-container {
        width: 80px;
        opacity: 1;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION
   ======================================== */

@media (orientation: landscape) and (max-height: 600px) {
    /* ===== VIDEO FEED ===== */
    .video-container {
        height: 100vh;
    }

    /* ===== VIDEO WATCH ===== */
    .video-watch-container {
        padding-bottom: 60px; /* Space for bottom nav */
    }
    
    .video-watch-player {
        min-height: 100vh;
    }
    
    .video-player-wrapper {
        height: 100vh;
    }
}
