body.admin-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar h1 {
    font-size: 18px;
    padding: 24px 20px;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-weight: 700;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar h1::before {
    content: '';
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    border-radius: 10px;
    display: inline-block;
}
.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left-color: #6366f1;
}
.admin-sidebar nav a.logout {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 8px;
    color: #ef4444;
}
.admin-sidebar nav a.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-left-color: #ef4444;
}
.admin-main {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
    max-width: 100%;
}
.admin-main h2 {
    margin: 0 0 28px 0;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.page-meta {
    font-size: 14px;
    color: #64748b;
    margin: -20px 0 24px 0;
    font-weight: 400;
}
.card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}
.card h3 {
    margin: 0 0 20px 0;
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.2px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13.5px;
    color: #334155;
    letter-spacing: 0.1px;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    color: #1e293b;
    transition: all 0.2s;
    background: #f8fafc;
}
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    background: #fff;
    outline: none;
}
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}
.form-group input[type="range"] {
    width: 200px;
}
.form-group input[type="color"] {
    width: 50px;
    height: 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
    background: #f8fafc;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.2s;
    letter-spacing: 0.1px;
}
.btn-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35); }
.btn-secondary { background: #f1f5f9; color: #334155; border: 1.5px solid #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; border-color: #cbd5e1; }
.btn-success { background: #10b981; color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0f172a;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99, 102, 241, 0.45), transparent),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(14, 165, 233, 0.35), transparent);
    padding: 20px;
}
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 48px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
    background: #f8fafc;
}
.upload-area:hover {
    border-color: #6366f1;
    background: #f5f3ff;
}
.upload-area.dragover {
    border-color: #6366f1;
    background: #ede9fe;
    border-style: solid;
}
.upload-area svg {
    width: 56px;
    height: 56px;
    fill: #94a3b8;
    margin-bottom: 16px;
}
.upload-area p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.file-card {
    position: relative;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s;
}
.file-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}
.file-card .thumb {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
}
.file-card .thumb.video-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #6366f1;
    background: linear-gradient(135deg, #ede9fe, #dbeafe);
}
.file-card .info {
    padding: 10px 12px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-card .actions {
    display: flex;
    gap: 6px;
    padding: 0 10px 10px;
}
.file-card .actions form {
    flex: 1;
}
.ticker-preview-bar {
    padding: 16px 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ticker-preview-bar .ticker-text {
    display: inline-block;
    animation: ticker-scroll var(--ticker-speed, 20s) linear infinite;
}
@keyframes ticker-scroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}
.playlist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: grab;
    transition: all 0.2s;
}
.playlist-item:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}
.playlist-item:active { cursor: grabbing; }
.playlist-item .handle {
    color: #cbd5e1;
    font-size: 20px;
    cursor: grab;
    user-select: none;
}
.playlist-item img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}
.playlist-item .item-info {
    flex: 1;
    min-width: 0;
}
.playlist-item .item-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1e293b;
}
.playlist-item .item-type {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}
.playlist-item input[type="number"] {
    width: 80px;
    padding: 6px 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-family: inherit;
    background: #f8fafc;
}
.playlist-item input[type="number"]:focus {
    border-color: #6366f1;
    outline: none;
    background: #fff;
}
.playlist-item .form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1.5px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1.5px solid #fecaca; }