.oabtube-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 0 10px;
    color: inherit;
    font-family: inherit;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.oabtube-shell * {
    box-sizing: border-box;
}

.oabtube-shell,
.oabtube-shell p,
.oabtube-shell li,
.oabtube-shell td,
.oabtube-shell th,
.oabtube-shell a,
.oabtube-shell button {
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    hyphens: none !important;
    word-break: normal !important;
}

.oabtube-hero,
.oabtube-api-guide > .oabtube-guide-grid article,
.oabtube-empty,
.oabtube-ai,
.oabtube-submit {
    border: 1px solid #e3ded6;
    border-radius: 8px;
    background: #fff;
}

.oabtube-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    margin-bottom: 14px;
}

.oabtube-hero h1,
.oabtube-watch h1,
.oabtube-api-guide h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.oabtube-hero p,
.oabtube-api-guide p,
.oabtube-submit p {
    max-width: 860px;
    hyphens: none;
    text-align: left !important;
}

.oabtube-primary,
.oabtube-search button,
.oabtube-submit button,
.oabtube-material-form button,
.oabtube-chat-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #2e3438;
    color: #fff;
    text-decoration: none;
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
}

.oabtube-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin: 0 0 14px;
}

.oabtube-search input,
.oabtube-submit input,
.oabtube-submit textarea,
.oabtube-material-form textarea,
.oabtube-material-form select,
.oabtube-chat textarea,
.oabtube-chat select {
    width: 100%;
    border: 1px solid #d8d2ca;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    color: inherit;
    background: #fff;
}

.oabtube-layout,
.oabtube-watch-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.oabtube-watch-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.oabtube-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
}

.oabtube-sidebar a,
.oabtube-sidebar span {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.oabtube-sidebar a:hover,
.oabtube-sidebar a.is-active {
    background: #f2eee8;
}

.oabtube-side-group {
    margin-top: 12px;
}

.oabtube-side-group strong {
    display: block;
    padding: 0 10px 4px;
    font-size: 0.88rem;
    color: #6b625b;
}

.oabtube-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.oabtube-card {
    min-width: 0;
}

.oabtube-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #241f20;
    color: #fff;
    text-decoration: none;
}

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

.oabtube-thumb span {
    display: grid;
    min-height: 100%;
    place-items: center;
    font-weight: 700;
}

.oabtube-card h2 {
    margin: 9px 0 4px;
    font-size: 1rem;
    line-height: 1.25;
}

.oabtube-card h2 a {
    color: inherit;
    text-decoration: none;
}

.oabtube-card p {
    margin: 0 0 4px;
    font-size: 0.92rem;
    color: #4f4b47;
}

.oabtube-meta {
    font-size: 0.84rem;
    color: #736a63;
}

.oabtube-player {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.oabtube-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.oabtube-back {
    display: inline-block;
    margin-bottom: 10px;
    color: inherit;
}

.oabtube-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.oabtube-actions button {
    border: 1px solid #d8d2ca;
    border-radius: 8px;
    background: #fff;
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
}

.oabtube-actions button.is-active {
    border-color: #8f151b;
    color: #8f151b;
    background: #fff6f6;
}

.oabtube-description {
    padding: 12px 0;
    border-top: 1px solid #eee8df;
}

.oabtube-ai,
.oabtube-submit,
.oabtube-empty {
    margin-top: 18px;
    padding: 18px;
}

.oabtube-ai-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
    margin-bottom: 12px;
}

.oabtube-ai-head h2,
.oabtube-submit h2,
.oabtube-comments h2,
.oabtube-watch aside h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.oabtube-ai-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 16px;
}

.oabtube-material-form,
.oabtube-chat-form,
.oabtube-submit form {
    display: grid;
    gap: 10px;
}

.oabtube-material-form label,
.oabtube-chat-controls label,
.oabtube-submit label {
    display: grid;
    gap: 5px;
    font-weight: 600;
}

.oabtube-chat-log {
    height: 300px;
    overflow: auto;
    border: 1px solid #e3ded6;
    border-radius: 8px;
    padding: 10px;
    background: #faf8f5;
    margin: 10px 0;
}

.oabtube-msg {
    max-width: 92%;
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 8px;
    white-space: pre-wrap;
    line-height: 1.45;
    background: #fff;
    border: 1px solid #eee8df;
}

.oabtube-msg-user {
    margin-left: auto;
    background: #f0f3ef;
}

.oabtube-msg-system {
    color: #5d554e;
    background: #fff8ea;
}

.oabtube-ai-output {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e3ded6;
    border-radius: 8px;
    background: #faf8f5;
}

.oabtube-ai-blocked {
    padding: 14px;
    border: 1px solid #e5c8c2;
    border-radius: 8px;
    background: #fff8f6;
}

.oabtube-comments {
    margin-top: 18px;
}

.oabtube-comment {
    border-top: 1px solid #eee8df;
    padding: 10px 0;
}

.oabtube-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.oabtube-api-guide > .oabtube-guide-grid article {
    padding: 16px;
}

.oabtube-api-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #fff;
}

.oabtube-api-table th,
.oabtube-api-table td {
    border: 1px solid #e3ded6;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.oabtube-api-table th {
    background: #f4f0ea;
}

.oabtube-error {
    color: #8f151b;
}

.is-busy {
    opacity: 0.65;
}

@media (max-width: 980px) {
    .oabtube-layout,
    .oabtube-watch-layout,
    .oabtube-ai-grid,
    .oabtube-guide-grid {
        grid-template-columns: 1fr;
    }

    .oabtube-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .oabtube-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .oabtube-shell {
        padding: 12px 0 8px;
    }

    .oabtube-hero,
    .oabtube-ai-head {
        display: block;
    }

    .oabtube-primary,
    .oabtube-search button,
    .oabtube-submit button,
    .oabtube-material-form button,
    .oabtube-chat-form button {
        width: 100%;
        white-space: normal;
    }

    .oabtube-search {
        grid-template-columns: 1fr;
    }

    .oabtube-grid,
    .oabtube-sidebar {
        grid-template-columns: 1fr;
    }
}
