/*
Theme Name: Vertical Video Gallery
Theme URI: https://example.com
Author: Custom Theme
Author URI: https://example.com
Description: WordPress theme for posting 9:16 vertical videos with prompt information display
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vertical-video-gallery
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #000 !important;
    color: #fff !important;
    overflow-x: hidden;
}

/* Force search page visibility */
body.search,
body.search .site-wrapper,
body.search .main-wrapper,
body.search .container {
    background-color: #000 !important;
    color: #fff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Emoji size restriction */
img.emoji {
    width: 1em !important;
    height: 1em !important;
    display: inline !important;
    vertical-align: middle;
    margin: 0 !important;
}

/* Site wrapper */
.site-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Left sidebar */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    padding: 20px 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 135, 0.3);
    border-radius: 3px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.site-logo {
    flex: 1;
}

.site-logo a {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.sidebar-nav {
    padding: 0 10px;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #bbb;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: rgba(0, 255, 135, 0.1);
    color: #00ff87;
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.2) 0%, rgba(96, 239, 255, 0.2) 100%);
    color: #00ff87;
    font-weight: 600;
}

.nav-icon {
    font-size: 1.3rem;
}

.nav-text {
    flex: 1;
}

.nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-toggle.active .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
}

.nav-submenu.active {
    max-height: 200px;
    margin-top: 8px;
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #888;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.submenu-link:hover {
    background: rgba(0, 255, 135, 0.05);
    color: #00ff87;
}

.submenu-link.active {
    background: rgba(0, 255, 135, 0.15);
    color: #00ff87;
    font-weight: 500;
}

.submenu-icon {
    font-size: 1.1rem;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: rgba(0, 255, 135, 0.2);
    border: 1px solid rgba(0, 255, 135, 0.3);
    color: #00ff87;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Main wrapper */
.main-wrapper {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-header {
    padding: 15px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    display: block !important;
    visibility: visible !important;
}

/* Pixiv-style search bar */
.header-search-container {
    max-width: 700px;
    margin: 0 auto;
    display: block !important;
    visibility: visible !important;
}

.header-search {
    width: 100%;
    display: block !important;
}

.search-input-wrapper {
    position: relative;
    display: flex !important;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 255, 135, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.2);
}

.search-icon {
    position: absolute;
    left: 18px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.search-field {
    width: 100%;
    padding: 12px 20px 12px 50px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Sidebar collapse button */
.sidebar-collapse-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 8px;
    flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
    background: rgba(0, 255, 135, 0.1);
    border-radius: 8px;
}

.collapse-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Sidebar collapsed state */
.sidebar.collapsed {
    width: 64px;
}

.sidebar.collapsed .sidebar-header {
    padding: 12px;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.sidebar.collapsed .site-logo {
    display: none;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .submenu-text {
    display: none;
}

.sidebar.collapsed .nav-arrow {
    display: none;
}

.sidebar.collapsed .nav-link,
.sidebar.collapsed .submenu-link {
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
}

.sidebar.collapsed .nav-icon,
.sidebar.collapsed .submenu-icon {
    font-size: 1.4rem;
    margin: 0;
}

.sidebar.collapsed .nav-submenu {
    display: none;
}

.sidebar.collapsed .nav-item {
    margin-bottom: 4px;
}

.sidebar.collapsed .sidebar-nav {
    padding: 0 8px;
}

.sidebar.collapsed + .main-wrapper {
    margin-left: 64px;
}

.main-wrapper {
    transition: margin-left 0.3s ease;
}

/* Always show hamburger menu (three lines) */
.hamburger-line:nth-child(1),
.hamburger-line:nth-child(2),
.hamburger-line:nth-child(3) {
    transform: none;
    opacity: 1;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    flex: 1;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Search page specific container fix */
body.search .container {
    min-height: 100vh !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #000 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Pixiv-style tag section */
.pixiv-tags-section {
    margin-bottom: 25px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tags-scroll-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 135, 0.3) transparent;
}

.tags-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.tags-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 135, 0.3);
    border-radius: 3px;
}

.tags-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.pixiv-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pixiv-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    filter: brightness(1.2);
}

.pixiv-tag.active {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    filter: brightness(1.3);
}

/* Sub navigation */
.sub-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding: 0;
}

.sub-nav-item {
    padding: 14px 28px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.sub-nav-item:hover {
    color: #00ff87;
    background: rgba(0, 255, 135, 0.05);
}

.sub-nav-item.active {
    color: #00ff87;
    border-bottom-color: #00ff87;
    background: rgba(0, 255, 135, 0.08);
}

header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

header.header-hidden {
    display: none;
}

header.header-hidden + .container {
    margin-top: 0;
}

header.header-minimized .header-content {
    display: none;
}

/* Header toggle button */
.header-toggle {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 1px solid rgba(0, 255, 135, 0.3);
    border-top: none;
    border-radius: 0 0 12px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header-toggle:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #00ff87 20%);
    border-color: rgba(0, 255, 135, 0.6);
    box-shadow: 0 4px 20px rgba(0, 255, 135, 0.3);
}

.toggle-icon {
    color: #00ff87;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    display: block;
}

header.header-minimized .toggle-icon {
    transform: rotate(180deg);
}

header.header-hidden .header-toggle {
    bottom: -40px;
    background: rgba(0, 255, 135, 0.2);
    border-color: rgba(0, 255, 135, 0.5);
}

header.header-hidden .toggle-icon {
    transform: rotate(180deg);
}

.header-content {
    padding: 25px 0 20px;
    text-align: center;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

/* Tab navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    position: relative;
    gap: 0;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.3);
}

.tab-item {
    flex: 0 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 30px;
    color: #888;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
}

.tab-icon {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.6;
}

.tab-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.tab-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.tab-item:hover .tab-icon {
    transform: translateY(-3px) scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
}

.tab-item.active {
    color: #00ff87;
    background: rgba(0, 255, 135, 0.05);
}

.tab-item.active .tab-icon {
    filter: grayscale(0%);
    opacity: 1;
    animation: iconPulse 2s ease-in-out infinite;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff87 0%, #60efff 100%);
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.5);
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Video grid */
.video-grid,
.image-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px 0 20px;
}

/* Horizontal video grid */
.horizontal-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    padding: 10px 0 20px;
}

.video-item,
.image-work-item {
    position: relative;
    aspect-ratio: 9 / 16;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.horizontal-video-item {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-item:hover,
.horizontal-video-item:hover,
.image-work-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 255, 135, 0.15), 
                0 0 0 1px rgba(0, 255, 135, 0.3);
    border-color: rgba(0, 255, 135, 0.3);
}

.video-item video,
.horizontal-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 18px;
    color: #fff;
    backdrop-filter: blur(5px);
}

