.cot-vp-shell {
    --cot-page: #ffffff;
    --cot-text: #0f0f0f;
    --cot-muted: #606060;
    --cot-line: rgba(0,0,0,0.08);
    --cot-card: #f2f2f2;
    --cot-hover: rgba(0,0,0,0.04);
    --cot-accent: #ff0033;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(1560px, calc(100vw - 48px));
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    margin: 24px 0 32px;
    color: var(--cot-text);
    font-family: Arial, Helvetica, sans-serif;
}

.cot-vp-main,
.cot-vp-sidebar {
    min-width: 0;
}

.cot-vp-player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
}

.cot-vp-player {
    width: 100%;
    height: clamp(440px, 42vw, 650px);
    min-height: 440px;
    max-height: 650px;
    background: #000;
}

.cot-vp-player iframe,
.cot-vp-player > div,
.cot-vp-player video {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.cot-vp-big-play {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    inset: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none;
    cursor: pointer;
    z-index: 2;
}

.cot-vp-big-play span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 50px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.82);
    box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.cot-vp-big-play span::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 15px;
    border-left: 16px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.cot-vp-shell.is-playing .cot-vp-big-play {
    opacity: 0;
    pointer-events: none;
}

.cot-vp-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 16px 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.62) 55%, rgba(0,0,0,0.92) 100%);
    z-index: 3;
}

.cot-vp-progress {
    width: 100%;
    height: 4px;
    margin: 0 0 12px;
    background: rgba(255,255,255,0.22);
    overflow: hidden;
    border-radius: 999px;
}

.cot-vp-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: #ff0000;
    border-radius: 999px;
}

.cot-vp-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cot-vp-actions-left,
.cot-vp-actions-right {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cot-vp-icon-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
}

.cot-vp-icon-btn:hover {
    background: rgba(255,255,255,0.12);
}

.cot-vp-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

.cot-vp-icon-play::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    border-left: 10px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

.cot-vp-shell.is-playing .cot-vp-icon-play::before {
    content: '';
    left: 4px;
    top: 2px;
    width: 4px;
    height: 14px;
    border: 0;
    background: #fff;
    box-shadow: 7px 0 0 #fff;
}

.cot-vp-icon-prev::before,
.cot-vp-icon-prev::after,
.cot-vp-icon-next::before,
.cot-vp-icon-next::after {
    content: '';
    position: absolute;
    top: 3px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.cot-vp-icon-prev::before {
    left: 2px;
    border-right: 7px solid #fff;
}

.cot-vp-icon-prev::after {
    left: 9px;
    border-right: 7px solid #fff;
}

.cot-vp-icon-next::before {
    right: 2px;
    border-left: 7px solid #fff;
}

.cot-vp-icon-next::after {
    right: 9px;
    border-left: 7px solid #fff;
}

.cot-vp-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    color: #f1f1f1;
    font-size: 13px;
    white-space: nowrap;
}

.cot-vp-time-sep {
    opacity: 0.65;
}


.cot-vp-forward-label {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.cot-vp-speed-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #f1f1f1;
}

.cot-vp-speed-label {
    font-size: 12px;
    color: #f1f1f1;
    white-space: nowrap;
}

.cot-vp-speed {
    min-width: 72px;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
}

.cot-vp-speed:focus {
    outline: 2px solid rgba(255,255,255,0.35);
    outline-offset: 2px;
}

.cot-vp-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-size: 12px;
    color: #f1f1f1;
    white-space: nowrap;
}

.cot-vp-content {
    padding-top: 16px;
}

.cot-vp-title {
    margin: 0 0 14px;
    color: #0f0f0f;
    font-size: clamp(28px, 2.2vw, 40px);
    line-height: 1.22;
    font-weight: 700;
}

.cot-vp-channel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.cot-vp-channel-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cot-vp-channel-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #ff0033;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
}

.cot-vp-channel-copy {
    display: grid;
    gap: 3px;
}

.cot-vp-channel-name {
    color: #0f0f0f;
    font-size: 16px;
    line-height: 1.2;
}

.cot-vp-channel-note {
    color: #606060;
    font-size: 13px;
    line-height: 1.2;
}

.cot-vp-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f2f2f2;
    color: #0f0f0f;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.cot-vp-toggle-wrap input {
    margin: 0;
    accent-color: #ff0033;
}

.cot-vp-description-box {
    padding: 16px 18px;
    border-radius: 14px;
    background: #f2f2f2;
}

