.view--video {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.video-studio {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    overflow: hidden;
}

.video-studio__sidebar {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-height: 0;
    overflow-y: auto;
}

.video-studio__main {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-height: 0;
    overflow-y: auto;
}

.video-source-card,
.video-settings-card {
    padding: .85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
}

.video-source-card__title {
    margin: 0 0 .25rem;
    font-size: .95rem;
    font-weight: 600;
}

.video-source-card__intro {
    margin: 0 0 .65rem;
    font-size: .66rem;
    line-height: 1.45;
    color: var(--text-subtle);
}

.video-source-card__preview {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-source-card__preview img,
.video-source-card__preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-source-card__placeholder {
    margin: 0;
    padding: .5rem;
    font-size: .68rem;
    color: var(--text-subtle);
    text-align: center;
}

.video-source-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .6rem;
}

.video-source-picker {
    margin-top: .65rem;
    padding-top: .55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.video-source-picker__label {
    margin: 0 0 .4rem;
    font-size: .64rem;
    font-weight: 600;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.video-source-picker__strip {
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    padding-bottom: .2rem;
}

.video-source-picker__item {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s;
}

.video-source-picker__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-source-picker__item:hover,
.video-source-picker__item--active {
    border-color: rgba(96, 165, 250, 0.75);
}

.video-settings-card__label {
    margin: 0 0 .5rem;
    font-size: .72rem;
    font-weight: 600;
}

.video-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem .6rem;
}

.video-cost-estimate {
    margin: .55rem 0 0;
    font-size: .66rem;
    color: var(--text-subtle);
}

.video-prompt-bar {
    padding: .65rem .85rem .75rem;
    border: 1px solid rgba(59, 130, 246, 0.32);
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 58, 138, 0.07) 100%);
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.video-prompt-bar--collapsed .video-prompt-bar__intro {
    display: none;
}

.video-prompt-bar__toggle {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: 100%;
    margin: 0;
    padding: .15rem 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.video-prompt-bar__toggle:hover {
    color: #93c5fd;
}

.video-prompt-bar__toggle-label {
    flex: 1;
}

.video-prompt-bar__badge {
    flex-shrink: 0;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .15rem .45rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe;
}

.video-prompt-bar__chevron {
    flex-shrink: 0;
    font-size: .72rem;
    opacity: .7;
}

.video-prompt-bar__intro {
    margin: 0;
    font-size: .66rem;
    line-height: 1.45;
    color: var(--text-subtle);
}

.video-prompt-bar__body {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding-top: .25rem;
}

.video-prompt-groups {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.video-prompt-bar__section {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.video-prompt-group__label {
    margin: 0;
    font-size: .68rem;
    font-weight: 600;
    color: var(--text);
}

.video-prompt-group__hint {
    font-weight: 400;
    color: var(--text-subtle);
}

.video-prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.video-prompt-chip {
    padding: .32rem .55rem;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius-pill);
    background: rgba(59, 130, 246, 0.08);
    color: #bfdbfe;
    font-size: .64rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.video-prompt-chip:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(147, 197, 253, 0.55);
    color: #eff6ff;
}

.video-prompt-chip--active {
    background: rgba(59, 130, 246, 0.28);
    border-color: rgba(147, 197, 253, 0.75);
    color: #fff;
}

.video-prompt-shell {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.video-prompt-shell textarea {
    width: 100%;
    min-height: 72px;
    padding: .65rem .75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-family: inherit;
    font-size: .78rem;
    line-height: 1.45;
    resize: vertical;
}

.video-generate-btn {
    align-self: flex-start;
}

.video-progress {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .75rem;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.video-progress p {
    margin: 0;
    font-size: .72rem;
}

.video-error {
    margin: 0;
    padding: .55rem .75rem;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
    font-size: .72rem;
}

.video-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .65rem;
}

.video-result-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.video-result-card video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

.video-result-card__label {
    padding: .4rem .5rem;
    font-size: .62rem;
    color: var(--text-subtle);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Toys bar in composer */
.studio-toys-bar {
    margin-bottom: .65rem;
    padding: .65rem .85rem .75rem;
    border: 1px solid rgba(168, 85, 247, 0.32);
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(168, 85, 247, 0.1) 0%, rgba(88, 28, 135, 0.07) 100%);
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.studio-toys-bar--collapsed .studio-toys-bar__intro {
    display: none;
}

.studio-toys-bar__toggle {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: 100%;
    margin: 0;
    padding: .15rem 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.studio-toys-bar__toggle:hover {
    color: #d8b4fe;
}

.studio-toys-bar__toggle-label {
    flex: 1;
}

.studio-toys-bar__badge {
    flex-shrink: 0;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .15rem .45rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(168, 85, 247, 0.45);
    background: rgba(168, 85, 247, 0.14);
    color: #e9d5ff;
}

.studio-toys-bar__chevron {
    flex-shrink: 0;
    font-size: .72rem;
    opacity: .7;
}

.studio-toys-bar__intro {
    margin: 0;
    font-size: .66rem;
    line-height: 1.45;
    color: var(--text-subtle);
}

.studio-toys-bar__body {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding-top: .25rem;
}

.studio-toys-groups {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.studio-toys-bar__section {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.studio-toys-group__label {
    margin: 0;
    font-size: .68rem;
    font-weight: 600;
    color: var(--text);
}

.studio-toys-group__hint {
    font-weight: 400;
    color: var(--text-subtle);
}

.studio-toys-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.studio-toys-chip {
    padding: .32rem .55rem;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-pill);
    background: rgba(168, 85, 247, 0.08);
    color: #e9d5ff;
    font-size: .64rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.studio-toys-chip:hover {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(216, 180, 254, 0.55);
    color: #faf5ff;
}

.studio-toys-chip--active {
    background: rgba(168, 85, 247, 0.28);
    border-color: rgba(216, 180, 254, 0.75);
    color: #fff;
}

