/* =========================================================
   OZВУЧКА
   ОСНОВНОЙ СТИЛЬ
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(110, 90, 255, 0.16),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 10%,
            rgba(0, 180, 255, 0.10),
            transparent 30%
        ),
        #08090c;

    color: #fff;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    padding-bottom: 105px;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

.site {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 50;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 28px;

    background: rgba(8, 9, 12, 0.62);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.logo {
    color: #fff;

    text-decoration: none;

    font-size: 25px;
    font-weight: 800;

    letter-spacing: -1.2px;
}

.logo span {
    opacity: 0.52;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-create {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: #fff;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.10);

    font-size: 25px;

    transition:
        transform 0.2s,
        background 0.2s,
        border-color 0.2s;
}

.header-create:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.18);
}

.header-profile {
    display: flex;
    text-decoration: none;
}

.header-profile img,
.avatar-letter {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    object-fit: cover;
}

.avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.12);

    color: #fff;

    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding-top: 30px;
}


/* =========================================================
   GLASS
   ========================================================= */

.glass {
    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 22px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 20px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.08);

    color: #fff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.2s,
        background 0.2s,
        border-color 0.2s,
        opacity 0.2s;
}

.btn:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.13);

    border-color: rgba(255, 255, 255, 0.20);
}

.btn:active {
    transform: translateY(0);
}

.small-btn {
    min-height: 40px;

    padding: 0 16px;

    border-radius: 12px;
}


/* =========================================================
   INPUTS
   ========================================================= */

.input,
textarea.input,
select.input {
    width: 100%;

    min-height: 50px;

    padding: 13px 15px;

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 14px;

    outline: none;

    background: rgba(255, 255, 255, 0.055);

    color: #fff;

    transition:
        background 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.input:focus {
    background: rgba(255, 255, 255, 0.075);

    border-color: rgba(255, 255, 255, 0.25);

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.035);
}

textarea.input {
    min-height: 130px;

    resize: vertical;
}

select.input {
    appearance: none;

    cursor: pointer;
}

select.input option {
    background: #111217;
    color: #fff;
}


/* =========================================================
   FORMS
   ========================================================= */

.form {
    display: flex;
    flex-direction: column;

    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.form-label {
    color: rgba(255, 255, 255, 0.70);

    font-size: 13px;
    font-weight: 600;
}

.form-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 4px;
}


/* =========================================================
   FLASH
   ========================================================= */

.flash {
    width: min(900px, calc(100% - 40px));

    margin: 20px auto 0;

    padding: 14px 18px;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.10);

    color: rgba(255, 255, 255, 0.90);

    text-align: center;

    font-size: 14px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty {
    min-height: 65vh;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.empty-text {
    color: rgba(255, 255, 255, 0.12);

    font-size: clamp(46px, 8vw, 105px);

    font-weight: 800;

    line-height: 0.95;

    letter-spacing: -5px;

    user-select: none;
}

.empty-subtitle {
    max-width: 570px;

    margin-top: 20px;

    color: rgba(255, 255, 255, 0.38);

    line-height: 1.6;

    font-size: 14px;
}

.create-first {
    margin-top: 28px;
}


/* =========================================================
   VIDEO FEED
   ========================================================= */

.feed {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(300px, 1fr));

    gap: 24px;
}

.video-card {
    overflow: hidden;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.042);

    border: 1px solid rgba(255, 255, 255, 0.075);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        transform 0.25s,
        background 0.25s,
        border-color 0.25s;
}

.video-card:hover {
    transform: translateY(-4px);

    background: rgba(255, 255, 255, 0.060);

    border-color: rgba(255, 255, 255, 0.13);
}


/* =========================================================
   VIDEO PREVIEW
   ========================================================= */

.video-preview {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #050608;

    text-decoration: none;
}

.video-preview > img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.35s;
}

.video-card:hover .video-preview > img {
    transform: scale(1.035);
}

.video-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.09),
            rgba(0, 0, 0, 0.65)
        );
}

.play-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.08);

    transition: background 0.2s;
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.20);
}

.play-circle {
    width: 56px;
    height: 56px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding-left: 3px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    border: 1px solid rgba(255, 255, 255, 0.25);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    color: #fff;

    font-size: 19px;

    transition:
        transform 0.2s,
        background 0.2s;
}

.video-card:hover .play-circle {
    transform: scale(1.08);

    background: rgba(255, 255, 255, 0.21);
}


