@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/roboto-300.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/roboto-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/roboto-500.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/roboto-700.ttf') format('truetype');
}

:root {
    --yt-bg: #ffffff;
    --yt-text: #0f0f0f;
    --yt-text-secondary: #606060;
    --yt-border: #e5e5e5;
    --yt-card-bg: #f9f9f9;
    --yt-hover-bg: #f2f2f2;
    --yt-pill-bg: #f2f2f2;
    --yt-pill-hover: #e5e5e5;
    --yt-red: #ff0000;
    --yt-blue: #065fd4;
    --yt-subscribe-hover: #272727;
    --yt-submit-active-text: #ffffff;
    --yt-submit-disabled-bg: #f2f2f2;
    --yt-submit-disabled-text: #909090;
    --yt-thumb-gradient: linear-gradient(135deg, #f2f2f2 0%, #e5e5e5 100%);
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --header-height: 56px;
    --border-radius-large: 12px;
    --border-radius-medium: 8px;
    --border-radius-round: 50%;
}

.yt-dark-theme {
    --yt-bg: #0f0f0f;
    --yt-text: #f1f1f1;
    --yt-text-secondary: #aaaaaa;
    --yt-border: #3f3f3f;
    --yt-card-bg: #212121;
    --yt-hover-bg: #383838;
    --yt-pill-bg: #272727;
    --yt-pill-hover: #3f3f3f;
    --yt-red: #ff0000;
    --yt-blue: #3ea6ff;
    --yt-subscribe-hover: #d9d9d9;
    --yt-submit-active-text: #0f0f0f;
    --yt-submit-disabled-bg: #272727;
    --yt-submit-disabled-text: #717171;
    --yt-thumb-gradient: linear-gradient(135deg, #181818 0%, #2a2a2a 100%);
}


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

body {
    background-color: var(--yt-bg);
    color: var(--yt-text);
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--yt-bg);
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}


.icon {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.icon-small {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.icon-comment {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.icon-badge {
    width: 14px;
    height: 14px;
    color: var(--yt-text-secondary);
}


.yt-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--yt-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
}

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

.menu-btn {
    background: none;
    border: none;
    color: var(--yt-text);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    background-color: var(--yt-pill-hover);
}

.logo-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.yt-logo {
    width: 90px;
    height: 30px;
    color: var(--yt-text);
}

.country-code {
    font-size: 10px;
    color: var(--yt-text-secondary);
    position: absolute;
    top: 0;
    right: -16px;
    font-weight: 500;
}

.header-center {
    display: flex;
    align-items: center;
    flex: 0 1 728px;
    gap: 16px;
    margin: 0 16px;
}

.search-form {
    display: flex;
    flex: 1;
    height: 40px;
}

.search-box {
    display: flex;
    align-items: center;
    flex: 1;
    background-color: var(--yt-bg);
    border: 1px solid var(--yt-border);
    border-right: none;
    border-radius: 40px 0 0 40px;
    padding: 0 4px 0 16px;
    position: relative;
}

.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--yt-text);
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.search-box input::placeholder {
    color: #888;
}

.keyboard-btn {
    background: none;
    border: none;
    color: var(--yt-text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.keyboard-btn:hover {
    color: var(--yt-text);
}

.search-btn {
    width: 64px;
    background-color: var(--yt-pill-bg);
    border: 1px solid var(--yt-border);
    border-radius: 0 40px 40px 0;
    color: var(--yt-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: var(--yt-pill-hover);
}

.mic-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-round);
    background-color: var(--yt-pill-bg);
    border: none;
    color: var(--yt-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mic-btn:hover {
    background-color: var(--yt-pill-hover);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-icon-btn {
    background: none;
    border: none;
    color: var(--yt-text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.action-icon-btn:hover {
    background-color: var(--yt-pill-hover);
}

.notification-btn .notification-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    background-color: var(--yt-red);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 10px;
    border: 2px solid var(--yt-bg);
}


.user-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border-radius: var(--border-radius-round);
    user-select: none;
    text-transform: uppercase;
}

.header-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, #7b1fa2, #e040fb);
}


.yt-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 402px;
    gap: 24px;
    max-width: 1750px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 24px) 24px 24px;
}

.main-content {
    display: flex;
    flex-direction: column;
}


.video-player-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    position: relative;
}

.video-player-mock {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}


.video-placeholder-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1c1a27 0%, #0d0b11 50%, #151e33 100%);
    position: relative;
}

.video-placeholder-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: white;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 2;
}

