.cast-embed {
    position: relative;
    display: block;
    max-width: 800px;
    margin: 12px 0;
    border-radius: 6px;
    overflow: hidden;
    background: #121314;
}

.cast-embed:empty:before {
    content: "\7EC8\7AEF\5F55\5C4F\52A0\8F7D\4E2D...";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    color: #8b949e;
    font-size: 13px;
}

.cast-embed.cast-embed-error {
    color: #f85149;
    background: #161b22;
    border: 1px solid rgba(248, 81, 73, 0.4);
    padding: 10px 14px;
    font-size: 13px;
    word-break: break-all;
}

.cast-embed.cast-embed-error:empty:before {
    content: none;
}

.cast-embed .cast-embed-config {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    padding: 0 8px;
    height: 22px;
    line-height: 22px;
    font-size: 12px;
    color: #c9d1d9;
    background: hsla(215, 8%, 47%, 0.4);
    border: 1px solid rgba(240, 246, 252, 0.1);
    border-radius: 11px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    outline: none;
}

.cast-embed .cast-embed-config:hover {
    background: hsla(215, 8%, 47%, 0.7);
    color: #fff;
}

.cast-embed:hover .cast-embed-config {
    opacity: 1;
}

@media (hover: none) {
    .cast-embed .cast-embed-config {
        opacity: 1;
    }
}

.op-icon.fa.cast-help-icon:before,
.op-icon.fa.cast-upload-icon:before {
    vertical-align: middle;
}

.cast-dialog .el-dialog__body {
    padding: 10px 20px 0;
}

.cast-dialog .cast-tabs .el-tabs__header {
    margin-bottom: 12px;
}

.cast-dialog .cast-file-picker {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: #f7f8fa;
    border: 1px dashed #d9dde3;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s,
    background 0.15s;
}

.cast-dialog .cast-file-picker:hover {
    border-color: #409eff;
    background: #f0f7ff;
}

.cast-dialog .cast-file-picker > i {
    font-size: 22px;
    color: #909399;
    margin-right: 12px;
}

.cast-dialog .cast-file-picker .cast-file-picker-text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.7;
    color: #909399;
    word-break: break-all;
}

.cast-dialog .cast-file-picker .cast-file-picker-text strong {
    font-size: 13px;
    color: #303133;
}

.cast-dialog .cast-file-picker .cast-file-picker-text code {
    padding: 0 4px;
    background: #eef0f3;
    border-radius: 3px;
    color: #606266;
}

.cast-dialog .cast-src-form {
    margin-bottom: 4px;
}

.cast-dialog .cast-src-form .cast-src-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.cast-dialog .cast-src-form .cast-src-row .el-input {
    flex: 1 1 auto;
    min-width: 0;
}

.cast-dialog .cast-src-form .cast-src-row .el-button {
    flex: 0 0 auto;
    margin-left: 8px;
    padding: 9px 10px;
}

.cast-dialog .cast-src-form .cast-src-row .el-button span {
    margin-left: 2px;
}

.cast-dialog .cast-form .el-form-item {
    margin-bottom: 14px;
}

.cast-dialog .cast-form-tip {
    font-size: 12px;
    line-height: 1.6;
    color: #a0a4aa;
    margin-top: 2px;
}

.cast-dialog .cast-inline-nums {
    display: flex;
    align-items: center;
    width: 100%;
}

.cast-dialog .cast-inline-nums .cast-num {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.cast-dialog .cast-inline-nums .cast-num .el-input__inner {
    text-align: center;
    padding-left: 0;
    padding-right: 35px;
}

.cast-dialog .cast-inline-nums .cast-unit {
    flex: 0 0 auto;
    margin: 0 6px 0 4px;
    color: #606266;
    font-size: 13px;
}

.cast-dialog .cast-idle .cast-idle-switch {
    flex: 0 0 auto;
    margin-right: 10px;
}

.cast-dialog .cast-idle .cast-idle-off {
    flex: 1 1 auto;
    color: #c0c4cc;
    font-size: 13px;
}

.cast-dialog .cast-size-tip {
    margin: -6px 0 10px;
}

.cast-dialog .cast-snippet {
    margin: 4px 0 16px;
}

.cast-dialog .cast-snippet .cast-snippet-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #909399;
    margin-bottom: 6px;
}

.cast-dialog .cast-snippet .cast-snippet-title .cast-snippet-copy {
    font-size: 14px;
    color: #909399;
    cursor: pointer;
    transition: color 0.15s;
    position: relative;
    bottom: -30px;
    right: 5px;
}

.cast-dialog .cast-snippet .cast-snippet-title .cast-snippet-copy:hover {
    color: #409eff;
}

.cast-dialog .cast-snippet pre {
    margin: 0;
    padding: 10px 21px 10px 12px;
    background: #f6f8fa;
    border: 1px solid #eaecef;
    border-radius: 4px;
    font-family: Consolas, Menlo, monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #24292f;
    white-space: pre-wrap;
    word-break: break-all;
}

.cast-dialog .cast-help {
    font-size: 13px;
    color: #303133;
}

.cast-dialog .cast-help .cast-help-intro {
    margin: 0 0 8px;
}

.cast-dialog .cast-help pre {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #f6f8fa;
    border: 1px solid #eaecef;
    border-radius: 4px;
    font-family: Consolas, Menlo, monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.cast-dialog .cast-help code {
    padding: 0 4px;
    background: #f0f2f5;
    border-radius: 3px;
    font-family: Consolas, Menlo, monospace;
    font-size: 12px;
}

.cast-dialog .cast-help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 12px;
}

.cast-dialog .cast-help-table td,
.cast-dialog .cast-help-table th {
    padding: 8px 10px;
    border: 1px solid #ebeef5;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.cast-dialog .cast-help-table th {
    background: #fafbfc;
    font-weight: 600;
    white-space: nowrap;
}

.cast-dialog .cast-help-table td:nth-child(3) {
    color: #606266;
    word-break: break-all;
}

.cast-dialog .cast-help-table .cast-help-desc {
    margin-top: 2px;
    color: #909399;
    font-size: 12px;
}

.cast-dialog .cast-help-note {
    margin: 0;
    color: #909399;
    font-size: 12px;
}

.ap-player .ap-overlay-help > div {
    overflow-y: auto;
    max-height: 92%;
    margin-bottom: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.ap-player .ap-overlay-help > div::-webkit-scrollbar {
    width: 6px;
}

.ap-player .ap-overlay-help > div::-webkit-scrollbar-track {
    background: transparent;
}

.ap-player .ap-overlay-help > div::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.ap-player .ap-overlay-help > div::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.ap-player .ap-overlay-help > div div {
    font-size: clamp(12px, 1.9 cqw, 16px);
    padding: clamp(12px, 3 cqw, 28px);
}

.ap-player .ap-overlay-help > div div p {
    margin: 0 0 1em 0;
}

.ap-player .ap-overlay-help > div div ul li {
    margin: 0 0 0.5em 0;
}

.cast-embed {
    margin: 12px 0 !important;
}

.cast-embed .cast-embed-config {
    display: none !important;
}
