/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #B91C1C;
    border-color: #B91C1C;
    color: white;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ====== CARDS ====== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

a.card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.card-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--surface-alt);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-title a {
    color: var(--text);
}

.card-title a:hover {
    color: var(--primary);
}

.card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ====== FORMS ====== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-inline {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-inline .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 150px;
}

/* ====== PASSWORD EYE ====== */
.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrap .form-control {
    padding-left: 44px;
    flex: 1;
}

.password-eye {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--transition);
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0.4;
}

.password-eye:hover {
    background: rgba(139,38,53,0.06);
    opacity: 0.7;
}

.password-eye svg {
    width: 20px;
    height: 20px;
}

.password-eye .eye-open { display: none; }
.password-eye .eye-closed { display: block; }

.password-eye.open { opacity: 1; }
.password-eye.open .eye-open { display: block; }
.password-eye.open .eye-closed { display: none; }
.password-eye.open svg { stroke: var(--primary); }

/* ====== AUTH FORMS ====== */
.auth-container {
    max-width: 440px;
    margin: 40px auto;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.75rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-trainer {
    background: rgba(44, 95, 45, 0.1);
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-trainer:hover {
    background: var(--secondary);
    color: white;
}

.btn-yandex {
    background: #FC3F1D;
    color: white;
    border-color: #FC3F1D;
}

.btn-yandex:hover {
    background: #E03415;
    border-color: #E03415;
    color: white;
}

/* ====== TABLE ====== */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--surface-alt);
}

tr:hover td {
    background: var(--surface-alt);
}

/* ====== BADGES ====== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-primary { background: rgba(139,38,53,0.1); color: var(--primary); }

button.badge-remove {
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--transition);
}

button.badge-remove:hover {
    background: rgba(220,38,38,0.2);
    color: var(--danger);
}
.badge-success { background: rgba(22,163,74,0.1); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-danger { background: rgba(220,38,38,0.1); color: var(--danger); }
.badge-info { background: rgba(59,130,246,0.1); color: var(--info); }

/* ====== PAGINATION ====== */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 32px;
    list-style: none;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139,38,53,0.05);
}

.pagination .active span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ====== EMPTY STATE ====== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state h3 {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.empty-state p {
    margin-bottom: 20px;
}

/* ====== BREADCRUMB ====== */
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    color: var(--text-muted);
    list-style: none;
}

