/* YouTube Replica Theme */
:root {
    --yt-bg: #0f0f0f;
    --yt-header: #0f0f0f;
    --yt-sidebar: #0f0f0f;
    --yt-search-bg: #121212;
    --yt-search-border: #303030;
    --yt-text-primary: #f1f1f1;
    --yt-text-secondary: #aaaaaa;
    --yt-red: #ff0000;
    --yt-hover: #272727;
}

body {
    background-color: var(--yt-bg) !important;
    color: var(--yt-text-primary) !important;
    margin: 0;
    font-family: Roboto, Arial, sans-serif;
}

/* Layout Grid */
.yt-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 56px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.yt-header {
    grid-column: 1 / -1;
    background: var(--yt-header);
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
    border-bottom: 1px solid #2d2d2d;
    z-index: 100;
}

.yt-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: -1px;
}

.yt-logo-icon {
    color: var(--yt-red);
    font-size: 24px;
}

.yt-search-bar {
    display: flex;
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.yt-search-input {
    flex: 1;
    background: var(--yt-search-bg);
    border: 1px solid var(--yt-search-border);
    border-radius: 40px 0 0 40px;
    padding: 8px 16px;
    color: #fff;
    font-size: 16px;
}

.yt-search-btn {
    background: #222;
    border: 1px solid var(--yt-search-border);
    border-left: none;
    border-radius: 0 40px 40px 0;
    padding: 0 20px;
    color: #fff;
    cursor: pointer;
}

/* Sidebar */
.yt-sidebar {
    background: var(--yt-sidebar);
    padding: 12px;
    overflow-y: auto;
}

.yt-nav-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--yt-text-primary);
    text-decoration: none;
}

.yt-nav-item:hover {
    background: var(--yt-hover);
}

.yt-nav-item.active {
    background: var(--yt-hover);
    font-weight: bold;
}

/* Main Content */
.yt-main {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Video Player Container */
.yt-player-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    transition: max-width 0.3s ease;
}

.yt-player-container.theater-mode {
    max-width: 100%;
    height: 80vh;
}

.video-js {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
    overflow: hidden;
}

.yt-player-container.theater-mode .video-js {
    border-radius: 0;
}

/* Video Info */
.yt-video-info {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.yt-video-title {
    font-size: 20px;
    font-weight: bold;
    margin: 12px 0 8px 0;
}

.yt-video-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.yt-action-btn {
    background: var(--yt-hover);
    border: none;
    color: var(--yt-text-primary);
    padding: 8px 16px;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yt-action-btn:hover {
    background: #3f3f3f;
}

/* Input Cards (Styled like YouTube Descriptions/Comments) */
.yt-input-section {
    background: var(--yt-hover);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.yt-input-row {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.yt-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    color: #fff;
    padding: 8px 0;
    flex: 1;
}

.yt-input:focus {
    border-bottom-color: #fff;
    outline: none;
}

/* Video.js Skin Overrides */
.video-js .vjs-big-play-button {
    background-color: rgba(255, 0, 0, 0.9) !important;
    border: none !important;
    border-radius: 12px !important;
    width: 60px !important;
    height: 40px !important;
    line-height: 40px !important;
    margin-left: -30px !important;
    margin-top: -20px !important;
}

.video-js .vjs-control-bar {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent) !important;
}

.video-js .vjs-play-progress {
    background-color: #ff0000 !important;
}

/* Theater Button Icon */
.vjs-theater-control {
    cursor: pointer;
    float: right;
}

/* Responsive */
@media (max-width: 1000px) {
    .yt-container {
        grid-template-columns: 1fr;
        grid-template-rows: 56px 1fr;
    }

    .yt-sidebar {
        display: none;
        /* Mobile drawer logic needed ideally, hiding for now */
    }
}