.hidden {
    display: none !important
}

:root {
    --yt-spec-brand-icon-active: red;
    --yt-spec-brand-icon-inactive: #909090;
    --yt-spec-text-primary: #0f0f0f;
    --yt-spec-text-secondary: #606060;
    --yt-spec-general-background-a: #fff;
    --yt-spec-general-background-b: #f9f9f9;
    --yt-spec-general-background-c: #000;
    --yt-spec-static-overlay-background-heavy: rgba(0, 0, 0, .8);
    --yt-spec-static-overlay-background-medium: rgba(0, 0, 0, .6);
    --yt-spec-static-overlay-background-light: rgba(0, 0, 0, .4);
    --yt-spec-button-chip-background-hover: rgba(0, 0, 0, .05);
    --yt-spec-touch-response: rgba(0, 0, 0, .1);
    --yt-spec-brand-button-text: #fff;
    --yt-spec-call-to-action: #065fd4;
    --yt-spec-icon-active-other: #fff;
    --yt-spec-icon-inactive: #fff;
    --yt-spec-icon-disabled: hsla(0, 0%, 100%, .3);
    --yt-spec-text-primary-inverse: #fff;
    --yt-spec-text-secondary-inverse: hsla(0, 0%, 100%, .7);
    --yt-spec-wordmark-text: #fff;
    --yt-spec-decorative-separator: hsla(0, 0%, 100%, .1);
    --yt-spec-10-percent-layer: hsla(0, 0%, 100%, .1);
    --yt-spec-snackbar-background: #0f0f0f;
    --yt-spec-snackbar-text: #fff;
    --yt-spec-suggested-action: #8ab4f8;
    --yt-spec-button-text-disabled: rgba(17, 17, 16, .38);
    --yt-spec-filled-button-focus-outline: rgba(0, 0, 0, .6);
    --yt-spec-call-to-action-inverse: #8ab4f8;
    --yt-spec-brand-link-text: red;
    --yt-spec-error-indicator: red
}

.news-detail-container {
    display: flex;
    gap: 25px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    max-width: 1200px;
    padding: 0 20px
}

.news-detail-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    flex: 2;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
    margin-bottom: 20px;
    padding: 30px
}

.video-section {
    margin-bottom: 30px
}

.youtube-player {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 0;
    color: #fff;
    color: var(--yt-spec-text-primary-inverse);
    font-family: Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    position: relative;
    width: 100%
}

.video-element {
    background: #000;
    -o-object-fit: contain;
    object-fit: contain
}

.loading-overlay,
.video-element {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%
}

.loading-overlay {
    align-items: center;
    background: rgba(0, 0, 0, .8);
    display: flex;
    justify-content: center;
    z-index: 10
}

.loading-spinner {
    animation: spin 1s linear infinite;
    border: 3px solid hsla(0, 0%, 100%, .3);
    border-radius: 50%;
    border-top-color: #fff;
    height: 40px;
    width: 40px
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(1turn)
    }
}

.center-play-overlay {
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 8
}

.center-play-btn,
.center-play-overlay {
    align-items: center;
    display: flex;
    justify-content: center
}

.center-play-btn {
    background: rgba(0, 0, 0, .8);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    height: 48px;
    pointer-events: auto;
    transition: all .2s ease;
    width: 68px
}

.center-play-btn:hover {
    background: rgba(0, 0, 0, .9);
    transform: scale(1.1)
}

.center-play-btn svg {
    fill: #fff;
    height: 24px;
    margin-left: 2px;
    width: 24px
}

.center-play-btn.playing {
    display: none
}

.video-controls {
    background: linear-gradient(transparent, rgba(0, 0, 0, .7));
    bottom: 0;
    left: 0;
    opacity: 0;
    padding: 10px 12px 8px;
    position: absolute;
    right: 0;
    transition: opacity .3s ease, visibility .3s ease;
    visibility: hidden;
    z-index: 9
}

.youtube-player.show-controls .video-controls,
.youtube-player:hover .video-controls {
    opacity: 1;
    visibility: visible
}

.progress-container {
    cursor: pointer;
    height: 20px;
    margin-bottom: 8px;
    position: relative
}

.progress-bar-bg {
    background: hsla(0, 0%, 100%, .4);
    border-radius: 2px;
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: height .1s ease
}

.progress-container:hover .progress-bar-bg {
    height: 5px
}

.progress-bar-buffered {
    background: hsla(0, 0%, 100%, .6)
}

.progress-bar-buffered,
.progress-bar-played {
    border-radius: 2px;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: width .1s ease;
    width: 0
}

.progress-bar-played,
.progress-bar-scrubber {
    background: red;
    background: var(--yt-spec-brand-icon-active)
}

.progress-bar-scrubber {
    border-radius: 50%;
    height: 12px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .1s ease;
    width: 12px
}

.progress-container:hover .progress-bar-scrubber {
    transform: translate(-50%, -50%) scale(1)
}

.progress-preview {
    background: rgba(0, 0, 0, .9);
    border-radius: 2px;
    bottom: 100%;
    color: #fff;
    font-size: 12px;
    left: 0;
    margin-bottom: 8px;
    opacity: 0;
    padding: 4px 8px;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity .1s ease, visibility .1s ease;
    visibility: hidden
}

