/* Tube Theme - Vanilla CSS */
:root {
    --primary-color: #ff9000;
    --primary-hover: #e68200;
    --bg-color: #0f0f0f;
    --card-bg: #1e1e1e;
    --text-color: #ffffff;
    --muted-text: #aaaaaa;
    --border-color: #333333;
    --nav-bg: #0f0f0f;
    --footer-bg: #0f0f0f;
    --danger-color: #ff4444;
    --success-color: #2ecc71;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col {
    padding: 10px;
    flex: 1 0 0%;
}

.col-12, .col-9, .col-8, .col-6, .col-4, .col-3, .col-2 {
    padding: 10px;
}

.col-12 { width: 100%; }
.col-9 { width: 75%; }
.col-8 { width: 66.666%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }
.col-2 { width: 16.666%; }

@media (max-width: 1200px) {
    .col-3 { width: 33.333%; }
    .col-2 { width: 25%; }
}

@media (max-width: 992px) {
    .col-4, .col-3 { width: 50%; }
    .col-2 { width: 33.333%; }
}

@media (max-width: 576px) {
    .col-4, .col-3, .col-2, .col-6, .col-8, .col-9 { width: 100%; }
}

/* Header & Navbar */
header {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    height: 60px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
}

.navbar-brand span {
    background-color: var(--primary-color);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    text-transform: uppercase;
}

/* Search */
.search-container {
    flex: 0 1 600px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    background-color: #121212;
    border: 1px solid var(--border-color);
    border-radius: 40px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 20px;
    outline: none;
    font-size: 1rem;
}

.search-btn {
    background-color: #222;
    border: none;
    border-left: 1px solid var(--border-color);
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #333;
}

/* Cards */
.video-card {
    background-color: transparent;
    margin-bottom: 20px;
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.video-info {
    padding: 10px 0;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.video-meta {
    font-size: 0.85rem;
    color: var(--muted-text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: #222;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #333;
}

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #1e1e1e;
    min-width: 180px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: #333;
    color: var(--primary-color);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success { background-color: rgba(46, 204, 113, 0.1); border: 1px solid var(--success-color); color: var(--success-color); }
.alert-warning { background-color: rgba(241, 196, 15, 0.1); border: 1px solid #f1c40f; color: #f1c40f; }
.alert-danger { background-color: rgba(231, 76, 60, 0.1); border: 1px solid var(--danger-color); color: var(--danger-color); }

.btn-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
    color: var(--muted-text);
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand span {
    background-color: var(--primary-color);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
}

footer h5 {
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

footer ul li {
    margin-bottom: 10px;
}

footer a:hover {
    color: #fff;
}

/* Utils */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-item {
    padding: 8px 16px;
    background-color: #222;
    border-radius: 4px;
    color: #eee;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.pagination-item:hover:not(.disabled) {
    background-color: #333;
    color: var(--primary-color);
}

.pagination-item.active {
    background-color: var(--primary-color);
    color: #000;
    font-weight: bold;
}

.pagination-item.disabled {
    color: #555;
    cursor: not-allowed;
    background-color: #1a1a1a;
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #555;
}

/* More Utils */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 4px;
}

.bg-primary { background-color: var(--primary-color); color: #000; }
.bg-dark { background-color: #1a1a1a; color: #fff; }
.bg-warning { background-color: #f1c40f; color: #000; }

.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
/* Sections */
.section-title {
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    margin-bottom: 30px;
    padding-bottom: 8px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Masonry Grid */
.masonry-grid {
    columns: 4 250px;
    column-gap: 1.5rem;
    width: 100%;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.2s;
}

.masonry-item:hover {
    transform: translateY(-5px);
}

.masonry-item img {
    width: 100%;
    display: block;
    height: auto;
}

.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-title {
    color: white;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.masonry-count {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.masonry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Lightbox */
.v-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.v-lightbox-content {
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.v-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.v-close:hover {
    color: var(--primary-color);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background-color: #111;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 2/3;
    display: block;
}

.sidebar-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

/* Cards & Forms */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted-text);
}

.form-control {
    width: 100%;
    background-color: #000;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-select {
    width: 100%;
    background-color: #000;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.chip {
    display: inline-block;
    padding: 6px 14px;
    background-color: #222;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chip.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.d-none { display: none !important; }
.w-100 { width: 100%; }
/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th, .table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--muted-text);
    letter-spacing: 1px;
}

.table-hover tbody tr:hover {
    background-color: rgba(255,144,0,0.05);
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 12px 20px;
    background-color: #000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--muted-text);
}

.breadcrumb-item a {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-item.active {
    color: var(--text-color);
}
