:root {
    --bg-main: #0a0a0c;
    --bg-secondary: #111115;
    --bg-card: rgba(30, 30, 40, 0.45);
    --bg-header: rgba(16, 16, 22, 0.75);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent: #ff4d4d;
    --accent-hover: #ff6666;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 77, 77, 0.08) 0%, transparent 60%);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
    text-decoration: none;
    white-space: nowrap;
}

.nav-pills {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
}

.nav-pills::-webkit-scrollbar { display: none; }

.nav-pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer;
}

.nav-pill:hover, .nav-pill.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
    transform: translateY(-1px);
    border-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    transition: border-color 0.3s, background-color 0.3s;
}

.search-bar:focus-within {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    padding: 4px;
    width: 150px;
    font-size: 14px;
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    filter: grayscale(1) brightness(1.5);
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.1);
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: rgba(17, 17, 21, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1010;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-left-color 0.2s;
    border-left: 3px solid transparent;
}

.suggestion-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent);
}

.suggestion-thumb {
    width: 55px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: #000;
}

.suggestion-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 480px) {
    .search-suggestions {
        width: 280px;
    }
}

.sort-select {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

.sort-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Layout */
.main-layout {
    display: flex;
    gap: 30px;
    padding-top: 30px;
    padding-bottom: 50px;
}

.content-area {
    flex-grow: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
}

.video-count {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 77, 77, 0.15);
    border-color: rgba(255, 77, 77, 0.3);
}

/* Skeleton Loader */
.skeleton-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
}
.skeleton-thumb {
    width: 100%;
    padding-top: 56.25%;
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-text {
    height: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin: 12px 12px 0 12px;
    border-radius: 4px;
}
.skeleton-text.title {
    width: 80%;
    height: 14px;
}
.skeleton-text.meta {
    width: 50%;
    margin-bottom: 5px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.thumbnail-container {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.video-info {
    padding: 10px;
}

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

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--accent);
}

.popular-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
}

.popular-thumb {
    width: 80px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
}

.popular-info h4 {
    font-size: 12px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal {
    background: #14141b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 850px;
    border-radius: 16px;
    overflow-y: auto;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal::-webkit-scrollbar {
    width: 8px;
}
.modal::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.modal::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: var(--accent);
}

.modal-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 50%; /* Netflix style wider banner */
    background: #000;
}

.modal-thumbnail img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.modal-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: white;
    opacity: 0.9;
    cursor: pointer;
    background: rgba(255, 77, 77, 0.8);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    box-shadow: 0 0 30px rgba(255, 77, 77, 0.5);
    transition: transform 0.2s, background-color 0.2s;
}

.modal-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--accent);
}

.modal-content-wrapper {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 24px;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-main-info {
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-meta {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
}

.modal-desc {
    font-size: 14px;
    margin-bottom: 20px;
    color: #d1d5db;
    line-height: 1.6;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s, color 0.2s;
}

.tag:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.modal-watch-btn {
    width: 100%;
}

.modal-share-btn {
    width: 100%;
}

/* Related Videos inside modal */
.modal-related {
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
}

.modal-related h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.related-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.related-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 77, 77, 0.2);
}

.related-thumb-container {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.related-thumb {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.related-info {
    padding: 10px;
}

.related-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    font-size: 10px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .modal-content-wrapper {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    background: var(--bg-card);
    color: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo { font-size: 20px; font-weight: 700; color: var(--accent); }
.footer-links { display: flex; gap: 20px; }
.footer-link { color: var(--text-secondary); text-decoration: none; font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
    .sidebar { display: none; }
    .header-content { flex-direction: column; gap: 15px; }
    .nav-pills { width: 100%; }
}

/* Navigation Tabs Styling */
.tab-btn:hover {
    color: white !important;
    opacity: 1 !important;
}

.tab-btn.active {
    color: white !important;
    opacity: 1 !important;
    border-bottom: 3px solid var(--accent) !important;
}

/* Badges for SSL */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Table styling fixes */
#vps-sites-tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}
#vps-sites-tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* User Reviews / Comments Styles */
.comment-bubble {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.comment-user {
    color: var(--accent);
    font-weight: 600;
}

.comment-time {
    color: var(--text-secondary);
}

.comment-text {
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1.4;
}

.modal-rating span {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 5px;
}