.breadcrumb li + li::before {
    content: '›';
    margin-right: 8px;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* ====== PAGE HEADER ====== */
.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ====== STATS ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ====== SCHEDULE TABLE ====== */
.schedule-day {
    font-weight: 600;
    color: var(--primary);
}

/* ====== VIDEO CARD ====== */
.video-card .card-img {
    position: relative;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-access {
    position: absolute;
    top: 8px;
    left: 8px;
}

/* ====== VIDEO PLAYER ====== */
.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.video-player iframe,
.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ====== FORUM ====== */
a.forum-category {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    transition: box-shadow var(--transition), border-color var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.forum-category:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    color: inherit;
}

.forum-category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border-radius: 50%;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.forum-category-info {
    flex: 1;
}

.forum-category-info h3 {
    margin-bottom: 2px;
}

.forum-category-info h3 a {
    color: var(--text);
}

.forum-category-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

a.forum-topic-row,
.forum-topic-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
    text-decoration: none;
    color: inherit;
}

a.forum-topic-row:hover {
    background: var(--surface-alt);
    color: inherit;
}

.forum-topic-row.pinned {
    background: rgba(139,38,53,0.03);
    border-left: 3px solid var(--primary);
}

.topic-title {
    flex: 1;
    font-weight: 500;
    color: var(--text);
}

a.forum-topic-row:hover .topic-title span {
    color: var(--primary);
}

.topic-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.topic-stats {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-shrink: 0;
}

/* ====== FORUM POST ====== */
.forum-post {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.post-author {
    width: 120px;
    text-align: center;
    flex-shrink: 0;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-alt);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.post-username {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2px;
}

.post-rank {
    font-size: 0.8rem;
    color: var(--text-light);
}

.post-body {
    flex: 1;
}

.post-content {
    line-height: 1.7;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ====== MAP ====== */
#map {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.map-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.map-filters .form-control {
    max-width: 250px;
}

/* ====== CRM NAV ====== */
.crm-nav {
    display: flex;
    gap: 2px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
    overflow-x: auto;
}

.crm-nav-item {
    padding: 10px 18px;
    border-radius: var(--radius) var(--radius) 0 0;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    text-decoration: none;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.crm-nav-item:hover {
    color: var(--primary);
    background: rgba(139,38,53,0.05);
}

.crm-nav-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.crm-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.crm-filters {
    margin-bottom: 20px;
}

.crm-filters .form-inline {
    gap: 8px;
}

/* ====== CRM DASHBOARD ====== */
.grid-today {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.session-card .card-body {
    padding: 16px;
}

.session-time {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 6px;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.session-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stats-mini {
    display: flex;
    gap: 12px;
    margin: 12px 0;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 8px;
    background: var(--surface-alt);
    border-radius: var(--radius);
}

.stat-mini-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-mini-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.club-finance {
    margin: 8px 0;
    font-size: 0.9rem;
}

.finance-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.finance-row.unpaid {
    color: var(--danger);
}

.club-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* ====== CLIENTS ====== */
.client-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.client-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-bar-mini {
    width: 60px;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--success);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.text-sm {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.text-muted {
    color: var(--text-muted);
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.row-cancelled {
    opacity: 0.5;
}

/* ====== GROUPS ====== */
.group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.group-schedule {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 6px;
}

.group-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.group-count {
    font-weight: 600;
    color: var(--primary);
}

.group-members-list {
    list-style: none;
}

.group-member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.group-member-item:last-child {
    border-bottom: none;
}

/* ====== ATTENDANCE V2 ====== */
.attendance-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.attendance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

.attendance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.attendance-card[data-status="present"] {
    border-color: var(--success);
    background: rgba(22,163,74,0.04);
}

.attendance-card[data-status="late"] {
    border-color: var(--warning);
    background: rgba(245,158,11,0.04);
}

.attendance-card[data-status="absent"] {
    border-color: var(--danger);
    background: rgba(220,38,38,0.04);
}

.attendance-card-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.attendance-buttons {
    display: flex;
    gap: 4px;
}

.att-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.att-btn:hover {
    transform: scale(1.1);
}

.att-present.active {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.att-late.active {
    background: var(--warning);
    border-color: var(--warning);
    color: white;
}

.att-absent.active {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

/* ====== CALENDAR ====== */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.calendar-header h1 {
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.calendar-weekday {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    background: var(--surface-alt);
}

.calendar-weekday.weekend {
    color: var(--danger);
}

.calendar-day {
    min-height: 100px;
    padding: 6px;
    background: var(--surface);
    vertical-align: top;
}

.calendar-day.empty {
    background: var(--surface-alt);
}

.calendar-day.today {
    background: rgba(139,38,53,0.06);
}

.calendar-day.today .day-number {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day.has-sessions {
    cursor: pointer;
}

.day-number {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--text);
}

.day-sessions {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.day-session-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(139,38,53,0.08);
    color: var(--primary);
    text-decoration: none;
    transition: background var(--transition);
}

.day-session-item:hover {
    background: rgba(139,38,53,0.15);
    color: var(--primary);
}

.session-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.session-club-mini {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ====== ADMIN ====== */
.admin-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
    overflow-x: auto;
}

.admin-nav a {
    padding: 8px 16px;
    border-radius: var(--radius) var(--radius) 0 0;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--primary);
    background: rgba(139,38,53,0.05);
}

/* ====== RESPONSIVE HELPERS ====== */
@media (max-width: 768px) {
    .auth-card { padding: 24px; }
    .forum-post { flex-direction: column; }
    .post-author { width: auto; text-align: left; display: flex; align-items: center; gap: 8px; }
    .post-avatar { margin: 0; width: 36px; height: 36px; font-size: 1rem; }
    .topic-stats { display: none; }
    .form-inline { flex-direction: column; }
    #map { height: 400px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .crm-nav { gap: 0; }
    .crm-nav-item { padding: 8px 12px; font-size: 0.85rem; }
    .crm-actions { flex-direction: column; }
    .attendance-grid { grid-template-columns: 1fr; }
    .calendar-grid { font-size: 0.8rem; }
    .calendar-day { min-height: 60px; padding: 4px; }
    .day-session-item { font-size: 0.65rem; }
    .calendar-header h1 { font-size: 1.3rem; min-width: auto; }
}
/* Video link area */
.video-link-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, var(--surface-alt) 0%, #f5f0eb 100%);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    cursor: pointer;
}

.video-link-area:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f5f0eb 0%, #efe8e0 100%);
    box-shadow: 0 4px 20px rgba(139,38,53,0.1);
    transform: translateY(-2px);
}

.video-link-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: transform var(--transition);
}

.video-link-area:hover .video-link-icon {
    transform: scale(1.1);
}

.video-link-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.video-link-hint {
    color: var(--text-muted);
    font-size: 0.95rem;
}
/* Video card as link */
.video-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition);
}

.video-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139,38,53,0.12);
}

.video-card-link:hover .card-title {
    color: var(--primary);
}
/* Upload overlay */
#uploadOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.upload-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.upload-text {
    margin-top: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.upload-progress {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