.progress-container:hover .progress-preview {
    opacity: 1;
    visibility: visible
}

.control-buttons {
    align-items: center;
    display: flex;
    height: 40px;
    justify-content: space-between
}

.control-buttons-left,
.control-buttons-right {
    align-items: center;
    display: flex;
    gap: 8px
}

.control-btn {
    align-items: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: #fff;
    color: var(--yt-spec-icon-inactive);
    cursor: pointer;
    display: flex;
    height: 40px;
    justify-content: center;
    transition: background-color .2s ease;
    width: 40px
}

.control-btn:hover {
    background: hsla(0, 0%, 100%, .1)
}

.control-btn svg {
    fill: currentColor;
    height: 24px;
    width: 24px
}

.control-btn.active {
    color: red;
    color: var(--yt-spec-brand-icon-active)
}

.play-pause-btn {
    height: 48px;
    width: 48px
}

.play-pause-btn svg {
    height: 28px;
    width: 28px
}

.volume-slider-container {
    align-items: center;
    display: flex;
    margin-left: 8px;
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
    visibility: hidden
}

.volume-btn:hover+.volume-slider-container,
.volume-slider-container:hover {
    opacity: 1;
    visibility: visible
}

.volume-slider {
    align-items: center;
    cursor: pointer;
    display: flex;
    height: 40px;
    width: 60px
}

.volume-slider-track {
    background: hsla(0, 0%, 100%, .4);
    border-radius: 2px;
    height: 3px;
    position: relative;
    width: 100%
}

.volume-slider-filled {
    background: #fff;
    border-radius: 2px;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: width .1s ease;
    width: 100%
}

.volume-slider-handle {
    background: #fff;
    border-radius: 50%;
    height: 12px;
    left: 100%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform .1s ease;
    width: 12px
}

.volume-slider:hover .volume-slider-handle {
    transform: translate(-50%, -50%) scale(1.2)
}

.time-display {
    align-items: center;
    color: hsla(0, 0%, 100%, .9);
    display: flex;
    font-feature-settings: "tnum";
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    margin-left: 8px
}

.time-separator {
    margin: 0 2px
}

.settings-menu {
    backdrop-filter: blur(10px);
    background: rgba(28, 28, 28, .9);
    border-radius: 8px;
    bottom: 50px;
    min-width: 200px;
    opacity: 0;
    padding: 8px 0;
    position: absolute;
    right: 12px;
    transform: translateY(10px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    visibility: hidden;
    z-index: 10
}

.settings-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible
}

.settings-item {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    transition: background-color .2s ease
}

.settings-item:hover {
    background: hsla(0, 0%, 100%, .1)
}

.settings-label {
    color: hsla(0, 0%, 100%, .9);
    font-size: 14px
}

.settings-value {
    color: hsla(0, 0%, 100%, .7);
    font-size: 12px;
    margin-right: 8px
}

.chevron-icon {
    fill: hsla(0, 0%, 100%, .7);
    height: 16px;
    width: 16px
}

.gesture-overlay {
    cursor: none;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 7
}

.gesture-overlay.show-cursor {
    cursor: default
}

.gesture-feedback {
    background: rgba(0, 0, 0, .8);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    left: 50%;
    opacity: 0;
    padding: 8px 16px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .2s ease, visibility .2s ease;
    visibility: hidden;
    z-index: 11
}

.gesture-feedback.show {
    opacity: 1;
    visibility: visible
}

.touch-indicator {
    background: hsla(0, 0%, 100%, .3);
    border-radius: 50%;
    height: 44px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: scale(.8);
    transition: opacity .2s ease, transform .2s ease;
    width: 44px;
    z-index: 12
}

.touch-indicator.show {
    opacity: 1;
    transform: scale(1)
}

@media (max-width:768px) {
    .youtube-player {
        font-size: 12px
    }

    .control-btn {
        height: 36px;
        width: 36px
    }

    .control-btn svg {
        height: 20px;
        width: 20px
    }

    .play-pause-btn {
        height: 40px;
        width: 40px
    }

    .play-pause-btn svg {
        height: 24px;
        width: 24px
    }

    .volume-slider-container {
        display: none
    }

    .time-display {
        font-size: 12px
    }

    .center-play-btn {
        height: 44px;
        width: 60px
    }

    .center-play-btn svg {
        height: 20px;
        width: 20px
    }
}

@media (max-width:480px) {
    .video-controls {
        padding: 8px 8px 6px
    }

    .control-buttons {
        height: 36px
    }

    .control-btn {
        height: 32px;
        width: 32px
    }

    .control-btn svg {
        height: 18px;
        width: 18px
    }

    .play-pause-btn {
        height: 36px;
        width: 36px
    }

    .play-pause-btn svg {
        height: 20px;
        width: 20px
    }

    .time-display {
        font-size: 11px
    }

    .progress-container {
        height: 16px
    }

    .progress-bar-scrubber {
        height: 10px;
        width: 10px
    }
}

