body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    color: #222;
}

* {
    box-sizing: border-box;
}

.topbar {
    background: #1f2937;
    color: #fff;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.topbar-inner {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0;
}

.brand {
    font-size: 16px;
    font-weight: 700;
}

.topnav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.topnav a {
    color: #fff;
    text-decoration: none;
}

.topnav a:hover {
    text-decoration: underline;
}

.auth-main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px;
}

.content-area {
    min-width: 0;
}

.sidebar {
    min-width: 0;
}

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 24px;
}

.sidebar-title {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #111827;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-weight: 600;
}

.sidebar-link:hover {
    background: #f9fafb;
}

.sidebar-link.active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.sidebar-link.is-disabled {
    color: #9ca3af;
    background: #f9fafb;
    border-color: #e5e7eb;
    cursor: default;
}

.sidebar-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 960px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .auth-main,
    .admin-shell {
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.flash-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.flash-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.muted {
    color: #6b7280;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fff;
    border: 0;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.button.secondary {
    background: #6b7280;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #fff;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #f9fafb;
    white-space: nowrap;
}

.admin-table td {
    word-break: break-word;
}

.actions-cell {
    white-space: nowrap;
    width: 1%;
}

@media (max-width: 900px) {
    .hide-md {
        display: none;
    }
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        align-items: flex-start;
    }

    .topnav {
        gap: 12px;
    }

    .card {
        padding: 16px;
    }

    .hide-sm {
        display: none;
    }
}

/* =========================
   Form layout
   ========================= */

.form-card {
    max-width: 900px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    margin-top: 4px;
}

.checkbox-inline input {
    width: auto;
    margin: 0;
}

.info-box {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.info-box p {
    margin: 6px 0 0;
}

.list-compact {
    margin: 0;
    padding-left: 18px;
}

.page-title {
    margin-top: 0;
    margin-bottom: 8px;
}

.page-subtitle {
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        max-width: 100%;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.stat-label {
    margin: 0 0 8px;
    font-size: 14px;
    color: #6b7280;
}

.stat-value {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: #111827;
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.info-list {
    margin: 0;
    padding-left: 18px;
}

.info-list li + li {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 26px;
    }
}

.topnav a {
    position: relative;
    padding-bottom: 4px;
}

.topnav a.active {
    font-weight: 700;
}

.topnav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .topnav a.active::after {
        bottom: -3px;
    }
}

/* =========================
   Breadcrumb / page header
   ========================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.page-header-main {
    min-width: 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumbs a {
    color: #374151;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #9ca3af;
}

.breadcrumb-current {
    color: #111827;
    font-weight: 600;
}

.page-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 13px;
        margin-bottom: 8px;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-neutral {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.mt-10 {
    margin-top: 10px;
}

.role-badge-superadmin {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #c4b5fd;
}

.role-badge-admin {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.role-badge-uploader {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
}

.inline-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-form {
    margin-top: 16px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}

.result-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.result-count {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.result-meta {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

.filter-chip-clear {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 16px;
}

.pagination-link,
.pagination-current,
.pagination-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    text-decoration: none;
}

.pagination-link {
    background: #ffffff;
    color: #111827;
}

.pagination-link:hover {
    background: #f9fafb;
}

.pagination-current {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    font-weight: 700;
}

.pagination-disabled {
    background: #f9fafb;
    color: #9ca3af;
    border-color: #e5e7eb;
}

@media (max-width: 768px) {
    .result-bar {
        align-items: stretch;
    }

    .active-filters {
        width: 100%;
    }
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 12px;
    color: #6b7280;
    font-size: 14px;
}

.filter-form {
    margin-top: 16px;
}

.filter-form input,
.filter-form select {
    margin-bottom: 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(120px, 120px) auto;
    gap: 12px;
    align-items: end;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-self: end;
}

.filter-actions .button,
.filter-actions button {
    height: 42px;
    margin: 0;
}

@media (max-width: 1100px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        grid-column: auto;
    }
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.empty-state {
    padding: 20px 0;
    color: #6b7280;
}

.mono {
    font-family: Consolas, Monaco, monospace;
}

@media (max-width: 768px) {
    .table-toolbar {
        align-items: stretch;
    }
}

.category-filter-grid {
    grid-template-columns: minmax(240px, 2fr) minmax(140px, 1fr) minmax(120px, 120px) auto;
}

@media (max-width: 1100px) {
    .category-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-filter-grid .filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .category-filter-grid {
        grid-template-columns: 1fr;
    }

    .category-filter-grid .filter-actions {
        grid-column: auto;
    }
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 36px;
    padding: 0 12px;
}

.icon-button-icon {
    font-size: 14px;
    line-height: 1;
}

.icon-button-text {
    line-height: 1;
}

@media (max-width: 768px) {
    .icon-button-text {
        display: none;
    }

    .hide-mobile {
        display: none;
    }
}

.icon-only-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
}

.icon-only-button .icon-button-icon {
    font-size: 14px;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

.user-col-name {
    min-width: 180px;
}

.user-col-email {
    min-width: 260px;
}

.nowrap-cell {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

.video-col-title {
    min-width: 260px;
}

.video-col-file {
    min-width: 240px;
}

.upload-card {
    max-width: 1100px;
}

.upload-progress-wrap {
    margin-top: 16px;
}

.upload-progress {
    width: 100%;
    height: 14px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    width: 0;
    background: #111827;
    transition: width 0.2s ease;
}

.upload-progress-meta {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #4b5563;
}

.upload-status-box {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
}

.is-hidden {
    display: none !important;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    resize: vertical;
}

@media (max-width: 768px) {
    .video-col-title,
    .video-col-file {
        min-width: 220px;
    }
}

.video-col-title {
    min-width: 260px;
}

.video-col-category {
    min-width: 150px;
}

.video-col-file {
    min-width: 240px;
}

.video-col-size {
    min-width: 90px;
    white-space: nowrap;
}

.video-col-date {
    min-width: 130px;
    white-space: nowrap;
}

.video-category-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.video-status-draft {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.video-status-published {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.video-status-hidden {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.file-name-cell {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-head {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .video-col-title {
        min-width: 220px;
    }

    .video-col-category {
        min-width: 130px;
    }

    .video-col-file {
        min-width: 220px;
    }
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.table-actions .icon-only-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
}

.table-actions .icon-button-icon {
    font-size: 14px;
    line-height: 1;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.table-action-form {
    margin: 0;
}

.icon-action-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
}

.icon-action-button.warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.icon-action-button.warning:hover {
    background: #ffedd5;
}

.icon-action-button.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.icon-action-button.success:hover {
    background: #d1fae5;
}

.video-edit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.video-edit-grid > div {
    min-width: 0;
}

.video-meta-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.video-meta-item {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}

.video-meta-label {
    margin: 0 0 6px;
    font-size: 13px;
    color: #6b7280;
}

.video-meta-value {
    margin: 0;
    color: #111827;
    font-weight: 600;
    word-break: break-word;
}

.video-file-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.upload-panel {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.upload-panel-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.upload-help {
    margin: 0 0 14px;
    color: #6b7280;
}

@media (max-width: 900px) {
    .video-edit-grid {
        grid-template-columns: 1fr;
    }

    .video-meta-list {
        grid-template-columns: 1fr;
    }
}

.icon-action-button.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.icon-action-button.info:hover {
    background: #dbeafe;
}

.icon-action-button.neutral {
    background: #f9fafb;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    cursor: not-allowed;
}

.icon-action-button:disabled {
    opacity: 1;
}

.embed-icon-code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.copy-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    padding: 12px 14px;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.copy-toast.is-error {
    background: #991b1b;
}

.embed-panel {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.embed-panel-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.embed-code-box {
    width: 100%;
    min-height: 92px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
	max-width: 100%;
    box-sizing: border-box;
}

.embed-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.icon-action-button.player {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.icon-action-button.player:hover {
    background: #e0e7ff;
}

.cover-preview-box {
    margin-top: 16px;
}

.video-cover-preview {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.cover-preview-box {
    margin-top: 16px;
    max-width: 100%;
    overflow: hidden;
}

.cover-panel {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.cover-panel-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.cover-help {
    margin: 0 0 14px;
    color: #6b7280;
}

.player-recommend-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.player-recommend-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-recommend-card.is-no-thumb {
    min-height: 118px;
}

.section-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.section-subtitle {
    margin: 0 0 14px;
    color: #6b7280;
}

.panel-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.panel-subtitle {
    margin: 0 0 14px;
    color: #6b7280;
}

.video-file-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.video-col-cover {
    width: 92px;
    min-width: 92px;
}

.video-cover-thumb {
    display: block;
    width: 72px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.video-cover-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-grid-secondary {
    margin-top: 0;
}

.stat-value-sm {
    font-size: 22px;
}

.recent-videos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-video-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.recent-video-thumb {
    width: 88px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.recent-video-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.recent-video-main {
    min-width: 0;
}

.recent-video-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.recent-video-meta {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.recent-video-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .recent-video-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .recent-video-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .recent-video-thumb,
    .recent-video-thumb-fallback {
        width: 72px;
        height: 42px;
    }
}

@media (max-width: 768px) {
    .recent-video-item {
        grid-template-columns: 1fr;
    }

    .recent-video-thumb,
    .recent-video-thumb-fallback {
        width: 100%;
        height: 160px;
    }
}

.dashboard-welcome {
    margin-bottom: 16px;
}

.dashboard-welcome-text {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.recent-videos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-video-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    overflow: hidden;
}

.recent-video-media {
    width: 88px;
    min-width: 88px;
    max-width: 88px;
}

.recent-video-thumb {
    display: block;
    width: 88px;
    height: 50px;
    min-width: 88px;
    max-width: 88px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.recent-video-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 50px;
    min-width: 88px;
    max-width: 88px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.recent-video-main {
    min-width: 0;
}

.recent-video-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.recent-video-meta {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.recent-video-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.recent-video-actions .button {
    min-height: 36px;
    padding: 8px 12px;
}

.recent-video-status {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .recent-video-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .recent-video-media {
        width: 72px;
        min-width: 72px;
        max-width: 72px;
    }

    .recent-video-thumb,
    .recent-video-thumb-fallback {
        width: 72px;
        height: 42px;
        min-width: 72px;
        max-width: 72px;
    }

    .recent-video-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .recent-video-item {
        grid-template-columns: 1fr;
    }

    .recent-video-media {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .recent-video-thumb,
    .recent-video-thumb-fallback {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 180px;
    }
}