#pt-body {
    --wc-surface: #fff;
    --wc-tint: #edf2fa;
    --wc-text: #171c2b;
    --wc-border: #dce2ef;
    --studio-canvas: #f6f8fc;
    --studio-brand: #005c85;
    --studio-muted: #526077;
    color: var(--wc-text);
    background: var(--studio-canvas) !important;
}

:root:has(.night-mode-css) #pt-body {
    --wc-surface: #171c2a;
    --wc-tint: #222a3d;
    --wc-text: #f1f4fb;
    --wc-border: #323b50;
    --studio-canvas: #101421;
    --studio-brand: #8edaf4;
    --studio-muted: #a7b4ca;
}

#pt-body a:focus-visible,
#pt-body button:focus-visible,
#pt-body input:focus-visible {
    outline: 2px solid var(--studio-brand);
    outline-offset: 3px;
}

#pt-body .pt_header_nav .navbar-brand img {
    width: 116px;
    height: auto;
}

#pt-body .pt_header_nav .search-header input {
    background: var(--studio-canvas);
}

#pt-body .pt_header_nav .search-header {
    min-width: 0;
    padding-inline: clamp(18px, 5vw, 112px);
}

#pt-body .pt_header_nav .search-header .form-group {
    max-width: 610px;
}

#pt-body .pt_header_nav .search-header input {
    color: var(--wc-text);
    background: var(--studio-canvas) !important;
}

#pt-body .pt_header_nav .search-header input::placeholder {
    color: var(--studio-muted);
}

#pt-body .yp_side_drawer {
    background: var(--wc-surface) !important;
    border-inline-end: 1px solid var(--wc-border);
    box-shadow: none;
}

#pt-body .yp_side_drawer ul.sections {
    border-color: var(--wc-border);
}

#pt-body .yp_side_drawer ul.sections li a {
    width: auto;
    margin-inline: 8px;
    border-radius: 8px;
    color: var(--studio-muted) !important;
}

#pt-body .yp_side_drawer ul.sections li a:hover,
#pt-body .yp_side_drawer ul.sections li.active a {
    color: var(--studio-brand) !important;
    background: var(--wc-tint) !important;
}

#pt-body .yp_side_drawer ul.sections li a::before {
    display: none;
}

#pt-body .yp_side_drawer ul.sections:not(.subs_list) li a {
    min-height: 60px;
    gap: 12px;
}

#pt-body .yp_side_drawer ul.sections li a > svg,
#pt-body .yp_side_drawer ul.sections li a > .wc-games-nav-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin: 0;
}

.wc-games-nav-icon {
    font-size: 30px;
    line-height: 34px;
    text-align: center;
}

@media (min-width: 1252px) {
    #pt-body:not(.side_open) .yp_side_drawer ul.sections li a {
        justify-content: center;
        padding-inline: 0;
    }
}

.wc-discovery {
    max-width: 1720px;
    margin: 0 auto 18px;
    padding: 0 22px;
}

.wc-discovery-links {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 4px 11px;
    scrollbar-width: thin;
    scrollbar-color: var(--wc-border) transparent;
}

.wc-discovery-links a {
    flex: 0 0 auto;
    padding: 7px 13px;
    border: 1px solid var(--wc-border);
    border-radius: 8px;
    color: var(--wc-text);
    background: var(--wc-surface);
    font-weight: 600;
    text-decoration: none;
}

.wc-discovery-links a:hover {
    border-color: var(--studio-brand);
    color: var(--studio-brand);
}

.wc-discovery-links a[aria-current="page"] {
    border-color: var(--studio-brand);
    background: var(--wc-tint);
    color: var(--studio-brand) !important;
}

#pt-body .container-home {
    max-width: 1720px;
    padding-inline: 22px;
}

#pt-body .wc-primary-feed {
    margin-bottom: 28px;
}

#pt-body .wc-primary-feed .wc-video-grid,
#pt-body .wc-browse-page .videos-latest-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 18px;
}

.wc-browse-page .videos-latest-list {
    margin-inline: 0;
}

.wc-browse-page .videos-latest-list::before,
.wc-browse-page .videos-latest-list::after {
    display: none;
}

#pt-body .wc-browse-page .videos-latest-list > [class*="col-"] {
    width: auto;
    min-width: 0;
    padding-inline: 0;
}

.wc-browse-page .videos-latest-list > .empty_state {
    grid-column: 1 / -1;
}

#pt-body .wc-primary-feed .video-list-image a,
#pt-body .video-latest-list .video-thumb a {
    border-radius: 10px;
}

.wc-primary-feed .home-page-categories .title {
    margin-bottom: 14px;
}

.wc-primary-feed .home-page-categories .title h4 > div {
    display: none;
}

