/* Minimal video card style */
.video-card.minimal {
    background-color: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: auto;
}

.video-card.minimal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.video-info.minimal {
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-height: 0;
    margin: 0;
    margin-top: 0 !important;
}

.video-info.minimal h3 {
    margin: 0;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.1;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-meta.minimal {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    font-size: 0.6rem;
    margin: 0;
    flex-wrap: wrap;
}

.media-type {
    background-color: #007bff;
    color: white;
    padding: 0.05rem 0.2rem;
    border-radius: 2px;
    font-size: 0.55rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    font-weight: 500;
}

.duration {
    color: #bbb;
    font-size: 0.55rem;
    margin: 0;
    background: none;
    padding: 0;
}

.badge {
    background-color: #e50914;
    color: white;
    padding: 0.05rem 0.2rem;
    border-radius: 2px;
    font-size: 0.55rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Responsive card adjustments */
@media (min-width: 320px) and (max-width: 374px) {
    .video-info.minimal {
        padding: 0.3rem;
        gap: 0.15rem;
        margin: 0;
        margin-top: 0 !important;
    }
    
    .video-info.minimal h3 {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .video-meta.minimal {
        font-size: 0.55rem;
        gap: 0.15rem;
    }
    
    .media-type, .duration, .badge {
        font-size: 0.5rem;
        padding: 0.03rem 0.15rem;
    }
}

@media (min-width: 375px) and (max-width: 424px) {
    .video-info.minimal {
        padding: 0.35rem;
        gap: 0.15rem;
        margin: 0;
        margin-top: 0 !important;
    }
    
    .video-info.minimal h3 {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .video-meta.minimal {
        font-size: 0.6rem;
        gap: 0.15rem;
    }
    
    .media-type, .duration, .badge {
        font-size: 0.55rem;
        padding: 0.04rem 0.18rem;
    }
}

@media (min-width: 425px) and (max-width: 767px) {
    .video-info.minimal {
        padding: 0.4rem;
        gap: 0.2rem;
        margin: 0;
        margin-top: 0 !important;
    }
    
    .video-info.minimal h3 {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .video-meta.minimal {
        font-size: 0.65rem;
        gap: 0.2rem;
    }
    
    .media-type, .duration, .badge {
        font-size: 0.6rem;
        padding: 0.05rem 0.2rem;
    }
}

@media (min-width: 768px) {
    .video-info.minimal {
        padding: 0.45rem;
        gap: 0.25rem;
        margin: 0;
        margin-top: 0 !important;
    }
    
    .video-info.minimal h3 {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .video-meta.minimal {
        font-size: 0.7rem;
        gap: 0.25rem;
    }
    
    .media-type, .duration, .badge {
        font-size: 0.65rem;
        padding: 0.06rem 0.25rem;
    }
}
/* StreamFlix Styles with Bebas Neue Font */

/* Import Bebas Neue font */
@import url('https://fonts.cdnfonts.com/css/bebas-neue?styles=17623,17625,169713,17621,17624,17622,17620');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Bebas Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0f0f0f;
    color: #ffffff;
    letter-spacing: 1px;
    overscroll-behavior: none;
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
}

html {
    overscroll-behavior: none;
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
}

/* Header and Navigation */
header {
    background-color: #1a1a1a;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo h1 {
    color: #e50914;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: #e50914;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    min-height: calc(100vh - 200px);
}

/* Hero section */
.hero {
    text-align: center;
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, #e50914, #b20710);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

/* Responsive navigation and hero adjustments */
@media (max-width: 767px) {
    nav {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .logo h1 {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    main {
        padding: 1rem 0.5rem;
    }
    
    .hero {
        padding: 2rem 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 424px) {
    nav {
        padding: 0 0.75rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    main {
        padding: 0.75rem 0.25rem;
    }
    
    .hero {
        padding: 1.5rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
}

@media (max-width: 374px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
}

/* Video grid */
.video-grid {
    display: grid;
    gap: 0.5rem;
    padding: 0 0.25rem;
}

/* Mobile first approach - responsive grid columns */
/* 320px and 375px = 2 columns */
@media (min-width: 320px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        padding: 0 0.15rem;
    }
}

/* 425px = 3 columns */
@media (min-width: 425px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
        padding: 0 0.25rem;
    }
}

/* 720px and 768px = 4 columns */
@media (min-width: 720px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
        padding: 0 0.4rem;
    }
}

/* 1024px+ = 5 columns */
@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }
}

/* 1440px+ = 6 columns */
@media (min-width: 1440px) {
    .video-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.2rem;
        padding: 0 0.75rem;
    }
}

.video-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.3;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.rating {
    color: #ffc107;
}

.year {
    color: #cccccc;
    background-color: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
}

.video-description {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.video-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.genre-tag {
    background-color: #e50914;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.media-type {
    background-color: #007bff;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.duration {
    color: #888;
    font-size: 0.8rem;
    margin: 0;
}

/* Search container */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-container .input-group {
    max-width: 100%;
}

.search-container input {
    font-size: 1rem;
    padding: 0.75rem;
}

.search-container button {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
}

/* Responsive search adjustments */
@media (max-width: 767px) {
    .search-container {
        padding: 0 0.75rem;
    }
    
    .search-container input {
        font-size: 0.95rem;
        padding: 0.65rem;
    }
    
    .search-container button {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 424px) {
    .search-container {
        padding: 0 0.5rem;
    }
    
    .search-container input {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    .search-container button {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 374px) {
    .search-container input {
        font-size: 0.85rem;
        padding: 0.55rem;
    }
    
    .search-container button {
        padding: 0.55rem 0.7rem;
        font-size: 0.8rem;
    }
}

.data-toggle {
    text-align: center;
}

/* Loading spinner and messages */
.loading-container {
    text-align: center;
    padding: 3rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.loading-container h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 2rem;
}

.spinner {
    border: 4px solid #333;
    border-top: 4px solid #e50914;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Player page enhanced styling */
.video-details {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.video-details .description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.video-metadata {
    border-top: 1px solid #333;
    padding-top: 1rem;
}

.metadata-row {
    margin-bottom: 0.8rem;
    color: #cccccc;
}

.metadata-row strong {
    color: #ffffff;
}

.badge {
    font-size: 0.8rem;
}

/* Playerjs iframe styling */
#playerFrame {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #000;
    border: none;
}

/* Responsive player sizing */
@media (max-width: 768px) {
    #playerFrame {
        height: 300px;
    }
}

@media (max-width: 480px) {
    #playerFrame {
        height: 250px;
    }
}

/* Legacy styling for other elements */
#player {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #000;
}

#videoPlayer {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    background-color: #000;
}

.video-info {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.video-info h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.video-info p {
    color: #cccccc;
    line-height: 1.6;
}

.back-to-home {
    text-align: center;
    margin-top: 2rem;
}

.btn {
    background-color: #e50914;
    color: #ffffff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background-color: #b20710;
}

/* Content pages styles */
.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.content-container h2 {
    color: #e50914;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 3rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-section,
.privacy-section {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.about-section h3,
.privacy-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-section p,
.privacy-section p {
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-section ul,
.privacy-section ul {
    color: #cccccc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.about-section li,
.privacy-section li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    text-align: center;
    padding: 1.5rem 0;
    color: #cccccc;
    border-top: 1px solid #333;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    margin-top: 2rem;
}

/* Responsive footer adjustments */
@media (max-width: 767px) {
    footer {
        padding: 1.25rem 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 424px) {
    footer {
        padding: 1rem 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 374px) {
    footer {
        padding: 0.75rem 0;
        font-size: 0.8rem;
    }
}

/* Pagination Styles */
.pagination-container {
    margin: 2rem 0;
}

.pagination .page-link {
    background-color: #2c2c2c;
    border-color: #444;
    color: #fff;
    border-radius: 0.375rem;
    margin: 0 2px;
    padding: 0.5rem 0.75rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.pagination .page-item.disabled .page-link {
    background-color: #1a1a1a;
    border-color: #333;
    color: #666;
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    background-color: #1a1a1a;
    border-color: #333;
    color: #666;
    transform: none;
}

/* Mobile pagination adjustments */
@media (max-width: 768px) {
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.9rem;
        margin: 0 1px;
    }
    
    .pagination-container .text-muted {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .pagination .page-link {
        padding: 0.25rem 0.375rem;
        font-size: 0.8rem;
    }
}

/* Search Results Styles */
.search-results-header {
    animation: fadeIn 0.3s ease-in;
}

.search-results-header h4 {
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.search-no-results {
    animation: fadeIn 0.3s ease-in;
}

.search-no-results h3 {
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.search-no-results p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Search input focus enhancement */
#searchInput:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

@media (max-width: 768px) {
    .search-results-header .d-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .search-results-header h4 {
        font-size: 1.3rem;
    }
    
    .search-no-results h3 {
        font-size: 1.5rem;
    }
}