/* =========================================================
   VIDEO INFO
   ========================================================= */

.video-info {
    padding: 17px;
}

.video-title {
    display: block;

    color: #fff;

    text-decoration: none;

    font-size: 18px;

    line-height: 1.3;

    font-weight: 700;

    letter-spacing: -0.3px;

    margin-bottom: 8px;
}

.video-title:hover {
    opacity: 0.72;
}

.video-meta {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 14px;

    color: rgba(255, 255, 255, 0.43);

    font-size: 13px;
}

.video-author {
    display: flex;

    align-items: center;

    gap: 8px;

    color: rgba(255, 255, 255, 0.70);

    text-decoration: none;

    font-size: 14px;
}

.video-author:hover {
    color: #fff;
}

.video-author img:not(.verified),
.author-letter {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    border-radius: 50%;

    object-fit: cover;
}

.author-letter {
    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.10);

    color: #fff;

    font-size: 12px;

    font-weight: 700;
}

.video-stats {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 14px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 13px;
}


/* =========================================================
   VERIFIED
   ========================================================= */

.verified {
    width: 17px !important;
    height: 17px !important;

    flex-shrink: 0;

    object-fit: contain !important;
}


/* =========================================================
   VIDEO PAGE
   ========================================================= */

.video-page {
    width: min(1050px, 100%);

    margin: 0 auto;
}

.player-wrapper {
    width: 100%;

    overflow: hidden;

    border-radius: 22px;

    background: #000;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 25px 90px rgba(0, 0, 0, 0.35);
}

.player-wrapper video {
    width: 100%;

    display: block;

    max-height: 75vh;

    background: #000;
}

