/*
Theme Name: callme
Author: DevMaster
Description: A professional and highly scalable theme with YouTube-like UI and specific redirection logic.
Version: 1.0.0
Text Domain: callme
*/

:root {
    --primary: #6366f1;
    --dark: #0f0f0f;
    --light: #ffffff;
    --gray: #aaaaaa;
    --hover: #272727;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 56px;
    background-color: var(--dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.site-branding h1 a {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-search input {
    background: #121212;
    border: 1px solid #303030;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    width: 400px;
}

/* Grid Layout */
.main-content {
    padding: 24px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

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

/* Hover Effect: Show Video */
.thumbnail-wrapper:hover img {
    opacity: 0;
}

.thumbnail-wrapper:hover video {
    display: block;
}

.video-info {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.video-details h3 {
    font-size: 16px;
    margin-bottom: 4px;
    line-height: 1.4;
    max-height: 44px;
    overflow: hidden;
}

.video-meta {
    font-size: 14px;
    color: var(--gray);
}

/* Single Page */
.single-video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.video-player-wrapper {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    margin-bottom: 20px;
}

.video-player-wrapper iframe,
.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.action-bar {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.btn-like {
    background: #272727;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 18px;
    cursor: pointer;
}

.btn-like:hover {
    background: #3f3f3f;
}

/* Responsive */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    .header-search {
        display: none;
    }
}