#pt-body .wc-featured {
    max-width: 1560px;
    min-height: 265px;
    margin: 0 auto 26px;
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #102842;
}

.wc-featured .pt_feat_vid_innr::before {
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 19, 36, .96), rgba(7, 19, 36, .58) 52%, rgba(7, 19, 36, .24));
}

.wc-featured .pt_feat_vid_content {
    position: relative;
    min-height: 265px;
}

.wc-featured .pt_feat_vid_content .container-home {
    margin: auto 0;
    padding: 30px clamp(24px, 6vw, 80px);
}

.wc-featured .pt_feat_vid_details h1 {
    font-size: clamp(24px, 3vw, 44px);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.wc-feed.pt_home_top_m {
    margin-top: 0;
}

.wc-latest-feed {
    padding: 0;
}

#pt-body .content.wc-latest-feed {
    background: transparent !important;
    box-shadow: none;
}

.wc-card-details {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    min-height: 74px;
    height: auto;
    padding-top: 10px;
}

.wc-card-avatar {
    width: 34px;
    height: 34px;
}

#pt-body .home-page-categories .videos .wc-card-avatar img {
    position: static;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--wc-tint);
    object-fit: cover;
}

.wc-card-text .video-list-title h4 {
    margin-top: 0;
    font-weight: 700;
}

.wc-card-text .video-list-by {
    color: var(--studio-muted);
}

.wc-studio-empty {
    max-width: 720px;
    min-height: 280px;
    margin: 32px auto;
    padding: 32px 18px;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    color: var(--wc-text);
    background: var(--wc-surface);
    border: 1px solid var(--wc-border);
    border-radius: 16px;
}

.wc-empty-icon {
    margin-bottom: 8px;
    color: var(--studio-brand);
    font-size: 25px;
}

.wc-studio-empty h1 {
    margin: 6px 0 18px;
    font-size: clamp(22px, 4vw, 32px);
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.04em;
}

.wc-studio-empty .btn {
    padding: 11px 17px;
    border: 0;
    border-radius: 9px;
    color: var(--wc-surface) !important;
    background: var(--studio-brand);
    font-weight: 700;
}

#pt-body .video-player-page .pt_video_player {
    box-shadow: 0 14px 36px rgba(9, 23, 40, .14);
}

#pt-body .top-video.video-player-page > .row {
    margin-inline: 0;
}

#pt-body .top-video.video-player-page .player-video {
    min-width: 0;
    padding-inline: 12px;
}

#pt-body .video-player-page .pt_video_info {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--wc-border);
    border-radius: 12px;
    background: var(--wc-surface);
}

#pt-body .video-player-page .pt_video_info .video-big-title {
    overflow-wrap: anywhere;
}

.video-player-page .related-header {
    color: var(--wc-text);
    font-weight: 700;
}

.video-player-page .watch-video-description {
    background: var(--wc-surface);
    border: 1px solid var(--wc-border);
    border-radius: 12px;
}

#pt-body .pt_page_headr {
    margin-bottom: 20px;
    padding: 10px 0 14px;
    border-bottom: 1px solid var(--wc-border);
}

#pt-body .pt_page_headr .page_head {
    color: var(--wc-text);
    font-weight: 700;
    letter-spacing: -.02em;
}

.wc-search-page {
    max-width: 1150px !important;
}

#pt-body .settings-sidebar .list-group-item,
#pt-body .login-page .login-form,
#pt-body .pt_upload_vdo,
#pt-body .vid_srch_filtr {
    background: var(--wc-surface);
    border-color: var(--wc-border);
}

#pt-body .login-page .login-form,
#pt-body .pt_upload_vdo,
#pt-body .vid_srch_filtr {
    border: 1px solid var(--wc-border);
    border-radius: 14px;
}

#pt-body .settings-sidebar .list-group-item.active {
    background: var(--wc-tint);
}

#pt-body .settings-sidebar .list-group-item.active a {
    color: var(--studio-brand) !important;
}

#pt-body .profile-container .cover-container {
    border-radius: 14px;
    overflow: hidden;
}

#pt-body .wc-import-page {
    --wc-import-accent: #8edaf4;
    --wc-import-ink: #122130;
    max-width: 1040px;
    padding-top: clamp(12px, 3vw, 32px);
    padding-bottom: 36px;
}

.wc-import-heading {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.wc-import-mark {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    height: 48px;
    color: var(--studio-brand);
    background: var(--wc-tint);
    border: 1px solid var(--wc-border);
    border-radius: 13px;
    font-size: 19px;
}

.wc-import-heading h1 {
    margin: 0 0 5px;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 750;
    letter-spacing: -.025em;
}

.wc-import-heading p,
.wc-import-option p,
#wc-import-supported {
    margin: 0;
    color: var(--studio-muted);
    line-height: 1.5;
}

