/* Custom Player Controls - YouTube 2012 Style */
.custom-player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    padding: 0 10px 10px 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-wrapper:hover .custom-player-controls {
    opacity: 1;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-buffer {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(255,255,255,0.5);
    width: 0%;
}

.progress-played {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #ff3333;
    width: 0%;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #ff3333;
    border-radius: 50%;
    display: none;
}

.progress-bar:hover .progress-handle {
    display: block;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.control-btn:hover {
    opacity: 1;
}

.volume-slider-container {
    display: none;
    width: 80px;
}

.volume-slider-container.show {
    display: block;
}

.volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.3);
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.time-display {
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.time-separator {
    margin: 0 5px;
}

/* Hide default video controls */
#main-video::-webkit-media-controls {
    display: none !important;
}

#main-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Global Reset & Base Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important; /* Force zero rounded corners everywhere */
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #ebebeb; /* Classic 2012 background grey */
    color: #333333;
    font-size: 13px;
    line-height: 1.4;
    overflow-y: scroll;
}

a {
    color: #167ac6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Helper Utilities */
.hidden {
    display: none !important;
}

/* Button & UI elements in 2012 style */
.classic-btn {
    background: #f8f8f8;
    background: linear-gradient(to bottom, #f8f8f8 0%, #ededed 100%);
    border: 1px solid #d3d3d3;
    color: #333;
    font-weight: bold;
    font-size: 11px;
    padding: 6px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.classic-btn:hover {
    background: #f0f0f0;
    background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
    border-color: #c6c6c6;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.classic-btn.primary {
    background: #cc181e;
    background: linear-gradient(to bottom, #cc181e 0%, #b21418 100%);
    border: 1px solid #991316;
    color: white;
}

.classic-btn.primary:hover {
    background: #b21418;
    background: linear-gradient(to bottom, #b21418 0%, #991316 100%);
}

.classic-btn.primary:disabled {
    background: #f0f0f0;
    border: 1px solid #d3d3d3;
    color: #b8b8b8;
    cursor: default;
    box-shadow: none;
}

/* Icon button template */
.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 12px;
    padding: 0;
}

.icon-btn .bar {
    width: 100%;
    height: 2px;
    background-color: #555;
    display: block;
}

/* Beta Warning Banner */
.beta-banner {
    background-color: #cc181e;
    color: #ffffff;
    text-align: center;
    padding: 8px 15px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
}

/* Header styling */
.header-bar {
    background-color: #ffffff;
    height: 50px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 24px;
    display: block;
}

.logo-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 3px;
    margin-top: -3px;
}

.logo-lang-badge {
    font-size: 9px;
    color: #777777;
    font-weight: 600;
    line-height: 1;
}

.logo-beta-badge {
    font-size: 8px;
    color: #cc181e;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
}

/* Search bar styling */
.header-center {
    flex: 0 1 550px;
    margin: 0 15px;
}

.search-box {
    display: flex;
    width: 100%;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    flex: 1;
    height: 30px;
    border: 1px solid #ccc;
    background-color: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    align-items: center;
}

.search-input-wrapper:focus-within {
    border-color: #167ac6;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15), 0 0 3px rgba(22,122,198,0.4);
}

.search-box input[type="text"] {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 10px;
    font-size: 13px;
    outline: none;
}

.keyboard-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    height: 100%;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.keyboard-toggle-btn svg path {
    fill: #555555;
    transition: fill 0.1s;
}

.keyboard-toggle-btn:hover svg path {
    fill: #cc181e;
}

.search-btn {
    background: #f8f8f8;
    background: linear-gradient(to bottom, #f8f8f8 0%, #ededed 100%);
    border: 1px solid #ccc;
    border-left: none;
    width: 65px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-btn:hover {
    background: #f0f0f0;
    background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
    border-color: #b5b5b5;
}

/* Header User Details */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-pic {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.username {
    font-weight: 600;
    font-size: 12px;
    color: #444;
}

/* Login Page */
.login-view {
    margin-top: 50px;
    min-height: calc(100vh - 50px - 100px);
    background-color: #ebebeb;
    padding: 40px 20px;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 30px 35px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-label {
    font-weight: 600;
    font-size: 12px;
    color: #444;
}

.login-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    color: #333;
    background: #fff;
}

.login-input:focus {
    outline: none;
    border-color: #167ac6;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.login-submit {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    margin-top: 6px;
    background: #167ac6;
    background: linear-gradient(to bottom, #167ac6 0%, #1268b0 100%);
    border: 1px solid #0d5a9a;
    color: white;
}

.login-submit:hover {
    background: #1268b0;
    background: linear-gradient(to bottom, #1268b0 0%, #0d5a9a 100%);
}

.login-submit:disabled {
    background: #f0f0f0;
    border: 1px solid #d3d3d3;
    color: #b8b8b8;
    cursor: default;
    box-shadow: none;
}

.register-text {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    margin-bottom: 0;
}

.register-link {
    color: #167ac6;
    font-weight: 600;
}

.register-link:hover {
    text-decoration: underline;
}

/* User Profile (when logged in) */
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-pic {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 0;
    background-color: #fff;
}

.username {
    font-weight: 600;
    font-size: 12px;
    color: #444;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.username-link {
    text-decoration: none;
    color: inherit;
}

.username-link:hover {
    text-decoration: none;
    color: #cc181e;
}

.username-link:hover .username {
    color: #cc181e;
}

#logout-btn {
    font-size: 11px;
    padding: 4px 8px;
}

/* Register Page */
.register-view {
    margin-top: 86px;
    min-height: calc(100vh - 86px - 100px);
    background-color: #ebebeb;
    padding: 40px 20px;
}

.register-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px;
}

.register-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 30px 35px;
}

.register-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.register-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.register-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.register-label {
    font-weight: 600;
    font-size: 12px;
    color: #444;
}

.register-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    color: #333;
    background: #fff;
}

.register-input:focus {
    outline: none;
    border-color: #167ac6;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.register-submit {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    margin-top: 6px;
    background: #167ac6;
    background: linear-gradient(to bottom, #167ac6 0%, #1268b0 100%);
    border: 1px solid #0d5a9a;
    color: white;
}

.register-submit:hover {
    background: #1268b0;
    background: linear-gradient(to bottom, #1268b0 0%, #0d5a9a 100%);
}

.register-submit:disabled {
    background: #f0f0f0;
    border: 1px solid #d3d3d3;
    color: #b8b8b8;
    cursor: default;
    box-shadow: none;
}

/* App Container and Layout */
.app-container {
    display: flex;
    margin-top: 86px;
    min-height: calc(100vh - 86px - 100px); /* Fill space between header and footer */
}

/* Sidebar navigation */
.sidebar {
    width: 200px;
    background-color: #fbfbfb;
    border-right: 1px solid #e8e8e8;
    padding-top: 15px;
    flex-shrink: 0;
    transition: width 0.15s ease-out;
    position: fixed;
    top: 86px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 72px;
}

.nav-group {
    list-style: none;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 7px 15px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
}

.nav-item.active {
    background-color: #eaeaea;
    border-left: 3px solid #cc181e;
}

.nav-item.active a {
    font-weight: bold;
    padding-left: 12px; /* Compensate for active border */
}

.nav-item:not(.active):hover {
    background-color: #f2f2f2;
}

/* Sidebar navigation icon styles (using custom images) */
.nav-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 12px;
    flex-shrink: 0;
}

.sidebar-divider {
    border: 0;
    border-top: 1px solid #e8e8e8;
    margin: 10px 0;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: bold;
    color: #777;
    text-transform: uppercase;
    padding: 5px 15px;
}

.channel-item a {
    display: flex;
    align-items: center;
}

.sub-avatar {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    flex-shrink: 0;
}

/* Collapsed sidebar layout transitions (shows icons only) */
.sidebar.collapsed .nav-text,
.sidebar.collapsed .sidebar-section-title {
    display: none;
}

.sidebar.collapsed .nav-item a {
    justify-content: center;
    padding: 10px 0;
}

.sidebar.collapsed .nav-icon-img {
    margin-right: 0;
    width: 20px;
    height: 20px;
}

.sidebar.collapsed .sub-avatar {
    margin-right: 0;
    width: 20px;
    height: 20px;
}

.sidebar.collapsed .channel-item a {
    justify-content: center;
    padding: 10px 0;
}

.sidebar.collapsed .sidebar-divider {
    margin: 10px 15px;
}

/* Like / Dislike icon style */
.rate-icon-img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    margin-right: 5px;
}

/* Main content workspace */
.main-content {
    flex: 1;
    padding: 20px 25px;
    background-color: #f4f4f4;
    overflow-x: hidden;
    margin-left: 200px;
    padding-top: 30px;
}

.sidebar.collapsed + .main-content {
    margin-left: 72px;
}

/* Category Filter Bar */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 15px;
}

.filter-tag {
    background-color: #ffffff;
    border: 1px solid #d3d3d3;
    color: #555555;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.filter-tag:hover {
    background-color: #f8f8f8;
    border-color: #c6c6c6;
    color: #333333;
}

.filter-tag.active {
    background-color: #555555;
    border-color: #444444;
    color: #ffffff;
}

/* Video Grid layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Video Card in 2012 Grid */
.video-card {
    background-color: #ffffff;
    border: 1px solid #d3d3d3;
    padding: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: box-shadow 0.1s ease-in-out, border-color 0.1s;
}

.video-card:hover {
    border-color: #b5b5b5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.video-card .thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000000;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e2e2;
}

.video-card .thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 1px 3px;
    font-size: 11px;
    font-weight: bold;
}

.video-card .video-details {
    padding-top: 8px;
}

.video-card .video-title {
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px; /* Fix heights for standard layouts */
}

.video-card:hover .video-title {
    color: #cc181e;
}

.video-card .channel-name {
    font-size: 11px;
    color: #666666;
    margin-bottom: 1px;
    font-weight: 600;
}

.video-card .channel-name:hover {
    color: #333333;
    text-decoration: underline;
}

.video-card .video-meta {
    font-size: 11px;
    color: #777777;
}

/* ==========================================================================
   VIDEO PLAYER VIEW STYLING (2012 Layout)
   ========================================================================== */

.player-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    align-items: start;
}

@media (max-width: 900px) {
    .player-layout {
        grid-template-columns: 1fr;
    }
}

.player-left-col {
    background-color: #ffffff;
    border: 1px solid #d3d3d3;
    padding: 15px;
}

/* HTML5 Video Box */
.video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000000;
    border: 1px solid #cccccc;
    position: relative;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
}