.play-icon-large {
    width: 68px;
    height: 48px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    transition: transform 0.25s cubic-bezier(0, 0, 0.2, 1), filter 0.25s ease;
}

.play-icon-large path {
    fill: rgba(255, 0, 0, 0.9);
    transition: fill 0.2s ease;
}

.video-player-mock:hover .play-icon-large {
    transform: scale(1.12);
}

.video-player-mock:hover .play-icon-large path {
    fill: #ff0000;
}

.play-text {
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}


.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 24px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 3;
}

.video-player-mock:hover .player-controls {
    opacity: 1;
    transform: translateY(0);
}


.progress-bar-container {
    height: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.progress-bar-container:hover {
    height: 6px;
}

.progress-bar-bg {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    border-radius: 2px;
}

.progress-bar-loaded {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 35%;
    background-color: rgba(255, 255, 255, 0.3);
}

.progress-bar-current {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 15%;
    background-color: var(--yt-red);
}

.progress-handle {
    width: 12px;
    height: 12px;
    background-color: var(--yt-red);
    border-radius: var(--border-radius-round);
    position: absolute;
    left: calc(15% - 6px);
    top: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.1s ease;
}

.progress-bar-container:hover .progress-handle {
    transform: translateY(-50%) scale(1);
}


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

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

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--border-radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.volume-slider {
    width: 52px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider-active {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80%;
    background-color: white;
}

.time-display {
    color: #e1e1e1;
    font-size: 12px;
    margin-left: 8px;
}


.video-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--yt-text);
    margin: 16px 0 12px;
    line-height: 1.35;
}


.video-meta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}


.channel-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.channel-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-right: 12px;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
}

.channel-info {
    display: flex;
    flex-direction: column;
    margin-right: 24px;
}

.channel-name-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.channel-name {
    font-weight: 500;
    font-size: 16px;
    color: var(--yt-text);
}

.verified-badge {
    color: var(--yt-text-secondary);
    display: flex;
    align-items: center;
}

.sub-count {
    font-size: 12px;
    color: var(--yt-text-secondary);
}

.subscribe-btn {
    background-color: var(--yt-text);
    color: var(--yt-bg);
    border: none;
    padding: 10px 16px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.15s ease;
}

.subscribe-btn:hover {
    background-color: var(--yt-subscribe-hover);
}

.subscribe-btn.subscribed {
    background-color: var(--yt-border);
    color: var(--yt-text);
}

.subscribe-btn.subscribed:hover {
    background-color: rgba(0, 0, 0, 0.15);
}


.action-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.like-dislike-pill {
    display: flex;
    align-items: center;
    background-color: var(--yt-pill-bg);
    border-radius: 40px;
    overflow: hidden;
}

