/*
Theme Name: Media Hub Responsive Theme
Author: Custom Developer
Version: 1.1
Description: A high-performance media layout featuring a fixed left sidebar filter and responsive media grid cards.
*/

:root {
    --bg-main: #111111;
    --bg-surface: #1b1b1b;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #ffd84d;
    --sidebar-width: 240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Structural Wrappers */
.main-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.theme-container {
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 70px;
}

/* Header UI */
.site-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid #2d2d2d;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.search-form-wrap {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-form-wrap input {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 4px;
    color: #fff;
}

/* Main Sidebar Core */
.site-sidebar {
    width: var(--sidebar-width);
    background: #161616;
    border-right: 1px solid #222;
    height: calc(100vh - 70px);
    position: fixed;
    top: 70px;
    left: 0;
    overflow-y: auto;
    padding: 20px 10px;
}

.sidebar-section-heading {
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 10px 8px 10px;
}

.sidebar-custom-menu ul {
    list-style: none;
}

.sidebar-custom-menu ul li a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    color: #ccc;
    font-weight: 500;
}

.sidebar-custom-menu ul li a:hover {
    background: #222;
    color: #fff;
}

/* Main Dynamic Content Layout Content Column */
.content-article {
    flex-grow: 1;
    padding: 20px;
    margin-left: var(--sidebar-width);
}

.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

/* Archive/Home Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.media-card {
    background: var(--bg-surface);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio aspect preset */
    background: #000;
}

.thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 2px;
}

.card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

/* Single View Video Page Presentation */
.video-type-video {
    flex-grow: 1;
    padding: 20px;
    margin-left: var(--sidebar-width);
}

.width-wrap {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.title-3e2be {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 10px;
}

.icons-a993a {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 20px;
}

.container-5f2e3 .list-5f2e3 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    align-items: center;
}

.container-5f2e3 .list-5f2e3 a {
    background: #222;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #ddd;
}

.container-5f2e3 .list-5f2e3 a:hover {
    background: var(--accent-color);
    color: #000;
}

/* Fluid Video Aspect Box container player wrapper */
.player-container {
    background: #000;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #222;
}

.player-aspect-ratio-box {
    position: relative;
    padding-top: 56.25%; /* Widescreen canvas mapping */
}

.player-aspect-ratio-box iframe, 
.player-aspect-ratio-box video,
.player-aspect-ratio-box object,
.player-aspect-ratio-box embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Post Interaction Action Ribbon Control UI styling */
.controls-action-bar {
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
    margin-bottom: 20px;
}

.action-btn {
    background: #1c1b1b;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.action-btn:hover {
    background: #252525;
}

.controls-info {
    background: var(--bg-surface);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.entity-info-container__author {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.controls-info-description {
    font-size: 14px;
    color: #eee;
    line-height: 1.5;
}

/* Footer layout rules */
.site-footer {
    background: var(--bg-surface);
    margin-left: var(--sidebar-width);
    padding: 40px 20px;
    border-top: 1px solid #2d2d2d;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Global Navigation Breakpoints Responsive Settings */
@media (max-width: 992px) {
    :root { var(--sidebar-width): 0px; }
    .site-sidebar { display: none; }
    .content-article, .video-type-video, .site-footer { margin-left: 0; }
}