.youtube-player:fullscreen {
    height: 100vh;
    width: 100vw;
    z-index: 999999
}

.news-sidebar {
    flex: 1;
    margin-top: 45px;
    min-width: 320px;
    padding-left: 15px
}

.sidebar-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    margin-bottom: 25px;
    padding: 25px;
    transition: transform .3s ease, box-shadow .3s ease
}

.sidebar-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    transform: translateY(-2px)
}

.sidebar-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative
}

.sidebar-title:before {
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
    height: 3px;
    width: 40px
}

.sidebar-title:after,
.sidebar-title:before {
    bottom: 0;
    content: "";
    left: 0;
    position: absolute
}

.sidebar-title:after {
    background: linear-gradient(90deg, #007bff, transparent);
    height: 1px;
    width: 100%
}

.sidebar-news-item,
.sidebar-product-item {
    background: hsla(0, 0%, 100%, .6);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    margin-bottom: 18px;
    padding: 15px;
    transition: all .3s ease
}

.sidebar-news-item:hover,
.sidebar-product-item:hover {
    background: hsla(0, 0%, 100%, .9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    transform: translateX(5px)
}

.sidebar-news-item:last-child,
.sidebar-product-item:last-child {
    margin-bottom: 0
}

.sidebar-news-image,
.sidebar-product-image {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    height: 70px;
    margin-right: 15px;
    overflow: hidden;
    transition: transform .3s ease;
    width: 70px
}

.sidebar-news-image:hover,
.sidebar-product-image:hover {
    transform: scale(1.05)
}

.sidebar-news-image img,
.sidebar-product-image img {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform .3s ease;
    width: 100%
}

.sidebar-news-content,
.sidebar-product-content {
    flex: 1
}

.sidebar-news-title,
.sidebar-product-title {
    color: #2c3e50;
    display: -webkit-box;
    font-size: 14px;
    -webkit-line-clamp: 2;
    line-height: 1.5;
    margin-bottom: 8px;
    -webkit-box-orient: vertical;
    font-weight: 500;
    overflow: hidden;
    transition: color .3s ease
}

.sidebar-news-date {
    color: #6c757d;
    font-size: 12px;
    font-weight: 400;
    margin: 0
}

.sidebar-news-link,
.sidebar-product-link {
    color: inherit;
    display: flex;
    height: 100%;
    -webkit-text-decoration: none;
    text-decoration: none;
    width: 100%
}

.sidebar-news-link:hover .sidebar-news-title,
.sidebar-product-link:hover .sidebar-product-title {
    color: #007bff
}

.news-title {
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 20px
}

.news-info {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 25px;
    padding: 15px 0
}

.news-info p {
    color: #6c757d;
    font-size: 14px;
    margin: 0 15px 0 0
}

.ab_img {
    color: #495057;
    line-height: 1.8
}

.pages-list {
    border-top: 1px solid #e9ecef;
    margin-top: 30px;
    padding-top: 20px
}

.pages-list div {
    margin-bottom: 10px
}

.pages-list span {
    color: #6c757d;
    font-weight: 500
}

.pages-list a {
    color: #007bff;
    -webkit-text-decoration: none;
    text-decoration: none;
    transition: color .3s ease
}

.pages-list a:hover {
    color: #0056b3;
    -webkit-text-decoration: underline;
    text-decoration: underline
}

@media (max-width:1024px) {
    .news-detail-container {
        gap: 20px;
        padding: 0 20px
    }

    .news-detail-content {
        padding: 25px
    }

    .news-sidebar {
        margin-top: 30px;
        min-width: 280px
    }

    .sidebar-section {
        padding: 20px
    }
}

@media (max-width:768px) {
    .news-detail-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 12px
    }

    .news-detail-content {
        margin-bottom: 15px;
        padding: 15px
    }

    .news-sidebar {
        margin-top: 0;
        min-width: auto;
        padding-left: 0
    }

    .sidebar-section {
        margin-bottom: 15px;
        padding: 15px
    }

    .sidebar-title {
        font-size: 16px;
        margin-bottom: 15px
    }

    .news-title {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 15px
    }

    .news-info {
        margin-bottom: 20px;
        padding: 12px 0
    }

    .news-info p {
        font-size: 13px
    }

    .sidebar-news-image,
    .sidebar-product-image {
        height: 50px;
        margin-right: 10px;
        width: 50px
    }

    .sidebar-news-title,
    .sidebar-product-title {
        font-size: 12px;
        line-height: 1.4
    }

    .sidebar-news-item,
    .sidebar-product-item {
        margin-bottom: 12px;
        padding: 10px
    }

    .sidebar-news-date {
        font-size: 11px
    }

    .pages-list {
        margin-top: 20px;
        padding-top: 15px
    }

    .pages-list div {
        font-size: 14px;
        margin-bottom: 8px
    }
}

@media (max-width:480px) {

    .sidebar-news-image,
    .sidebar-product-image {
        height: 45px;
        margin-right: 8px;
        width: 45px
    }

    .sidebar-news-title,
    .sidebar-product-title {
        font-size: 11px
    }

    .sidebar-news-item,
    .sidebar-product-item {
        padding: 8px
    }
}