.video-page-info {
    margin-top: 22px;

    padding: 24px;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.video-page-title {
    color: #fff;

    font-size: clamp(24px, 4vw, 36px);

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -1px;

    margin-bottom: 12px;
}

.video-page-description {
    color: rgba(255, 255, 255, 0.62);

    font-size: 15px;

    line-height: 1.7;

    white-space: pre-wrap;
}

.video-page-meta {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    margin-top: 14px;

    color: rgba(255, 255, 255, 0.40);

    font-size: 13px;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.post-actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 9px;

    margin-top: 20px;
}

.action {
    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 14px;

    border-radius: 13px;

    background: rgba(255, 255, 255, 0.055);

    border: 1px solid rgba(255, 255, 255, 0.09);

    color: rgba(255, 255, 255, 0.72);

    text-decoration: none;

    font-size: 13px;

    transition: 0.2s;
}

.action:hover {
    color: #fff;

    background: rgba(255, 255, 255, 0.10);

    border-color: rgba(255, 255, 255, 0.16);
}

.action.active {
    color: #fff;

    background: rgba(255, 255, 255, 0.13);

    border-color: rgba(255, 255, 255, 0.20);
}


/* =========================================================
   AUTHOR
   ========================================================= */

.author {
    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;
}

.author-avatar {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    object-fit: cover;

    background: rgba(255, 255, 255, 0.10);
}

.author-info {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.author-name {
    display: flex;

    align-items: center;

    gap: 6px;

    color: #fff;

    font-weight: 700;

    font-size: 14px;
}

.author-subtitle {
    color: rgba(255, 255, 255, 0.40);

    font-size: 12px;
}


/* =========================================================
   COMMENTS
   ========================================================= */

.comments {
    margin-top: 24px;

    padding: 24px;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.comments-title {
    font-size: 20px;

    font-weight: 750;

    margin-bottom: 18px;
}

.comment-form {
    display: flex;

    gap: 10px;

    margin-bottom: 24px;
}

.comment-form .input {
    min-height: 45px;
}

.comment {
    display: flex;

    gap: 11px;

    padding: 15px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comment:last-child {
    border-bottom: 0;
}

.comment-avatar {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 50%;

    object-fit: cover;

    background: rgba(255, 255, 255, 0.10);
}

.comment-body,
.comment-content {
    min-width: 0;

    flex: 1;
}

.comment-top {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 4px;
}

.comment-author {
    color: #fff;

    font-size: 13px;

    font-weight: 700;
}

.comment-text {
    margin-top: 4px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 14px;

    line-height: 1.5;

    white-space: pre-wrap;

    word-break: break-word;
}

.comment-date {
    margin-top: 6px;

    color: rgba(255, 255, 255, 0.30);

    font-size: 11px;
}


/* =========================================================
   PROFILE
   ========================================================= */

.profile {
    width: min(900px, 100%);

    margin: 0 auto;
}

.profile-header {
    padding: 28px;

    border-radius: 24px;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.profile-main {
    display: flex;

    align-items: center;

    gap: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;

    flex-shrink: 0;

    border-radius: 50%;

    object-fit: cover;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.10);
}

.profile-name {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #fff;

    font-size: 28px;

    font-weight: 800;

    letter-spacing: -0.7px;
}

.profile-bio {
    max-width: 650px;

    margin-top: 8px;

    color: rgba(255, 255, 255, 0.53);

    line-height: 1.55;

    font-size: 14px;

    white-space: pre-wrap;
}

.profile-stats {
    display: flex;

    flex-wrap: wrap;

    gap: 24px;

    margin-top: 18px;
}

.profile-stat {
    display: flex;

    flex-direction: column;

    gap: 2px;
}

.profile-stat strong {
    color: #fff;

    font-size: 18px;
}

.profile-stat span {
    color: rgba(255, 255, 255, 0.38);

    font-size: 12px;
}

.profile-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 20px;
}

.profile-videos {
    margin-top: 25px;
}

.section-title {
    margin-bottom: 16px;

    color: #fff;

    font-size: 21px;

    font-weight: 750;
}


/* =========================================================
   AUTH
   ========================================================= */

.auth-page {
    min-height: calc(100vh - 100px);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}

.auth-box {
    width: min(430px, 100%);

    padding: 30px;

    border-radius: 24px;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.09);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.30);
}

.auth-logo {
    text-align: center;

    color: #fff;

    font-size: 28px;

    font-weight: 800;

    margin-bottom: 8px;
}

.auth-title {
    text-align: center;

    color: rgba(255, 255, 255, 0.60);

    font-size: 14px;

    margin-bottom: 25px;
}

.auth-switch {
    margin-top: 20px;

    text-align: center;

    color: rgba(255, 255, 255, 0.38);

    font-size: 13px;
}

.auth-switch a {
    color: #fff;

    text-decoration: none;

    font-weight: 600;
}


/* =========================================================
   CREATE
   ========================================================= */

.create-page {
    width: min(760px, 100%);

    margin: 0 auto;
}

.create-box {
    padding: 28px;

    border-radius: 24px;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.page-title {
    color: #fff;

    font-size: 28px;

    font-weight: 800;

    letter-spacing: -0.7px;

    margin-bottom: 8px;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.40);

    font-size: 14px;

    line-height: 1.5;

    margin-bottom: 25px;
}

.file-input {
    width: 100%;

    padding: 15px;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px dashed rgba(255, 255, 255, 0.17);

    color: rgba(255, 255, 255, 0.55);

    cursor: pointer;
}

.file-input::file-selector-button {
    margin-right: 12px;

    padding: 9px 13px;

    border: 0;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.10);

    color: #fff;

    cursor: pointer;
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-page {
    width: min(1000px, 100%);

    margin: 0 auto;
}

.search-form {
    display: flex;

    gap: 10px;

    margin-bottom: 28px;
}

.search-form .input {
    flex: 1;
}

.search-results {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));

    gap: 20px;
}

.search-empty {
    padding: 70px 20px;

    text-align: center;

    color: rgba(255, 255, 255, 0.30);
}

.category-list,
.category-chips {
    display: flex;

    align-items: center;

    gap: 9px;

    flex-wrap: wrap;

    margin-bottom: 28px;
}

.category-list a,
.category-chips a {
    padding: 9px 13px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.035);

    color: rgba(255, 255, 255, 0.42);

    font-size: 13px;

    font-weight: 650;

    transition: 0.18s ease;
}

.category-list a:hover,
.category-chips a:hover,
.category-list a.active,
.category-chips a.active {
    color: #fff;

    background: rgba(255, 255, 255, 0.085);

    border-color: rgba(255, 255, 255, 0.14);
}

.user-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(250px, 1fr));

    gap: 14px;

    margin-bottom: 34px;
}

.user-card {
    display: flex;

    align-items: center;

    gap: 13px;

    padding: 15px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.045);

    transition: 0.18s ease;
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.07);

    border-color: rgba(255, 255, 255, 0.14);
}

.user-card img,
.user-card .avatar-placeholder {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border-radius: 50%;

    object-fit: cover;
}


/* =========================================================
   POST / VIDEO
   ========================================================= */

