body {
    margin: 0;
    background: #991010;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: #FFD700;
}
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(55, 50, 55, 0.9);
    border-radius: 15px;
}
header {
    text-align: center;
    border-bottom: 3px solid #FFD700;
    margin-bottom: 30px;
}
h1 {
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 4px;
}
.sickle-hammer {
    font-size: 3em;
}
.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    clear: both;
}
.video-card {
    background: #2c2c2c;
    border-radius: 12px;
    width: 360px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}
.video-card:hover {
    transform: scale(1.02);
}
.video-card iframe {
    width: 100%;
    height: 202px;
}
.video-info {
    padding: 15px;
}
.video-info h3 {
    margin: 0 0 8px;
    color: #FFD700;
}
.video-info p {
    font-size: 0.9em;
    color: #ddd;
}
.button {
    display: inline-block;
    background: #FFD700;
    color: #8B0000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    margin-top: 10px;
}
form input, form textarea {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
}
form button {
    background: #FFD700;
    color: #8B0000;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
}
.error {
    background: #ff4444;
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}
.success {
    background: #2e7d32;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Сортировка — кастомный селект (без синего) */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.3);
    padding: 6px 15px;
    border-radius: 30px;
    float: right;
    clear: both;
}
.sort-bar label {
    font-size: 0.9em;
}
.custom-select-wrapper {
    position: relative;
    width: 160px;
    user-select: none;
}
.custom-select {
    position: relative;
    background: #FFD700;
    border-radius: 20px;
    cursor: pointer;
}
.custom-select__trigger {
    padding: 5px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8B0000;
    font-weight: bold;
}
.custom-select__arrow {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #8B0000;
    transition: transform 0.2s;
}
.custom-select.open .custom-select__arrow {
    transform: rotate(180deg);
}
.custom-select__options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFD700;
    border-radius: 12px;
    margin-top: 5px;
    z-index: 100;
    display: none;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.custom-select.open .custom-select__options {
    display: block;
}
.custom-option {
    padding: 8px 12px;
    color: #8B0000;
    font-weight: bold;
    transition: background 0.1s;
}
.custom-option:hover {
    background: #e6c200;
}

.date {
    display: block;
    margin-top: 8px;
    font-size: 0.75em;
    color: #aaa;
}

/* Сворачиваемый блок смены пароля */
.collapsible-section {
    margin-bottom: 30px;
}
.collapsible-btn {
    background: #FFD700;
    color: #8B0000;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 1em;
    transition: 0.2s;
}
.collapsible-btn:hover {
    background: #e6c200;
}
.collapsible-content {
    margin-top: 15px;
    transition: 0.3s ease;
}
.password-section {
    background: #2c2c2c;
    padding: 20px;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* Малозаметная кнопка входа (неавторизованный) */
.subtle-login {
    position: fixed;
    bottom: 12px;
    left: 12px;
    background: rgba(60, 60, 60, 0.35);
    color: #aaa;
    font-size: 11px;
    font-family: monospace;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s ease;
    z-index: 1000;
    backdrop-filter: blur(2px);
}
.subtle-login:hover {
    background: rgba(100, 100, 100, 0.6);
    color: #eee;
}

/* Малозаметные кнопки в админке и на главной для авторизованного */
.admin-subtle-buttons {
    position: fixed;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 1000;
}
.subtle-btn {
    background: rgba(60, 60, 60, 0.35);
    color: #aaa;
    font-size: 11px;
    font-family: monospace;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s ease;
    backdrop-filter: blur(2px);
}
.subtle-btn:hover {
    background: rgba(100, 100, 100, 0.6);
    color: #eee;
}

/* Центрирование форм в админке */
.wrapper form {
    max-width: 600px;
    margin: 0 auto;
}