body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    color: #222;
}

/* ================= NAVBAR ================= */

.navbar {
    background-color: #ffffff;
    padding: 15px 30px;
    border-bottom: 1px solid #dddddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.navbar a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
}

.navbar a:hover {
    color: #666;
}

.profile-badge {
    background-color: #f1f1f1;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    word-break: break-word;
}

.logout-link {
    font-weight: 600;
}

/* ================= CONTAINERS ================= */

.page-container,
.club-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px 40px;
}

.home-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 15px 50px;
}

.join-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 15px 50px;
}

/* ================= BUTTONS ================= */

.main-button {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 22px;
    background-color: #222;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.main-button:hover {
    background-color: #444;
}

.main-button.secondary {
    background: #e9e9e9;
    color: #222;
}

.main-button.secondary:hover {
    background: #dcdcdc;
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

/* ================= CARDS ================= */

.club-card,
.main-card,
.join-card,
.auth-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.club-card h2,
.main-card h1,
.main-card h2 {
    margin-top: 0;
}

/* ================= VIDEO ================= */

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-frame iframe {
    position: absolute;
    top: -48px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 56px);
    border: none;
    display: block;
}

.video-placeholder {
    margin-top: 20px;
    height: 220px;
    border: 2px dashed #cfcfcf;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    color: #777;
    font-size: 18px;
    text-align: center;
    padding: 10px;
}

/* ================= HOME ================= */

.home-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.home-image {
    width: 100%;
    background: #f3f3f3;
}

.home-image img {
    width: 100%;
    display: block;
    max-height: 620px;
    object-fit: cover;
}

.home-content {
    padding: 32px 26px 28px;
    text-align: center;
}

.home-title {
    font-size: 42px;
    margin: 0 0 22px;
    font-weight: 700;
}

.home-text {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 18px;
}

.home-steps {
    margin: 28px auto 0;
    max-width: 560px;
    text-align: left;
}

.steps-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.home-steps ul {
    margin: 0;
    padding-left: 22px;
}

.home-steps li {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.6;
}

.home-buttons {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-note {
    margin: 28px auto 0;
    max-width: 620px;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* ================= JOIN ================= */

.join-title {
    font-size: 36px;
    margin: 0 0 18px;
    text-align: center;
}

.join-text {
    font-size: 18px;
    text-align: center;
    margin-bottom: 16px;
}

.join-list {
    max-width: 520px;
    margin: 0 auto 28px;
    padding-left: 22px;
    line-height: 1.7;
    font-size: 17px;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.plan-card {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
}

.plan-title {
    margin: 0 0 12px;
    font-size: 24px;
}

.plan-price {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
}

.plan-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    min-height: 76px;
    margin-bottom: 10px;
}

.join-note {
    margin-top: 24px;
    text-align: center;
    color: #666;
    font-size: 15px;
}

/* ================= CLUB PAGE ================= */

.club-title {
    margin-bottom: 10px;
    font-size: 32px;
}

.subscription-info {
    margin-bottom: 25px;
    font-size: 16px;
}

/* ================= DAYS TABS ================= */

.days-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
    scrollbar-width: thin;
}

.days-tabs::-webkit-scrollbar {
    height: 6px;
}

.days-tabs::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 10px;
}

.day-tab {
    border: none;
    background: #ececec;
    color: #222;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.2s ease;
}

.day-tab:hover {
    background: #dddddd;
}

.day-tab.active {
    background: #222;
    color: white;
}

.day-panel {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 20px;
}

.day-panel-title {
    margin: 0 0 18px;
    font-size: 24px;
}

.day-videos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.video-card {
    background: #ffffff;
    border: 1px solid #ededed;
    border-radius: 14px;
    padding: 16px;
    overflow: hidden;
}

.video-card-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
}

/* ================= AUTH ================= */

.auth-card {
    max-width: 480px;
    margin: 40px auto;
    padding: 28px 22px;
}

.auth-card h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 32px;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    box-sizing: border-box;
    outline: none;
}

.auth-form input:focus {
    border-color: #999;
}

.auth-form .main-button {
    margin-top: 0;
    width: 100%;
}

/* ================= DESKTOP VIDEO GRID ================= */

@media (min-width: 900px) {
    .day-videos {
        grid-template-columns: 1fr 1fr;
    }
}

/* ================= ONE MOBILE BLOCK ONLY ================= */

@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
    }

    .navbar {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-left a,
    .nav-right a,
    .navbar a {
        font-size: 14px;
    }

    .nav-right {
        justify-content: flex-start;
    }

    .profile-badge {
        width: 100%;
        box-sizing: border-box;
        font-size: 13px;
        padding: 10px 12px;
    }

    .home-container,
    .join-container,
    .club-container,
    .page-container {
        padding: 15px 12px 30px;
    }

    .home-card,
    .join-card,
    .club-card,
    .main-card,
    .auth-card {
        padding: 16px;
        border-radius: 14px;
    }

    .home-title,
    .join-title,
    .club-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .home-text,
    .join-text,
    .subscription-info {
        font-size: 16px;
        line-height: 1.5;
    }

    .steps-title {
        font-size: 18px;
    }

    .home-steps li,
    .join-list {
        font-size: 15px;
    }

    .home-note {
        font-size: 14px;
    }

    .home-buttons,
    .button-row {
        flex-direction: column;
        gap: 10px;
    }

    .main-button {
        width: 100%;
        box-sizing: border-box;
    }

    .plans-grid,
    .day-videos {
        grid-template-columns: 1fr;
    }

    .plan-title,
    .video-card-title {
        font-size: 20px;
    }

    .plan-price {
        font-size: 24px;
    }

    .plan-desc {
        min-height: auto;
        font-size: 15px;
    }

    .day-tab {
        font-size: 14px;
        padding: 10px 14px;
    }

    .day-panel {
        padding: 14px;
    }

    .day-panel-title {
        font-size: 20px;
    }

    .video-card {
        padding: 12px;
    }

    .video-placeholder {
        height: 180px;
        font-size: 16px;
    }

    .auth-card {
        margin: 20px auto;
    }

    .auth-card h1 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .auth-form input {
        font-size: 16px;
        padding: 13px 14px;
    }

    form {
        width: 100%;
    }

    input,
    button {
        box-sizing: border-box;
    }
} 

/* КНОПКИ КАК У ПРОДУКТА */
.main-button {
    transition: 0.2s ease;
}

.main-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* КАРТОЧКИ КРАСИВЕЕ */
.main-card,
.auth-card,
.join-card,
.club-card {
    transition: 0.2s ease;
}

.main-card:hover,
.join-card:hover,
.club-card:hover {
    transform: translateY(-2px);
}

/* ПОЛЯ */
.auth-form input:focus {
    border-color: #222;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* ===== ADMIN SELECT FIX ===== */

.auth-form select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    box-sizing: border-box;
    outline: none;
    background: #fff;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .auth-form select {
        font-size: 16px;
        padding: 13px 14px;
    }
}
/* Вертикальное видео Юли */
.video-frame.vertical-video {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding-top: 177.78%; /* 9:16 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-frame.vertical-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.day-panel {
    display: none;
}