.post-page {
    width: min(1050px, 100%);

    margin: 0 auto;

    padding: 30px 0 70px;
}

.player {
    width: 100%;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 22px;

    background: #000;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45);
}

.player video {
    width: 100%;

    max-height: 720px;

    display: block;

    background: #000;
}

.post-header {
    padding: 25px 0 18px;
}

.post-header h1 {
    margin: 0 0 12px;

    font-size: clamp(25px, 4vw, 36px);

    line-height: 1.15;

    letter-spacing: -1.2px;
}

.post-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    color: rgba(255, 255, 255, 0.40);

    font-size: 13px;
}

.author-box {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 16px;

    margin: 10px 0 22px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 17px;

    background: rgba(255, 255, 255, 0.045);
}

.author-box .author-info {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}

.author-info img,
.author-avatar {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    border-radius: 50%;

    object-fit: cover;
}

.author-name {
    display: flex;

    align-items: center;

    gap: 6px;

    font-weight: 800;
}

.post-description {
    margin: 20px 0;

    padding: 20px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 17px;

    background: rgba(255, 255, 255, 0.03);

    color: rgba(255, 255, 255, 0.62);

    white-space: normal;

    overflow-wrap: anywhere;
}


/* =========================================================
   ADMIN
   ========================================================= */

.admin-page {
    width: min(1100px, 100%);

    margin: 0 auto;
}

.admin-header {
    margin-bottom: 22px;
}

.admin-title {
    color: #fff;

    font-size: 30px;

    font-weight: 800;
}

.admin-subtitle {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.38);

    font-size: 13px;
}

.admin-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 15px;

    margin-bottom: 25px;
}

.admin-stat {
    padding: 20px;

    border-radius: 19px;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-stat-number {
    font-size: 30px;

    font-weight: 800;
}

.admin-stat-label {
    margin-top: 4px;

    color: rgba(255, 255, 255, 0.38);

    font-size: 13px;
}

.admin-table {
    width: 100%;

    overflow-x: auto;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-row {
    min-width: 700px;

    display: grid;

    grid-template-columns:
        1.5fr 1fr 120px 190px;

    align-items: center;

    gap: 15px;

    padding: 15px 18px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-row:last-child {
    border-bottom: 0;
}

.admin-row-header {
    color: rgba(255, 255, 255, 0.38);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}

.admin-user {
    display: flex;

    align-items: center;

    gap: 9px;
}

.admin-user-avatar {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    object-fit: cover;
}

.admin-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}

.admin-actions .action {
    min-height: 34px;

    padding: 0 10px;

    font-size: 11px;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 25px;

    padding: 0 9px;

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.65);

    font-size: 11px;

    font-weight: 600;
}

.badge-danger {
    background: rgba(255, 70, 70, 0.10);

    border-color: rgba(255, 70, 70, 0.18);

    color: rgba(255, 150, 150, 0.90);
}

.badge-success {
    background: rgba(100, 255, 170, 0.08);

    border-color: rgba(100, 255, 170, 0.15);

    color: rgba(150, 255, 190, 0.90);
}


/* =========================================================
   BOTTOM NAVIGATION
   ========================================================= */

.bottom-nav {
    position: fixed;

    left: 50%;
    bottom: 16px;

    transform: translateX(-50%);

    z-index: 100;

    display: flex;

    align-items: center;

    gap: 4px;

    padding: 7px;

    border-radius: 22px;

    background: rgba(13, 14, 18, 0.78);

    border: 1px solid rgba(255, 255, 255, 0.10);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    box-shadow:
        0 18px 70px rgba(0, 0, 0, 0.40);
}

.nav-item {
    min-width: 72px;

    min-height: 54px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 2px;

    padding: 7px 12px;

    border-radius: 16px;

    color: rgba(255, 255, 255, 0.42);

    text-decoration: none;

    font-size: 10px;

    transition:
        background 0.2s,
        color 0.2s,
        transform 0.2s;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.82);

    background: rgba(255, 255, 255, 0.055);
}

.nav-item.active {
    color: #fff;

    background: rgba(255, 255, 255, 0.075);
}

.nav-icon {
    height: 24px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 22px;

    line-height: 22px;
}

.nav-create {
    min-width: 60px;
}

.create-icon {
    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.13);

    border: 1px solid rgba(255, 255, 255, 0.17);

    color: #fff;

    font-size: 25px;

    transition: 0.2s;
}

