:root {
    --primary: #ff9900; /* Тот самый оранжевый */
    --bg-black: #000000;
    --card-bg: #1b1b1b;
    --input-bg: #2b2b2b;
    --text-main: #ffffff;
    --text-muted: #b2b2b2;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.registration-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px; /* PH любит острые или слегка скругленные углы */
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 5px;
}

/* Эффект логотипа: Hackathon оранжевый на черном фоне */
h1 span {
    background: var(--primary);
    color: black;
    padding: 2px 8px;
    border-radius: 5px;
    margin-left: 5px;
}

.subtitle {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-main);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--primary);
    outline: none;
}

button {
    background: var(--primary);
    color: black;
    border: none;
    padding: 15px;
    width: 100%;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

button:hover {
    background: #e68a00;
}

.member-entry {
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 20px;
    background: rgba(255, 153, 0, 0.05);
}

hr { border: 0; border-top: 1px solid #444; margin: 20px 0; }
.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #1b1b1b;
    border-radius: 8px;
    border: 1px solid #333;
}

.brand {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
}

.brand span {
    color: var(--primary); /* Оранжевый .pisa */
}

.subscribe-btn {
    background: linear-gradient(45deg, #ff9900, #ffcc00);
    color: black !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscribe-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.5);
    background: linear-gradient(45deg, #ffcc00, #ff9900);
}

.crown {
    font-size: 1.1rem;
}

/* Анимация "пульсации" для привлечения внимания */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 153, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0); }
}

.subscribe-btn {
    animation: pulse 2s infinite;
}
/* Убедимся, что контейнер не сжимает содержимое */
.container {
    width: 100%;
    max-width: 600px; /* Должно совпадать с шириной карточки */
    margin: 0 auto;
}

.premium-header {
    display: flex;
    justify-content: space-between; /* Лого слева, кнопка справа */
    align-items: center;           /* Центрируем по вертикали */
    margin-bottom: 20px;
    padding: 15px 20px;            /* Внутренние отступы */
    background: #1b1b1b;
    border-radius: 8px;
    border: 1px solid #333;
    box-sizing: border-box;        /* Чтобы padding не раздувал ширину */
}

/* Если на мобилках всё равно криво — ставим их друг под друга */
@media (max-width: 480px) {
    .premium-header {
        flex-direction: column;    /* В колонку */
        gap: 15px;                 /* Расстояние между ними */
        text-align: center;
    }
}
/* Превью-заглушка */
.video-preview-container {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #333;
    margin-top: 20px;
}

.play-button {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: black;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    transition: 0.3s;
}

.video-preview-container:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px var(--primary);
}

/* Модальное окно */
.video-modal {
    display: none; /* Скрыто */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: -40px; right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-player-wrapper video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 2px solid var(--primary);
}