#pt-body .wc-import-workspace,
#pt-body .wc-import-review > .content {
    padding: clamp(16px, 4vw, 34px);
    background: var(--wc-surface) !important;
    border: 1px solid var(--wc-border);
    border-radius: 16px;
    box-shadow: none;
}

.wc-import-link-form > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

#pt-body .wc-import-link-form #url {
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--wc-border);
    border-radius: 9px;
    background: var(--studio-canvas) !important;
    color: var(--wc-text);
    font-size: 16px;
}

#pt-body .wc-import-link-form #url::placeholder {
    color: var(--studio-muted);
}

#wc-import-supported {
    margin-top: 9px;
    font-size: 13px;
}

.wc-import-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr));
    gap: 12px;
    margin-top: 24px;
}

.wc-import-option {
    padding: 14px;
    background: var(--studio-canvas);
    border: 1px solid var(--wc-border);
    border-radius: 10px;
}

#pt-body .wc-import-option .btn {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-bottom: 8px;
    border: 1px solid var(--wc-border);
    border-radius: 8px;
    background: var(--wc-surface) !important;
    color: var(--wc-text) !important;
    font-weight: 700;
    white-space: normal;
}

#pt-body .wc-import-option .manual-youtube-url {
    background: var(--wc-import-accent) !important;
    color: var(--wc-import-ink) !important;
    border-color: transparent;
}

#pt-body .wc-import-option .btn:hover:not(:disabled) {
    border-color: var(--studio-brand);
}

.wc-import-option p {
    font-size: 13px;
}

.wc-import-review {
    margin-top: 26px;
}

.wc-import-review h2 {
    margin: 0 0 14px;
    font-size: 23px;
}

.wc-import-review .thumbnail-preview {
    overflow: hidden;
    border-radius: 10px;
}

.wc-upload-transfer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid var(--wc-border);
    border-radius: 10px;
    background: var(--wc-tint);
    color: var(--wc-text);
}

.wc-upload-transfer p {
    grid-column: 1 / -1;
    margin: 0;
    overflow-wrap: anywhere;
}

.wc-upload-status {
    font-weight: 700;
}

.wc-upload-transfer progress {
    width: 100%;
    height: 12px;
    align-self: center;
    accent-color: var(--studio-brand);
}

.wc-upload-percent,
.wc-upload-hint {
    color: var(--studio-muted);
    font-size: 13px;
}

.wc-upload-transfer.is-error progress {
    accent-color: #d64455;
}

.wc-thumbnail-picker {
    margin: 12px 0;
}

.wc-thumbnail-picker > p {
    color: var(--studio-muted);
    font-size: 13px;
}

.wc-thumbnail-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.wc-thumbnail-options button {
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 2px solid var(--wc-border);
    border-radius: 8px;
    background: var(--studio-canvas);
}

.wc-thumbnail-options button[aria-pressed="true"] {
    border-color: var(--studio-brand);
}

.wc-thumbnail-options img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.wc-home-games {
    margin-block: 0 28px;
}

.wc-home-games-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.wc-home-games-heading h2 {
    margin: 0;
    font-size: clamp(19px, 3vw, 24px);
    font-weight: 750;
}

.wc-home-games-heading i {
    color: var(--studio-brand);
}

#pt-body .wc-home-games-heading a {
    color: var(--studio-brand) !important;
    font-weight: 700;
}

.wc-home-games-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

#pt-body a.wc-home-game {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--wc-border);
    border-radius: 10px;
    background: var(--wc-surface);
    color: var(--wc-text) !important;
    text-decoration: none;
}

#pt-body a.wc-home-game:hover {
    border-color: var(--studio-brand);
}

.wc-home-game-cover {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--wc-tint);
    color: var(--studio-brand);
    font-size: 28px;
}

.wc-home-game-cover img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.wc-home-game-name {
    display: block;
    padding: 9px 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

@media (max-width: 760px) {
    .wc-home-games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1390px) {
    #pt-body .wc-primary-feed .wc-video-grid,
    #pt-body .wc-browse-page .videos-latest-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #pt-body .wc-primary-feed .wc-video-grid,
    #pt-body .wc-browse-page .videos-latest-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .wc-discovery {
        margin-bottom: 14px;
        padding-inline: 12px;
    }

    #pt-body .wc-featured,
    .wc-featured .pt_feat_vid_content,
    .wc-studio-empty {
        min-height: 250px;
    }

    #pt-body .wc-featured,
    .wc-studio-empty {
        border-radius: 15px;
    }

    #pt-body .container-home {
        padding-inline: 12px;
    }

    .wc-studio-empty {
        margin-inline: 12px;
    }
}

@media (max-width: 520px) {
    #pt-body .wc-primary-feed .wc-video-grid,
    #pt-body .wc-browse-page .videos-latest-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