.nav-create:hover .create-icon {
    transform: scale(1.05);

    background: rgba(255, 255, 255, 0.18);
}


/* =========================================================
   DIVIDERS
   ========================================================= */

.divider {
    width: 100%;
    height: 1px;

    margin: 20px 0;

    background: rgba(255, 255, 255, 0.07);
}


/* =========================================================
   DANGER
   ========================================================= */

.btn-danger {
    background: rgba(255, 70, 70, 0.08);

    border-color: rgba(255, 70, 70, 0.16);

    color: rgba(255, 170, 170, 0.95);
}

.btn-danger:hover {
    background: rgba(255, 70, 70, 0.14);

    border-color: rgba(255, 70, 70, 0.24);
}


/* =========================================================
   =========================================================
   СОВМЕСТИМОСТЬ С НОВЫМИ СТРАНИЦАМИ
   =========================================================
   ========================================================= */

/*
   Второй CSS использовал другие названия классов.
   Здесь мы НЕ меняем основной дизайн.
   Просто добавляем поддержку этих названий.
*/


/* =========================================================
   NEW TOPBAR
   ========================================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;

    width: 100%;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    background: rgba(8, 9, 12, 0.62);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.topbar .logo {
    font-size: 25px;
}


/* =========================================================
   NEW PAGE
   ========================================================= */

.page {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding: 30px 0 60px;
}


/* =========================================================
   NEW BUTTON
   ========================================================= */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 46px;

    padding: 0 18px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.08);

    color: #fff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 650;

    transition:
        transform 0.2s,
        background 0.2s,
        border-color 0.2s;
}

.button:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.13);

    border-color: rgba(255, 255, 255, 0.20);
}

.button.primary {
    background: rgba(255, 255, 255, 0.92);

    color: #090a0d;

    border-color: transparent;
}

.button.primary:hover {
    background: #fff;
}

.button.secondary {
    background: transparent;
}

.button.danger {
    background: rgba(255, 70, 70, 0.09);

    border-color: rgba(255, 70, 70, 0.18);

    color: #ffb0b0;
}

.button.danger:hover {
    background: rgba(255, 70, 70, 0.15);
}

.icon-button {
    width: 42px;
    height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 13px;

    background: rgba(255, 255, 255, 0.06);

    color: #fff;

    font-size: 20px;
}


/* =========================================================
   NEW ALERT
   ========================================================= */

.alert {
    margin-bottom: 20px;

    padding: 14px 17px;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.10);

    color: rgba(255, 255, 255, 0.82);
}

.alert.error {
    background: rgba(255, 70, 70, 0.09);

    border-color: rgba(255, 70, 70, 0.20);

    color: #ffb0b0;
}


/* =========================================================
   NEW EMPTY STATE
   ========================================================= */

.empty-state {
    min-height: 65vh;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 20px;

    text-align: center;
}

.empty-title {
    color: rgba(255, 255, 255, 0.12);

    font-size: clamp(46px, 8vw, 105px);

    font-weight: 800;

    line-height: 0.95;

    letter-spacing: -5px;

    user-select: none;
}


/* =========================================================
   NEW VIDEO GRID
   ========================================================= */

.video-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(300px, 1fr));

    gap: 24px;
}


/*
   Новая карточка использует video-thumbnail.
   Делаем её визуально такой же, как video-preview.
*/

.video-thumbnail {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #050608;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.35s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.035);
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.09),
            rgba(0, 0, 0, 0.65)
        );

    color: rgba(255, 255, 255, 0.13);

    font-size: 30px;

    font-weight: 900;
}


/* =========================================================
   NEW SECTION HEADINGS
   ========================================================= */

.section-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2 {
    color: #fff;

    margin: 0;

    font-size: 28px;

    font-weight: 800;

    letter-spacing: -0.8px;
}

.section-heading h1 {
    font-size: 32px;
}


/* =========================================================
   HOME HEADER
   ========================================================= */

.home-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.home-header h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(30px, 5vw, 44px);

    line-height: 1;

    letter-spacing: -1.8px;
}

.home-header p {
    margin: 8px 0 0;

    color: rgba(255, 255, 255, 0.38);
}


/* =========================================================
   NEW PROFILE
   ========================================================= */

.profile-card {
    position: relative;

    display: flex;

    gap: 30px;

    padding: 28px;

    margin-bottom: 28px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 24px;

    background: rgba(255, 255, 255, 0.045);

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.20);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    overflow: hidden;
}