.video-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-count {
    font-size: 0.85rem;
    color: #00ff87;
    font-weight: 600;
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 255, 135, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 135, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(10px);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 24px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 35px;
    margin: 20px;
    border: 1px solid rgba(0, 255, 135, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    background: rgba(255, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10002;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
    background: rgba(255, 0, 0, 1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.6);
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

.modal-nav:hover {
    background: rgba(0, 255, 135, 0.3);
    border-color: rgba(0, 255, 135, 0.6);
    color: #00ff87;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 255, 135, 0.4);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-videos {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 400px;
}

.modal-image-item {
    width: 100%;
    max-width: 800px;
    display: none;
}

.modal-image-item.active {
    display: block;
}

.modal-image-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-video-item {
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    max-width: 600px;
    width: 100%;
    display: none;
}

.modal-video-item.active {
    display: block;
}

.modal-video-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-horizontal-video {
    aspect-ratio: 16 / 9;
    max-width: 900px;
}

.modal-horizontal-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 135, 0.5) rgba(255, 255, 255, 0.1);
}

.modal-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.modal-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 135, 0.5);
    border-radius: 4px;
}

.modal-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 135, 0.7);
}

.thumbnail-item {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #000;
}

.thumbnail-item:hover {
    border-color: rgba(0, 255, 135, 0.5);
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #00ff87;
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.5);
}

.thumbnail-item img,
.thumbnail-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.modal-info {
    background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-info h2 {
    font-size: 1.9rem;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prompt-section {
    margin-bottom: 20px;
}

.prompt-section h3 {
    font-size: 1.2rem;
    color: #00ff87;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.prompt-section p {
    line-height: 1.6;
    color: #ddd;
    white-space: pre-wrap;
}

.meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 1rem;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -240px;
        width: 240px;
        transform: none;
        transition: left 0.3s ease;
        z-index: 2000;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .sidebar.collapsed {
        left: -240px;
    }
    
    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: rgba(0, 255, 135, 0.2);
        border: 2px solid rgba(0, 255, 135, 0.5);
        border-radius: 8px;
        padding: 8px 12px;
        color: #00ff87;
        font-size: 1.2rem;
        cursor: pointer;
        backdrop-filter: blur(10px);
    }
    
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar.collapsed + .main-wrapper {
        margin-left: 0;
    }
    
    .top-header {
        padding: 15px 20px 15px 60px;
    }
    
    .header-search-container {
        max-width: 100%;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .horizontal-video-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .modal-videos {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        padding: 20px 0 15px;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    .tab-item {
        flex: 1;
        padding: 15px 20px;
    }
    
    .tab-icon {
        font-size: 1.5rem;
    }
    
    .tab-label {
        font-size: 0.85rem;
    }
    
    .header-toggle {
        width: 45px;
        height: 35px;
        bottom: -35px;
    }
    
    .toggle-icon {
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    
    .main-wrapper {
        margin-left: 200px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
    text-align: center;
}

footer p {
    color: #888;
    font-size: 0.9rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.loading::after {
    content: "...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Search results page */
.search-results-header {
    margin-bottom: 30px;
    padding: 30px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.search-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block !important;
    visibility: visible !important;
}

.search-query {
    color: #00ff87;
    font-weight: 800;
}

.search-count {
    color: #888;
    font-size: 1rem;
    display: block !important;
    visibility: visible !important;
}

/* Force search page container to be visible */
body.search .container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #000 !important;
}

body.search .video-grid {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.no-results p {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.search-suggestions {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.search-suggestions h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #00ff87;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    color: #bbb;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.search-suggestions li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #00ff87;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    color: #000;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 135, 0.3);
}
