/* 
 * FOX Last Videos - Premium CSS 
 */

:root {
    --bg-color: #0d0d0d;
    --card-bg: rgba(26, 26, 26, 0.7);
    --accent-red: #ff3c3c;
    --text-primary: #f0f0f0;
    --text-secondary: #aaaaaa;
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.5);
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background gradient effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, #1a0a0a 0%, #0d0d0d 100%);
    z-index: -1;
}

/* Header */
.main-header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    padding: 60px 20px 40px;
    text-align: center;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    animation: fadeInDown 1s ease;
}

.logo span {
    color: var(--accent-red);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    opacity: 0.8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 50vh;
}

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

/* Video Card (Glassmorphism) */
.video-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
    box-shadow: var(--shadow-premium);
    animation: fadeInUp 0.8s ease backwards;
}

.video-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
}

.video-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .thumbnail-wrapper img {
    transform: scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-red);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: background 0.2s;
    width: 100%;
    margin-top: 10px;
}

.video-card:hover .btn-watch {
    background: #ff0000;
    box-shadow: 0 0 20px rgba(255, 60, 60, 0.4);
}

/* Loader */
.loader-container {
    text-align: center;
    padding: 100px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Footer */
.main-footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sentinel */
.scroll-sentinel {
    height: 50px;
    width: 100%;
    margin-top: 10px;
}

/* Responsive optimization for Mobile */
@media (max-width: 480px) {
    .logo { font-size: 2.2rem; }
    .subtitle { font-size: 0.9rem; }
    .video-container { grid-template-columns: 1fr; gap: 20px; }
    .video-info h3 { font-size: 1rem; }
    .main-header { padding: 40px 15px 30px; }
}