.profile-card .profile-avatar {
    flex: 0 0 120px;

    width: 120px;
    height: 120px;
}

.profile-card .profile-avatar img,
.profile-card .avatar-placeholder {
    width: 100%;
    height: 100%;

    border-radius: 50%;

    object-fit: cover;

    border: 1px solid rgba(255, 255, 255, 0.10);

    background: rgba(255, 255, 255, 0.08);
}

.avatar-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.65);

    font-size: 40px;

    font-weight: 800;
}

.profile-card .profile-main {
    min-width: 0;

    flex: 1;
}

.profile-name-row {
    display: flex;

    align-items: center;

    gap: 8px;
}

.profile-main h1 {
    display: flex;

    align-items: center;

    gap: 8px;

    margin: 0 0 10px;

    color: #fff;

    font-size: 30px;

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -0.8px;
}

.verified-badge {
    width: 20px !important;
    height: 20px !important;

    object-fit: contain !important;

    border: 0 !important;

    border-radius: 0 !important;
}

.profile-card .profile-bio {
    max-width: 720px;

    margin: 0 0 20px;

    color: rgba(255, 255, 255, 0.53);

    white-space: pre-wrap;

    overflow-wrap: anywhere;
}

.muted {
    color: rgba(255, 255, 255, 0.38);
}

.profile-card .profile-stats {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin: 0 0 20px;
}

.profile-card .profile-stats > div {
    min-width: 105px;

    display: flex;

    flex-direction: column;

    padding: 11px 15px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.035);
}

.profile-card .profile-stats strong {
    color: #fff;

    font-size: 18px;
}

.profile-card .profile-stats span {
    margin-top: 2px;

    color: rgba(255, 255, 255, 0.38);

    font-size: 12px;
}

.inline-form {
    margin: 0;
}

.edit-profile {
    margin: 28px 0 40px;

    padding: 27px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.045);

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.20);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.edit-profile .form + .form {
    margin-top: 28px;

    padding-top: 28px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);
}


/* =========================================================
   NEW AUTH
   ========================================================= */

.auth-card {
    width: min(430px, 100%);

    padding: 30px;

    border-radius: 24px;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.09);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.30);
}

.auth-tabs {
    display: grid;

    grid-template-columns: 1fr 1fr;

    padding: 4px;

    margin-bottom: 25px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 14px;

    background: rgba(0, 0, 0, 0.20);
}

.auth-tabs a {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    border-radius: 10px;

    color: rgba(255, 255, 255, 0.38);

    font-weight: 700;
}

.auth-tabs a.active {
    background: rgba(255, 255, 255, 0.09);

    color: #fff;
}

.auth-card h1 {
    color: #fff;

    font-size: 29px;

    letter-spacing: -1px;

    margin-bottom: 20px;
}

.auth-card .button {
    width: 100%;
}


/* =========================================================
   NEW CREATE
   ========================================================= */

.create-card {
    padding: 28px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 24px;

    background: rgba(255, 255, 255, 0.045);

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.20);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


/* =========================================================
   NEW POST
   ========================================================= */

.post-page .player {
    border-radius: 22px;
}

.post-page .post-header {
    padding: 25px 0 18px;
}

.post-page .post-header h1 {
    color: #fff;

    font-weight: 800;
}

.post-page .post-description {
    line-height: 1.7;
}


/* =========================================================
   NEW ADMIN
   ========================================================= */

.admin-title h1 {
    color: #fff;

    margin: 0 0 5px;

    font-size: 30px;

    font-weight: 800;

    letter-spacing: -0.8px;
}

.admin-title p {
    color: rgba(255, 255, 255, 0.38);

    margin: 0;
}

.admin-stats {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));

    gap: 14px;

    margin-bottom: 25px;
}

.admin-section {
    margin-bottom: 25px;

    padding: 22px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.045);

    overflow-x: auto;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.admin-section h2 {
    margin: 0 0 17px;

    color: #fff;

    font-size: 20px;
}

.admin-table table {
    width: 100%;

    border-collapse: collapse;

    min-width: 650px;
}

.admin-table th,
.admin-table td {
    padding: 13px 10px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    text-align: left;

    vertical-align: middle;
}