/* Video info styling */
#player-video-title {
    font-size: 19px;
    font-weight: 400;
    color: #333333;
    margin: 15px 0 10px 0;
    line-height: 1.3;
}

.player-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.views-count {
    font-size: 18px;
    color: #333;
    font-weight: 400;
}

/* Likes / Dislikes Rating Box */
.rating-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 160px;
}

.rating-buttons {
    display: flex;
    border: 1px solid #d3d3d3;
    margin-bottom: 5px;
}

.rate-btn {
    background: #f8f8f8;
    background: linear-gradient(to bottom, #f8f8f8 0%, #ededed 100%);
    border: none;
    color: #444;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rate-btn:hover {
    background: #efefef;
    color: #111;
}

#like-btn {
    border-right: 1px solid #d3d3d3;
}

.rating-bar-wrapper {
    width: 100%;
    height: 3px;
    background-color: #cc181e; /* Dislike bar (Red) */
    position: relative;
}

.rating-bar-likes {
    height: 100%;
    background-color: #2b9e1b; /* Like bar (Green) */
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.3s;
}

/* Channel and Subscribe Area */
.channel-info-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.channel-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-avatar {
    width: 42px;
    height: 42px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.channel-metadata h3 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.channel-metadata h3:hover {
    text-decoration: underline;
    cursor: pointer;
}

.sub-count {
    font-size: 11px;
    color: #777777;
    display: block;
}

/* Subscribe button */
.retro-sub-btn {
    background: #cc181e;
    background: linear-gradient(to bottom, #e52d27 0%, #cc181e 100%);
    border: 1px solid #b21418;
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    padding: 7px 15px;
    cursor: pointer;
}

.retro-sub-btn:hover {
    background: #b21418;
    background: linear-gradient(to bottom, #d32025 0%, #b21418 100%);
}

.retro-sub-btn.subscribed {
    background: #f0f0f0;
    background: linear-gradient(to bottom, #fafafa 0%, #f0f0f0 100%);
    border-color: #ccc;
    color: #555555;
}

.retro-sub-btn.subscribed:hover {
    background: #e8e8e8;
}

/* Video Description Block */
.description-block {
    background-color: #f5f5f5;
    border: 1px solid #e2e2e2;
    padding: 12px 15px;
    font-size: 13px;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 25px;
}

.upload-date {
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
}

.text-link-btn {
    background: none;
    border: none;
    color: #167ac6;
    font-weight: bold;
    cursor: pointer;
    font-size: 11px;
    padding: 0;
    margin-top: 10px;
    display: block;
}

.text-link-btn:hover {
    text-decoration: underline;
}

/* Comments section */
.comments-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 8px;
    margin-bottom: 18px;
}

.add-comment-container {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.comment-input-wrapper {
    flex: 1;
}

.comment-input-wrapper textarea {
    width: 100%;
    border: 1px solid #ccc;
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    outline: none;
    min-height: 36px;
    overflow-y: hidden;
}

.comment-input-wrapper textarea:focus {
    border-color: #777;
}

.comment-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

/* Comment Lists */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    margin-bottom: 4px;
}

.comment-author {
    font-weight: bold;
    color: #333333;
    font-size: 12px;
}

.comment-time {
    color: #888888;
    font-size: 11px;
    margin-left: 6px;
}

.comment-body {
    font-size: 13px;
    color: #333333;
    line-height: 1.45;
}

.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 11px;
    color: #888;
}

.comment-actions span:hover {
    color: #167ac6;
    cursor: pointer;
}

/* Right Column (Sidebar with Related Videos) */
.player-right-col {
    background-color: #ffffff;
    border: 1px solid #d3d3d3;
    padding: 15px;
}

.related-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 6px;
}

.related-videos-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-card {
    display: flex;
    gap: 10px;
    cursor: pointer;
}

.related-card:hover .related-title-text {
    color: #cc181e;
}

.related-thumb-wrapper {
    width: 120px;
    height: 68px;
    flex-shrink: 0;
    background-color: #000;
    overflow: hidden;
    position: relative;
    border: 1px solid #ccc;
}

.related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-duration {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 0px 2px;
    font-size: 9px;
    font-weight: bold;
}

.related-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.related-title-text {
    font-size: 11px;
    font-weight: 700;
    color: #333333;
    line-height: 1.25;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-channel {
    font-size: 10px;
    color: #666;
    margin-bottom: 1px;
}

.related-meta {
    font-size: 10px;
    color: #888;
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */
.footer-bar {
    background-color: #ffffff;
    border-top: 1px solid #e8e8e8;
    padding: 25px 0;
    margin-top: 40px;
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-logo {
    font-size: 16px;
    font-weight: bold;
    color: #555;
    display: block;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #555;
    font-size: 11px;
    font-weight: bold;
}

.footer-links a:hover {
    color: #cc181e;
}

.copyright-text {
    color: #888888;
    font-size: 11px;
}

/* ==========================================================================
   LANGUAGE SWITCHER STYLING
   ========================================================================== */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    min-width: 130px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 101;
}

.lang-dropdown a {
    color: #333333;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    font-size: 11px;
    font-weight: bold;
    text-align: left;
}

.lang-dropdown a:hover {
    background-color: #f2f2f2;
    color: #cc181e;
    text-decoration: none;
}

.lang-dropdown a.active-lang {
    background-color: #eaeaea;
    color: #444444;
    cursor: default;
    pointer-events: none;
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

/* ==========================================================================
   VIRTUAL KEYBOARD STYLING
   ========================================================================== */
.virtual-keyboard {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 8px;
    width: 535px;
    z-index: 500;
    user-select: none;
}

.keyboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dcdcdc;
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.keyboard-title {
    font-size: 11px;
    font-weight: bold;
    color: #666666;
}

.keyboard-close-btn {
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: #888888;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.keyboard-close-btn:hover {
    color: #cc181e;
}

.keyboard-keys {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.keyboard-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.key-btn {
    background: #ffffff;
    background: linear-gradient(to bottom, #ffffff 0%, #f6f6f6 100%);
    border: 1px solid #cccccc;
    color: #333333;
    font-size: 11px;
    font-weight: bold;
    width: 32px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.key-btn:hover {
    background: #ffffff;
    border-color: #999999;
}

.key-btn:active {
    background: #e6e6e6;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.key-btn.wide-key {
    width: 55px;
}

.key-btn.wider-key {
    width: 75px;
}

.key-btn.space-key {
    flex: 1;
    max-width: 250px;
}

.key-btn.active-caps {
    background: #e2e2e2 !important;
    border-color: #cc181e !important;
    color: #cc181e !important;
}


