/* style.css */
:root { --bg: #121212; --text: #e0e0e0; --accent: #e50914; --card: #1e1e1e; }
body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 0; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; flex: 1; width: 100%; box-sizing: border-box; }

/* Global Header & Search */
header { background: #000; border-bottom: 1px solid #333; padding: 1rem 0; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.logo { color: var(--accent); text-decoration: none; font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; }
.header-search { display: flex; gap: 0.5rem; flex: 1; max-width: 400px; }
.header-search input { flex: 1; padding: 0.6rem; border-radius: 4px; border: 1px solid #333; background: #222; color: white; }
.header-search button, .btn { padding: 0.6rem 1.2rem; background: var(--accent); color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; text-decoration: none; }
.header-search button:hover, .btn:hover { background: #b0070f; }

/* Grid & Image Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.card { background: var(--card); border-radius: 8px; text-decoration: none; color: white; transition: 0.2s; border: 1px solid #333; overflow: hidden; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 5px 15px rgba(229, 9, 20, 0.2); }
.card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: #222; }
.card h3 { margin: 0; padding: 1rem; font-size: 1rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #333; }
.pagination span { font-weight: bold; color: #888; }

/* Footer */
footer { background: #000; padding: 2rem 1rem; text-align: center; border-top: 1px solid #333; margin-top: auto; color: #666; font-size: 0.9rem; }

/* Video Player */
.player-container { width: 105%; aspect-ratio: 16/9; background: #000; margin-bottom: 1.5rem; border-radius: 8px; overflow: hidden; }
iframe { width: 105%; height: 105%; border: none; }
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tab { background: #333; border: 1px solid #444; color: white; padding: 0.6rem 1.2rem; cursor: pointer; border-radius: 4px; font-weight: bold; }
.tab.active { background: var(--accent); border-color: var(--accent); }

/* Social Footer Styling */
.social-links { 
    display: flex; 
    justify-content: center; 
    gap: 1rem; 
    margin-top: 1rem; 
}
.social-btn { 
    padding: 0.5rem 1rem; 
    border-radius: 4px; 
    text-decoration: none; 
    color: white; 
    font-size: 0.8rem; 
    font-weight: bold; 
    transition: 0.2s; 
}
.btn-telegram { background: #0088cc; }
.btn-telegram:hover { background: #0077b5; }
.btn-social { background: #333; }
.btn-social:hover { background: #444; }