﻿/* ============================================================
   FreeShort - Shared Styles
   ============================================================ */

/* ---- Reset & Variables ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #e50914;
    --primary-dark: #c40812;
    --bg: #f8f9fa;
    --card: #fff;
    --text: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --border: #e0e0e0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ---- Navigation ---- */
nav {
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.logo { font-size: 28px; font-weight: 800; color: var(--primary); letter-spacing: -1px; }
.logo span { color: #333; }
.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.search-input {
    width: 100%;
    padding: 14px 120px 14px 48px;
    border: none;
    border-radius: 28px;
    background: linear-gradient(135deg, #f5f5f5, #fff);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), inset 0 1px 3px rgba(0,0,0,0.02);
}
.search-input:focus {
    background: linear-gradient(135deg, #fff, #fafafa);
    box-shadow: 0 4px 16px rgba(229,9,20,0.08), 0 0 0 2px var(--primary);
}
.search-input::placeholder { color: #999; }
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.3s ease;
}
.search-icon-svg { width: 20px; height: 20px; color: #999; }
.search-input:focus ~ .search-icon .search-icon-svg { color: var(--primary); }
.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 22px;
    padding: 10px 28px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(229,9,20,0.3);
}
.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 4px 16px rgba(229,9,20,0.4);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ---- Mobile Search Toggle ---- */
.search-toggle { display: none; }
.mobile-search {
    display: none;
    padding: 16px;
    background: #fff;
    border-top: 1px solid var(--border);
}
.mobile-search.active { display: block; }
.mobile-search .search-input-wrapper { width: 100%; }
.mobile-search .search-input {
    width: 100%;
    padding: 16px 120px 16px 48px;
    border: none;
    border-radius: 28px;
    background: linear-gradient(135deg, #f5f5f5, #fff);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), inset 0 1px 3px rgba(0,0,0,0.02);
}
.mobile-search .search-input:focus {
    background: linear-gradient(135deg, #fff, #fafafa);
    box-shadow: 0 4px 16px rgba(229,9,20,0.08), 0 0 0 2px var(--primary);
}
.mobile-search .search-input::placeholder { color: #999; }
.mobile-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.mobile-search .search-icon-svg { width: 20px; height: 20px; color: #999; }
.mobile-search .search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 22px;
    padding: 12px 24px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(229,9,20,0.3);
}
.mobile-search .search-btn:hover {
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 4px 16px rgba(229,9,20,0.4);
}

.trending-rank { display: flex; }

/* ---- Container ---- */
.container { max-width: 1400px; margin: 0 auto; padding: 24px; }

/* ---- Footer ---- */
footer {
    background: #1a1a1a;
    padding: 48px 0;
    margin-top: 60px;
}
footer p {
    color: #999;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 14px;
    line-height: 1.8;
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 64px;
}
.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
    max-width: 1400px;
    margin: 32px auto 0;
    padding: 20px 24px;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* ---- Video Card (shared) ---- */
.video-card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-decoration: none;
}
.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.video-thumbnail {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f0f0f0 url(/2026/inc/load.gif) center/50px no-repeat;
}
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}
.video-card:hover .video-thumbnail img { transform: scale(1.08); }
.video-info { padding: 14px; }
.video-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.video-card:hover .video-title { color: var(--primary); }


/* ---- Responsive: Nav / Shared ---- */
@media (max-width: 1024px) {
    .search-container { margin: 0 20px; max-width: 400px; }
}
@media (max-width: 768px) {
    nav { flex-wrap: wrap; padding: 12px 16px; }
    .search-container { display: none; }
    .nav-links { display: none; }
    .search-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .search-toggle:hover { background: #e8e8e8; }
    .search-toggle .search-icon-svg { width: 22px; height: 22px; color: #333; }
    .search-toggle:hover .search-icon-svg { color: var(--primary); }
    .footer-content { flex-direction: column; gap: 32px; }
}
@media (max-width: 480px) {
    nav { padding: 12px 16px; }
    .container { padding: 16px; }
}