.admin-table th {
    color: rgba(255, 255, 255, 0.38);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.admin-table td {
    color: rgba(255, 255, 255, 0.62);
}


/* =========================================================
   NEW BADGE COMPATIBILITY
   ========================================================= */

.badge.verified {
    min-height: 0;

    padding: 0;

    background: transparent;

    border: 0;
}

.badge img {
    width: 18px;
    height: 18px;

    object-fit: contain;
}


/* =========================================================
   NEW UTILITY
   ========================================================= */

.text-link {
    color: #fff;

    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.center {
    text-align: center;
}

.row {
    display: flex;

    align-items: center;

    gap: 10px;
}

.wrap {
    flex-wrap: wrap;
}

.space-between {
    justify-content: space-between;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .page,
    .search-page,
    .admin-page {
        width: calc(100% - 28px);
    }

    .video-grid {
        grid-template-columns:
            repeat(auto-fill, minmax(260px, 1fr));

        gap: 18px;
    }

    .profile-card {
        padding: 24px;

        gap: 22px;
    }

    .profile-card .profile-avatar {
        flex-basis: 105px;

        width: 105px;
        height: 105px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    body {
        padding-bottom: 95px;
    }

    .header {
        padding: 14px 17px;
    }

    .topbar {
        height: 62px;

        padding: 0 16px;
    }

    .logo,
    .topbar .logo {
        font-size: 22px;
    }

    .container {
        width: calc(100% - 24px);

        padding-top: 20px;
    }

    .page,
    .search-page,
    .admin-page,
    .post-page,
    .create-page {
        width: calc(100% - 24px);

        padding-top: 20px;
    }

    .feed,
    .video-grid,
    .search-results {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .video-card {
        border-radius: 18px;
    }

    .video-info {
        padding: 14px;
    }

    .video-title {
        font-size: 17px;
    }

    .empty {
        min-height: 60vh;
    }

    .empty-text,
    .empty-title {
        font-size: 48px;

        letter-spacing: -3px;
    }

    .empty-subtitle {
        padding: 0 15px;
    }

    .bottom-nav {
        width: calc(100% - 20px);

        bottom: 9px;

        justify-content: space-around;
    }

    .nav-item {
        flex: 1;

        min-width: 0;

        padding-left: 5px;
        padding-right: 5px;
    }

    .nav-create {
        flex: 0 0 58px;
    }

    .video-page-info,
    .comments,
    .create-box,
    .create-card,
    .auth-box,
    .auth-card,
    .profile-header,
    .profile-card,
    .admin-section {
        padding: 18px;

        border-radius: 19px;
    }

    .player,
    .player-wrapper {
        border-radius: 17px;
    }

    .video-page-title,
    .post-header h1 {
        font-size: 25px;
    }

    .comment-form {
        flex-direction: column;
    }

    .profile-main,
    .profile-card {
        align-items: flex-start;
    }

    .profile-card {
        flex-direction: column;
    }

    .profile-card .profile-avatar {
        width: 92px;
        height: 92px;

        flex-basis: 92px;
    }

    .profile-name,
    .profile-main h1 {
        font-size: 24px;
    }

    .profile-card .profile-stats {
        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 7px;
    }

    .profile-card .profile-stats > div {
        min-width: 0;

        padding: 10px;

        text-align: center;
    }

    .profile-actions {
        width: 100%;
    }

    .profile-actions .button,
    .profile-actions form,
    .profile-actions form .button {
        width: 100%;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form .button {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn,
    .form-actions .button {
        width: 100%;
    }

    .post-actions {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .post-actions .button,
    .post-actions .action {
        width: 100%;
    }

    .author-box {
        align-items: flex-start;

        flex-direction: column;
    }

    .author-box .button {
        width: 100%;
    }

    .admin-section {
        overflow-x: auto;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-create,
    .header-profile img,
    .avatar-letter {
        width: 38px;
        height: 38px;
    }

    .bottom-nav {
        padding: 5px;
    }

    .nav-item {
        min-height: 50px;

        font-size: 9px;
    }

    .nav-icon {
        font-size: 20px;
    }

    .create-icon {
        width: 39px;
        height: 39px;
    }

    .video-stats {
        gap: 12px;
    }

    .profile-card .profile-stats span {
        font-size: 9px;
    }

    .profile-card .profile-stats strong {
        font-size: 15px;
    }

    .post-actions {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.20);
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background: rgba(255, 255, 255, 0.18);

    color: #fff;
}


/* =========================================================
   FOCUS
   ========================================================= */

:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);

    outline-offset: 3px;
}