.cot-vp-description {
    margin: 0;
    color: #0f0f0f;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

.cot-vp-sidebar {
    padding-top: 6px;
}

.cot-vp-sidebar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cot-vp-sidebar-head h3 {
    margin: 0;
    color: #0f0f0f;
    font-size: 20px;
    font-weight: 700;
}

.cot-vp-sidebar-count {
    color: #606060;
    font-size: 13px;
}

.cot-vp-list {
    display: grid;
    gap: 8px;
}

.cot-vp-item {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    padding: 8px;
    margin: 0;
    border: 0;
    border-radius: 14px;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease;
}

.cot-vp-item:hover,
.cot-vp-item.is-active {
    background: #f2f2f2;
}

.cot-vp-item.is-active .cot-vp-item-title {
    color: #0f0f0f;
}

.cot-vp-item.is-active .cot-vp-thumb::after {
    content: 'Now playing';
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(0,0,0,0.84);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cot-vp-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.cot-vp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cot-vp-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 4px;
    font-size: 12px;
    line-height: 1.1;
    border-radius: 4px;
    background: rgba(0,0,0,0.85);
    color: #fff;
}

.cot-vp-item-copy {
    min-width: 0;
}

.cot-vp-item-title {
    margin: 0 0 6px;
    color: #0f0f0f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cot-vp-item-text {
    color: #606060;
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cot-vp-empty {
    padding: 18px;
    border-radius: 12px;
    background: #f5f5f5;
    color: #111;
}

@media (max-width: 1280px) {
    .cot-vp-shell {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .cot-vp-sidebar {
        order: 2;
        padding-top: 0;
    }

    .cot-vp-player {
        height: min(56.5vw, 650px);
        min-height: 360px;
    }
}

@media (max-width: 767px) {
    .cot-vp-shell {
        gap: 18px;
        width: 100%;
        margin: 20px 0 28px;
    }

    .cot-vp-player-wrap {
        border-radius: 12px;
    }

    .cot-vp-player {
        height: min(56.5vw, 420px);
        min-height: 240px;
    }

    .cot-vp-controls {
        padding: 0 10px 10px;
    }

    .cot-vp-controls-row {
        flex-wrap: wrap;
    }

    .cot-vp-title {
        font-size: clamp(24px, 7vw, 32px);
    }

    .cot-vp-channel-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cot-vp-item {
        grid-template-columns: 140px minmax(0, 1fr);
        padding: 6px;
    }
}

@media (max-width: 520px) {
    .cot-vp-item {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .cot-vp-brand-mark {
        display: none;
    }
}

.cot-vp-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    background: #000;
}

.cot-vp-poster.is-visible {
    opacity: 1;
}

.cot-vp-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.32) 100%);
}

.cot-vp-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* === Up Next Fix === */

.cot-vp-item {
    gap: 8px;
}

.cot-vp-thumb img {
    object-fit: cover;
    object-position: center center;
}

.cot-vp-item-title {
    font-size: 15px;
    line-height: 1.3;
    -webkit-line-clamp: 3;
}

.cot-vp-item-text {
    font-size: 12px;
    opacity: 0.85;
}

.cot-vp-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
}


/* === Up Next compact title layout fix === */
.cot-vp-list {
    gap: 14px;
}

.cot-vp-item {
    display: grid !important;
    grid-template-columns: 168px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 0 !important;
    border-radius: 0 !important;
    white-space: normal !important;
}

.cot-vp-item:hover,
.cot-vp-item.is-active {
    background: transparent !important;
}

.cot-vp-thumb {
    width: 168px;
    max-width: 100%;
    border-radius: 16px;
}

.cot-vp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.cot-vp-item-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    white-space: normal !important;
}

.cot-vp-item-title {
    display: -webkit-box !important;
    width: 100% !important;
    margin: 0 !important;
    color: #0f0f0f !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
}

.cot-vp-item-text {
    display: none !important;
}

@media (max-width: 767px) {
    .cot-vp-item {
        grid-template-columns: 160px minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .cot-vp-thumb {
        width: 160px;
        border-radius: 14px;
    }

    .cot-vp-item-title {
        font-size: 14px !important;
    }
}

@media (max-width: 520px) {
    .cot-vp-item {
        grid-template-columns: 144px minmax(0, 1fr) !important;
    }

    .cot-vp-thumb {
        width: 144px;
        border-radius: 12px;
    }

    .cot-vp-item-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
}