.like-btn, .dislike-btn {
    background: none;
    border: none;
    color: var(--yt-text);
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.dislike-btn {
    padding-left: 12px;
    padding-right: 16px;
}

.like-btn:hover, .dislike-btn:hover {
    background-color: var(--yt-pill-hover);
}

.dislike-btn svg, .comment-dislike-btn svg {
    transform: scaleY(-1);
}

.separator-vertical {
    width: 1px;
    height: 20px;
    background-color: var(--yt-border);
}

.action-btn {
    background-color: var(--yt-pill-bg);
    border: none;
    color: var(--yt-text);
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.15s ease;
}

.action-btn:hover {
    background-color: var(--yt-pill-hover);
}

.action-btn-circle {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-round);
    background-color: var(--yt-pill-bg);
    border: none;
    color: var(--yt-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.action-btn-circle:hover {
    background-color: var(--yt-pill-hover);
}


.video-description-box {
    background-color: var(--yt-pill-bg);
    border-radius: var(--border-radius-large);
    padding: 12px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.video-description-box:hover {
    background-color: var(--yt-pill-hover);
}

.description-header {
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.view-count, .publish-date {
    color: var(--yt-text);
    font-weight: 500;
}

.hashtags {
    color: var(--yt-blue);
}

.description-content p {
    margin-bottom: 8px;
    color: var(--yt-text);
    font-size: 14px;
}


.description-more-text {
    display: none;
}

.description-box-expanded .description-more-text {
    display: block;
}

.promo-link-container {
    margin-top: 16px !important;
    padding: 12px;
    background-color: rgba(62, 166, 255, 0.08);
    border-left: 3px solid var(--yt-blue);
    border-radius: 4px;
}

.promo-link {
    color: var(--yt-blue);
    text-decoration: none;
    font-weight: 500;
}

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

.description-toggle-btn {
    background: none;
    border: none;
    color: var(--yt-text);
    font-weight: 500;
    cursor: pointer;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}


.comments-section-reduced {
    max-width: 50%;
    border-top: 1px solid var(--yt-border);
    padding-top: 24px;
    margin-top: 8px;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
}

.comments-count {
    font-size: 18px;
    font-weight: 700;
}

.sort-comments-btn {
    background: none;
    border: none;
    color: var(--yt-text);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}


.add-comment-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
    flex-shrink: 0;
}

.current-user-avatar {
    background: linear-gradient(135deg, #00b0ff, #00e5ff);
}

.add-comment-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.add-comment-input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--yt-border);
    color: var(--yt-text);
    padding: 4px 0 8px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border-bottom-color 0.2s ease;
}

.add-comment-input-wrapper input:focus {
    border-bottom: 2px solid var(--yt-text);
    padding-bottom: 7px;
}


.add-comment-actions {
    display: none;
    justify-content: flex-end;
    gap: 8px;
    align-self: flex-end;
}

.comment-cancel-btn {
    background: none;
    border: none;
    color: var(--yt-text);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
}

.comment-cancel-btn:hover {
    background-color: var(--yt-pill-hover);
}

.comment-submit-btn {
    background-color: var(--yt-submit-disabled-bg);
    color: var(--yt-submit-disabled-text);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: default;
}

.comment-submit-btn.active {
    background-color: var(--yt-blue);
    color: var(--yt-submit-active-text);
    cursor: pointer;
}

.comment-submit-btn.active:hover {
    filter: brightness(1.1);
}


.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.comment-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-author-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-author {
    font-weight: 500;
    font-size: 13px;
    color: var(--yt-text);
}

.comment-time {
    font-size: 12px;
    color: var(--yt-text-secondary);
}

.comment-text {
    font-size: 13.5px;
    color: var(--yt-text);
    line-height: 1.45;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.comment-like-btn, .comment-dislike-btn {
    background: none;
    border: none;
    color: var(--yt-text);
    padding: 6px;
    border-radius: var(--border-radius-round);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-like-btn:hover, .comment-dislike-btn:hover {
    background-color: var(--yt-pill-hover);
}

.comment-likes-count {
    font-size: 12px;
    color: var(--yt-text-secondary);
    margin-left: 2px;
}

.comment-like-btn.liked {
    color: var(--yt-blue);
}

.comment-like-btn.liked .comment-likes-count {
    color: var(--yt-blue);
}

.reply-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--yt-text);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
}

.reply-text:hover {
    background-color: var(--yt-pill-hover);
}


.reply-item {
    margin-left: 44px;
    margin-top: -12px;
}

.reply-to {
    color: var(--yt-blue);
    font-weight: 500;
}


.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-heading {
    font-size: 16px;
    font-weight: 500;
    color: var(--yt-text);
    margin-bottom: 4px;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rec-item {
    display: flex;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}

.rec-item:hover {
    transform: translateY(-2px);
}

.video-thumbnail-placeholder {
    width: 168px;
    height: 94px;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background-color: #000;
}

.thumb-gradient {
    width: 100%;
    height: 100%;
    background: var(--yt-thumb-gradient);
    transition: opacity 0.2s ease;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.rec-item:hover .thumb-img {
    transform: scale(1.03);
    filter: brightness(0.95);
}

.rec-item:hover .thumb-gradient {
    filter: brightness(0.9);
}

.play-icon-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: var(--border-radius-round);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rec-item:hover .play-icon-small {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.duration-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0,0,0,0.8);
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 1px 4px;
    border-radius: 4px;
}

.rec-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rec-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--yt-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-channel {
    font-size: 12px;
    color: var(--yt-text-secondary);
}

.rec-views-time {
    font-size: 12px;
    color: var(--yt-text-secondary);
}


#order {
    display: none;
    margin: 24px auto;
    max-width: 600px;
    width: 100%;
}

.formFb {
    box-sizing: border-box;
    max-width: 600px;
    width: 100%;
    font-size: 17px;
    padding: 1.2em 1.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    border-radius: 0.5em;
    background-image: linear-gradient(90deg, #3580ed 50%, transparent 50%),
                      linear-gradient(90deg, #3580ed 50%, transparent 50%),
                      linear-gradient(0deg, #3580ed 50%, transparent 50%),
                      linear-gradient(0deg, #3580ed 50%, transparent 50%);
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-size: 10px 2px, 10px 2px, 2px 10px, 2px 10px;
    animation: marching-ants 400ms infinite linear;
    background-color: #fff;
    box-shadow: 0 8px 30px rgba(53, 128, 237, 0.15);
}

.yt-dark-theme .formFb {
    background-color: #1e1e1e;
    color: #f1f1f1;
}

@keyframes marching-ants {
    0% {
        background-position: 0 0, 10px 100%, 0 10px, 100% 0;
    }
    100% {
        background-position: 10px 0, 0 100%, 0 0, 100% 10px;
    }
}

.formFb__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.formFb__text {
    display: block;
    margin: 0;
}

.formFb__action {
    margin-bottom: 0.5em;
    text-align: center;
    font-size: 1.1em;
    color: #222;
}

.yt-dark-theme .formFb__action {
    color: #f1f1f1;
}

.formFb__counter {
    font-size: 0.95em;
    text-align: center;
    color: #333;
}

.yt-dark-theme .formFb__counter {
    color: #ccc;
}

.formFb__counter span {
    font-weight: bold !important;
}

.formFb__counter .red {
    color: #f20 !important;
}

.formFb__img {
    max-width: 250px;
    margin: 1em 0;
    text-align: center;
}

.formFb__img img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.formFb__price {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 0.5em 0;
}

.formFb__price--p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.formFb__price--old {
    font-size: 1.25em;
    text-decoration: line-through;
    color: #888;
}

.formFb__price--txt {
    margin-bottom: 0.35em;
    font-weight: bold;
    font-size: 1.25em;
    color: #333;
}

.yt-dark-theme .formFb__price--txt {
    color: #eee;
}

.formFb__price--new {
    font-size: 2.2em;
    font-weight: bold;
    color: #f20;
}

.formFb__timer {
    margin: 1.2em 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.formFb__timer p {
    margin-bottom: 0.25em;
    font-size: 1em;
    color: #333;
}

.yt-dark-theme .formFb__timer p {
    color: #ccc;
}

.formFb__inputs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1em;
    max-width: 320px;
    width: 100%;
}

.formFb__inputs label {
    font-size: 0.95em;
    margin-bottom: 0.35em;
    align-self: flex-start;
    color: #333;
    font-weight: 600;
}

.yt-dark-theme .formFb__inputs label {
    color: #ddd;
}

.formFb__inputs input {
    display: block;
    border: 1px solid rgba(53, 120, 229, 0.4);
    border-radius: 4px;
    padding: 0.7em 0.85em;
    width: 100%;
    margin: 0 auto;
    font-size: 16px;
    outline: none;
    background: #fff;
    color: #111;
    transition: border-color 0.2s ease;
}

.yt-dark-theme .formFb__inputs input {
    background: #2b2b2b;
    color: #fff;
    border-color: rgba(62, 166, 255, 0.4);
}

.formFb__inputs input:focus {
    border-color: #3580ed;
}

.formFb__btn {
    width: 100%;
    max-width: 320px;
    padding: 0.75em 0;
    margin-bottom: 1em;
    background: #3580ed;
    border: 1px solid #3580ed;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    color: #fff;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.formFb__btn:hover,
.formFb__btn:active {
    transform: scale(0.98);
    background: #2868c7;
}


.comment-avatar-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.comment-avatar-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}


@media (max-width: 1018px) {
    .yt-container {
        grid-template-columns: 1fr;
        padding: calc(var(--header-height) + 16px) 16px 16px;
    }

    .sidebar {
        margin-top: 24px;
    }

    .comments-section-reduced {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-center {
        display: none;
    }

    .video-title {
        font-size: 16px;
    }

    .video-meta-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .action-buttons {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .action-buttons::-webkit-scrollbar {
        height: 3px;
    }

    .formFb {
        padding: 1em 0.8em;
    }

    .formFb__price--new {
        font-size: 1.8em;
    }
}


