/* Profile, users, uploads and pagination */

.profile {
    width: 100%;
    color: white;
}

.profile-banner {
    position: relative;
    width: 100%;
    height: 360px;
    background-image:
        linear-gradient(135deg, rgba(56,189,248,.18), rgba(99,102,241,.16)),
        url("../img/images.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.banner-shadow {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,.35), rgba(5,8,22,.85));
}

.profile-content {
    position: absolute;
    left: 60px;
    bottom: 35px;
    right: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 10;
}

.profile-avatar img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,.15);
    box-shadow: 0 0 25px rgba(56,189,248,.4);
}

.profile-info {
    flex: 1;
    margin-left: 40px;
}

.profile-info h1 {
    margin: 0;
    font-size: 42px;
}

.profile-info p {
    color: #bfc7d8;
    margin: 8px 0;
}

.premium {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg,#8b5cf6,#38bdf8);
    font-weight: bold;
}

.profile-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat h2 {
    margin: 0;
    font-size: 32px;
}

.stat span {
    color: #9ca3af;
}

.profile-button a {
    display: inline-block;
    padding: 14px 24px;
    text-decoration: none;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg,#38bdf8,#6366f1);
    transition: .3s;
}

.profile-button a:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(56,189,248,.45);
}

.profile-tabs {
    display: flex;
    gap: 20px;
    padding: 35px 60px;
}

.tab {
    cursor: pointer;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
    transition: .3s;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.tab:hover {
    background: rgba(56,189,248,.15);
}

.active {
    background: linear-gradient(135deg,#38bdf8,#6366f1);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
    gap: 30px;
    padding: 0 60px 60px;
}

.video-card {
    overflow: hidden;
    text-decoration: none;
    border-radius: 18px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(15px);
    transition: .35s;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 35px rgba(56,189,248,.25);
}

.video-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.video-card__thumb {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.video-info {
    padding: 18px;
}

.video-info h3 {
    margin: 0;
    color: white;
}

.video-info p {
    color: #9ca3af;
    margin-top: 8px;
}

.profile-empty {
    padding: 0 60px 30px;
    color: #9ca3af;
}

.upload-panel {
    padding: 28px 60px 10px;
}

.upload-note {
    margin: 12px 0 0;
    color: #cbd5e1;
    max-width: 760px;
    line-height: 1.6;
}

.upload-form {
    margin: 0 60px 48px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
}

.upload-status {
    margin-top: 18px;
    min-height: 24px;
    color: #7dd3fc;
    font-weight: 600;
}

.upload-status[data-state="error"] {
    color: #fca5a5;
}

.upload-progress {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}

.upload-progress[hidden] {
    display: none !important;
}

.upload-progress__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 14px;
}

.upload-progress__label {
    font-weight: 600;
}

.upload-progress__percent {
    white-space: nowrap;
    color: #7dd3fc;
    font-variant-numeric: tabular-nums;
}

.upload-progress__track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
}

.upload-progress__fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    box-shadow: 0 0 18px rgba(56,189,248,.25);
    transition: width .18s linear;
}

.upload-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 20px;
    padding: 44px 60px 0;
    color: white;
}

.upload-hero__copy,
.upload-hero__aside {
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
}

.upload-hero__copy {
    padding: 32px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(56,189,248,.16), transparent 42%),
        radial-gradient(circle at bottom right, rgba(99,102,241,.16), transparent 40%),
        rgba(255,255,255,.05);
}

.upload-hero__copy h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.05;
}

.upload-hero__copy p {
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 760px;
}

.upload-hero__chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.upload-hero__aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15,23,42,.84), rgba(15,23,42,.58));
}

.upload-hero__aside-kicker,
.upload-form__aside-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    color: #7dd3fc;
}

.upload-hero__steps {
    margin: 0;
    padding-left: 20px;
    color: #e5e7eb;
    line-height: 1.7;
    display: grid;
    gap: 12px;
}

.upload-form--featured {
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(56,189,248,.12), transparent 36%),
        rgba(255,255,255,.05);
}

.upload-form__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
    gap: 20px;
    align-items: start;
}

.upload-form__main {
    display: grid;
    gap: 12px;
}

.upload-form__aside {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(2,6,23,.44);
    border: 1px solid rgba(255,255,255,.08);
}

.upload-form__note {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.upload-form__note--accent {
    background: linear-gradient(180deg, rgba(56,189,248,.12), rgba(99,102,241,.12));
}

.upload-form__note p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.7;
}

.category-picker {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
}

.category-picker__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
    padding: 0;
}

.category-picker__head h2 {
    margin: 0;
    font-size: clamp(22px, 2.3vw, 34px);
    line-height: 1.1;
    color: #fff;
}

.category-picker__head p {
    margin: 0;
    max-width: 460px;
    color: #cbd5e1;
    line-height: 1.6;
}

.category-picker__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.category-choice {
    position: relative;
    display: block;
    cursor: pointer;
}

.category-choice input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.category-choice__content {
    display: grid;
    gap: 8px;
    min-height: 118px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.category-choice__content strong {
    font-size: 18px;
}

.category-choice__content span {
    color: #cbd5e1;
    line-height: 1.5;
    font-size: 14px;
}

.category-choice:hover .category-choice__content {
    transform: translateY(-2px);
    border-color: rgba(125,211,252,.35);
}

.category-choice input:focus-visible + .category-choice__content {
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
}

.category-choice input:checked + .category-choice__content {
    border-color: rgba(125,211,252,.7);
    background: linear-gradient(180deg, rgba(56,189,248,.18), rgba(99,102,241,.18));
    box-shadow: 0 18px 32px rgba(8,15,32,.35);
}

.upload-form__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.upload-form__footer-note {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 680px;
}

.upload-form--featured button {
    min-width: 180px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 60px 60px;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(15px);
}

.pagination__meta {
    color: #e5e7eb;
    font-weight: 600;
}

.pagination__actions {
    display: flex;
    gap: 12px;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg,#38bdf8,#6366f1);
    transition: transform .2s ease, box-shadow .2s ease;
}

.pagination__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(56,189,248,.25);
}

.video-player {
    display: block;
    width: min(100%, 900px);
    margin: 24px 60px 40px;
    border-radius: 20px;
    background: #000;
    box-shadow: 0 24px 50px rgba(0,0,0,.3);
}

.home-hero,
.catalog-page,
.video-page {
    padding: 44px 60px 0;
    color: white;
}

.home-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;
}

.home-hero__copy,
.home-hero__stats,
.catalog-page__hero,
.category-hero,
.video-page__head,
.section-head,
.category-card,
.playlist-card,
.history-card,
.user-card {
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
}

.home-hero__copy {
    padding: 32px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(56,189,248,.16), transparent 42%),
        radial-gradient(circle at bottom right, rgba(99,102,241,.16), transparent 40%),
        rgba(255,255,255,.05);
}

.home-hero__copy h1,
.catalog-page__hero h1,
.category-hero h1,
.video-page__head h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.05;
}

.home-hero__copy p,
.catalog-page__hero p,
.category-hero p {
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 760px;
}

.home-hero__eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 11px;
    color: #7dd3fc;
}

.home-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.home-hero__note {
    margin: 18px 0 0;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 720px;
}

.home-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-video-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 16px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    border-radius: 26px;
    border: 1px solid rgba(168,85,247,.28);
    background:
        linear-gradient(180deg, rgba(168,85,247,.36), rgba(15,23,42,.92)),
        rgba(255,255,255,.05);
    box-shadow: 0 18px 36px rgba(88,28,135,.16);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(196,181,253,.5);
    box-shadow: 0 24px 48px rgba(88,28,135,.26);
}

.home-video-card__media {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(2,6,23,.6);
}

.home-video-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.home-video-card__label {
    color: #e9d5ff;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-video-card strong {
    font-size: 20px;
    line-height: 1.25;
}

.home-video-card__meta {
    color: #d8b4fe;
}

.catalog-section {
    padding: 44px 60px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 24px;
    margin-bottom: 20px;
}

.section-head h2,
.catalog-page__hero h1,
.category-hero h1,
.video-page__head h1 {
    margin: 0;
}

.section-head a {
    color: #7dd3fc;
    text-decoration: none;
}

.category-grid,
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.category-card {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    text-decoration: none;
    color: white;
    transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:hover,
.playlist-card:hover,
.history-card:hover,
.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0,0,0,.24);
}

.category-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.category-card__body {
    padding: 18px;
}

.category-card__body strong,
.playlist-card strong,
.history-card strong,
.user-card__body h2 {
    display: block;
    margin-bottom: 8px;
}

.category-card__body p,
.playlist-card span,
.history-card__body span,
.user-card__body p {
    margin: 0;
    color: #cbd5e1;
}

.category-card__count {
    display: inline-flex;
    margin-bottom: 8px;
    color: #7dd3fc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.catalog-page__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 18px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(168,85,247,.22), rgba(59,130,246,.12));
    border: 1px solid rgba(196,181,253,.22);
}

.catalog-page__summary strong {
    font-size: 28px;
    line-height: 1;
}

.catalog-page__hero,
.category-hero,
.video-page__head {
    padding: 32px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(56,189,248,.16), transparent 40%),
        rgba(255,255,255,.05);
    margin-bottom: 24px;
}

.category-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 24px;
    align-items: center;
}

.category-hero__media img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

.video-page {
    padding-bottom: 44px;
}

.video-page__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
}

.video-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.video-meta__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: #e2e8f0;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}

.video-filter {
    margin: 0 60px 24px;
    padding: 22px 24px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(99,102,241,.13), transparent 36%),
        rgba(255,255,255,.045);
    backdrop-filter: blur(16px);
}

.video-filter__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 18px;
}

.video-filter__head .section-kicker {
    margin-bottom: 7px;
}

.video-filter__head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2.5vw, 34px);
}

.video-filter__head p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #cbd5e1;
    line-height: 1.55;
}

.video-filter__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.video-filter__selection {
    color: #cbd5e1;
    font-size: 14px;
    white-space: nowrap;
}

.video-filter__clear {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(125,211,252,.26);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(56,189,248,.08);
    cursor: pointer;
}

.video-filter__clear:hover {
    border-color: rgba(125,211,252,.52);
    background: rgba(56,189,248,.15);
}

.video-filter__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.video-filter-option {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.video-filter-option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.video-filter-option span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255,255,255,.05);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.video-filter-option:hover span {
    transform: translateY(-1px);
    border-color: rgba(196,181,253,.4);
}

.video-filter-option input:focus-visible + span {
    outline: 2px solid #7dd3fc;
    outline-offset: 3px;
}

.video-filter-option input:checked + span {
    border-color: rgba(125,211,252,.7);
    color: #fff;
    background: linear-gradient(135deg, rgba(56,189,248,.34), rgba(99,102,241,.38));
    box-shadow: 0 10px 24px rgba(37,99,235,.18);
}

.video-results {
    transition: opacity .18s ease;
}

.video-results.is-loading {
    opacity: .46;
    pointer-events: none;
}

.video-results [hidden] {
    display: none !important;
}

.ad-slot {
    width: min(1180px, calc(100% - 32px));
    margin: 22px auto;
    padding: 10px;
    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(15, 23, 42, 0.88)),
        #0f172a;
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
}

.ad-slot__label {
    display: block;
    margin: 0 4px 7px;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ad-slot__link {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    overflow: hidden;
    border-radius: 13px;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.72);
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.ad-slot__link:hover,
.ad-slot__link:focus-visible {
    color: #fff;
    background: rgba(30, 41, 59, 0.92);
    transform: translateY(-1px);
}

.ad-slot__copy {
    display: grid;
    gap: 7px;
}

.ad-slot__copy strong {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.ad-slot__copy span {
    color: #cbd5e1;
    line-height: 1.5;
}

.ad-slot__cta {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.ad-slot__image {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 10px;
}

.ad-slot--compact {
    width: 100%;
    margin: 0 0 18px;
}

.ad-slot--compact .ad-slot__link {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
}

@media (max-width: 640px) {
    .ad-slot {
        width: min(100% - 20px, 1180px);
        margin-block: 16px;
        padding: 8px;
        border-radius: 15px;
    }

    .ad-slot__link {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }
}

.video-results__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 60px 20px;
}

.video-results__categories {
    color: #cbd5e1;
    font-size: 14px;
}

.video-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 0 60px 60px;
}

.video-page-card {
    display: block;
    text-decoration: none;
    color: white;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(15px);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.video-page-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 35px rgba(56,189,248,.25);
    border-color: rgba(56,189,248,.22);
}

.video-page-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.video-page-card .card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    height: auto;
}

.video-page-card > .video-page-card__thumb {
    aspect-ratio: 16 / 9;
    height: auto;
}

.video-page-card .card__media > .video-page-card__thumb {
    height: 100%;
    aspect-ratio: auto;
}

.video-page-card__body {
    display: grid;
    gap: 10px;
    padding: 18px 20px 20px;
}

.video-page-card__body strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.35;
}

.video-page-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #9ca3af;
    font-size: 14px;
}

.video-page-card__meta span {
    display: inline-block;
    padding: 0;
    text-align: left;
    color: inherit;
    font-size: inherit;
    font-weight: 500;
}

.video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.video-actions form {
    margin: 0;
}

.video-panel {
    padding: 0 60px 20px;
}

.video-watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
    gap: 24px;
    align-items: start;
}

.video-watch-main {
    min-width: 0;
}

.video-watch-layout .video-player {
    width: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: 16 / 9;
}

.video-watch-layout .video-panel {
    padding: 24px 0 0;
}

.video-recommendations {
    position: sticky;
    top: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(16px);
}

.video-recommendations__head {
    margin-bottom: 16px;
}

.video-recommendations__head h2 {
    margin: 5px 0 0;
    color: white;
    font-size: 22px;
}

.recommendation-list {
    display: grid;
    gap: 14px;
}

.recommendation-card {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 12px;
    color: white;
    text-decoration: none;
}

.recommendation-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: #000;
}

.recommendation-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.recommendation-card__body strong {
    display: -webkit-box;
    overflow: hidden;
    color: white;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recommendation-card__body span {
    overflow: hidden;
    color: #9ca3af;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommendation-card:hover strong {
    color: #d8b4fe;
}

.playlist-grid,
.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.playlist-create {
    margin: 0 60px 24px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
}

.playlist-create__head {
    padding: 0;
    margin-bottom: 12px;
    background: transparent;
    border: 0;
    backdrop-filter: none;
}

.playlist-create__note {
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.6;
}

.playlist-create__form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}

.playlist-card,
.history-card,
.user-card {
    display: block;
    text-decoration: none;
    color: white;
    border-radius: 24px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.playlist-card,
.history-card {
    padding: 18px;
}

.history-card {
    display: grid;
    gap: 12px;
}

.history-card .video-card__thumb,
.history-card img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.history-card__body {
    display: grid;
    gap: 4px;
}

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

.user-card {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.user-card__avatar img {
    width: 96px;
    height: 96px;
}

.user-card__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.profile-stats--compact {
    gap: 16px;
    margin-top: 18px;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.upload-form input,
.upload-form select,
.upload-form textarea,
.auth-card input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: white;
    padding: 12px 14px;
}

.upload-form textarea {
    resize: vertical;
    min-height: 100px;
}

.upload-form select {
    appearance: none;
}

.auth-card button,
.upload-form button {
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    color: white;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.auth-card button:hover,
.upload-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(56,189,248,.22);
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-button form {
    margin: 0;
}

.profile-button .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-section {
    padding: 0 60px 48px;
}

.profile-section .section-head {
    margin-bottom: 18px;
}

@media(max-width:900px) {
    .home-hero,
    .category-hero,
    .video-page__head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .home-hero,
    .catalog-section,
    .catalog-page,
    .video-page,
    .upload-hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-hero,
    .catalog-page,
    .video-page {
        padding-top: 24px;
    }

    .section-head,
    .catalog-page__hero,
    .category-hero,
    .video-page__head {
        padding: 20px;
    }

    .profile-section,
    .video-panel {
        padding-left: 20px;
        padding-right: 20px;
    }

    .profile-content {
        left: 20px;
        right: 20px;
    }

    .playlist-create {
        margin-left: 20px;
        margin-right: 20px;
    }

    .upload-hero {
        grid-template-columns: 1fr;
        padding-top: 28px;
    }

    .upload-form,
    .playlist-create {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media(max-width:1100px) {
    .home-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:1050px) {
    .video-watch-layout {
        grid-template-columns: 1fr;
    }

    .video-recommendations {
        position: static;
    }

    .recommendation-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:900px) {
    .profile-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-avatar {
        margin-bottom: 25px;
    }

    .profile-info {
        margin-left: 0;
    }

    .profile-stats {
        flex-wrap: wrap;
    }

    .profile-button {
        margin-top: 30px;
    }

    .profile-tabs {
        flex-wrap: wrap;
    }

    .pagination {
        margin: 0 20px 40px;
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-empty {
        padding: 0 20px 30px;
    }

    .upload-form,
    .upload-hero {
        margin-left: 20px;
        margin-right: 20px;
    }

    .upload-hero {
        padding: 28px 20px 0;
    }

    .upload-hero__copy,
    .upload-hero__aside {
        padding: 20px;
    }

    .upload-form--featured {
        padding: 20px;
    }

    .upload-form__layout {
        grid-template-columns: 1fr;
    }

    .upload-form__aside {
        order: 2;
    }

    .category-picker__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-form__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-player {
        width: calc(100% - 40px);
        margin: 20px 20px 32px;
    }

    .video-page__grid {
        padding-left: 20px;
        padding-right: 20px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-filter,
    .video-results__summary {
        margin-left: 20px;
        margin-right: 20px;
    }

    .video-filter__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .video-filter__controls {
        justify-content: flex-start;
    }
}

@media(max-width:780px) {
    .home-video-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        display: grid;
        grid-template-columns: 1fr;
        border-radius: 28px;
        background: linear-gradient(180deg, rgba(168,85,247,.32), rgba(15,23,42,.94));
        border-color: rgba(196,181,253,.34);
        box-shadow: 0 18px 38px rgba(88,28,135,.18);
    }

    .category-card img {
        height: 220px;
    }

    .category-card__body {
        padding: 20px 18px 22px;
    }

    .category-card__body strong {
        font-size: 26px;
        line-height: 1.08;
    }

    .category-card__body p {
        display: none;
    }

    .category-picker__grid {
        grid-template-columns: 1fr;
    }

    .catalog-page__summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .recommendation-list {
        grid-template-columns: 1fr;
    }
}

@media(max-width:640px) {
    .home-hero,
    .catalog-page,
    .video-page,
    .catalog-section,
    .profile-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .home-hero {
        padding-top: 16px;
    }

    .catalog-section {
        padding-top: 28px;
    }

    .home-hero__copy,
    .catalog-page__hero,
    .category-hero,
    .video-page__head,
    .section-head {
        padding: 18px;
        border-radius: 22px;
    }

    .home-hero__copy h1,
    .catalog-page__hero h1,
    .category-hero h1,
    .video-page__head h1 {
        font-size: clamp(29px, 9vw, 40px);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .home-hero__copy p,
    .catalog-page__hero p,
    .category-hero p {
        line-height: 1.55;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-head h2 {
        font-size: 24px;
    }

    .home-hero__actions,
    .video-actions,
    .profile-button,
    .pagination__actions,
    .upload-form__footer {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero__actions .btn,
    .video-actions .btn,
    .profile-button a,
    .profile-button .btn,
    .pagination__link,
    .upload-form__footer button,
    .upload-form__footer .btn,
    .auth-card button,
    .upload-form button {
        width: 100%;
        min-height: 48px;
        padding: 14px 16px;
        font-size: 15px;
        box-sizing: border-box;
    }

    .profile-button a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .profile-tabs {
        padding: 20px 16px;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        min-height: 44px;
        padding: 12px 14px;
    }

    .video-meta {
        gap: 8px;
    }

    .video-meta__chip {
        min-height: 44px;
        padding: 10px 14px;
    }

    .video-filter {
        margin-left: 14px;
        margin-right: 14px;
        padding: 18px;
        border-radius: 20px;
    }

    .video-filter__options {
        flex-wrap: nowrap;
        margin-left: -18px;
        margin-right: -18px;
        padding: 2px 18px 10px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .video-filter__options::-webkit-scrollbar {
        display: none;
    }

    .video-filter-option {
        flex: 0 0 auto;
    }

    .video-page__grid {
        grid-template-columns: minmax(0, 1fr);
        padding-left: 14px;
        padding-right: 14px;
        padding-bottom: 40px;
        gap: 14px;
    }

    .video-results__summary {
        margin-left: 14px;
        margin-right: 14px;
    }

    .video-page-card__body {
        padding: 16px 16px 18px;
    }

    .video-page-card__body strong {
        font-size: 16px;
        line-height: 1.25;
    }

    .video-page-card__meta {
        gap: 6px 10px;
        font-size: 13px;
    }

    .auth-card button,
    .upload-form button {
        border-radius: 16px;
    }

    .video-recommendations {
        padding: 16px;
        border-radius: 20px;
    }

    .recommendation-card {
        grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
    }

    .category-card img {
        height: 190px;
    }

    .category-card__body strong {
        font-size: 23px;
    }

    .category-hero__media img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media(max-width:640px) {
    .profile-banner {
        height: auto;
        min-height: 0;
        padding: 28px 16px 24px;
        box-sizing: border-box;
    }

    .profile-content {
        position: relative;
        inset: auto;
        width: 100%;
        align-items: center;
        box-sizing: border-box;
        text-align: center;
    }

    .profile-avatar {
        margin: 0 0 14px;
    }

    .profile-avatar img {
        width: 112px;
        height: 112px;
        border-width: 4px;
    }

    .profile-info {
        width: 100%;
        margin: 0;
    }

    .profile-info h1 {
        font-size: clamp(28px, 9vw, 38px);
        overflow-wrap: anywhere;
    }

    .profile-info p {
        overflow-wrap: anywhere;
    }

    .profile-stats {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 8px;
        margin-top: 22px;
    }

    .stat h2 {
        font-size: 23px;
    }

    .stat span {
        font-size: 12px;
    }

    .profile-button {
        margin-top: 22px;
    }

    .profile-tabs {
        margin: 0;
        padding: 16px 14px;
        scrollbar-width: none;
    }

    .profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .profile-section {
        padding-bottom: 32px;
    }

    .videos-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 0 0 32px;
    }

    .profile-section .profile-empty,
    .profile-empty {
        padding-left: 0;
        padding-right: 0;
    }

    .playlist-create,
    .upload-form {
        margin-left: 14px;
        margin-right: 14px;
    }
}

@media (hover: none), (pointer: coarse) {
    .home-video-card,
    .video-page-card,
    .category-card,
    .card,
    .recommendation-card {
        transition: none;
    }

    .home-video-card:hover,
    .video-page-card:hover,
    .category-card:hover,
    .card:hover {
        transform: none;
    }
}

.home-video-card,
.video-page-card {
    content-visibility: auto;
    contain-intrinsic-size: 320px 290px;
}

.video-description {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    line-height: 1.65;
}

.video-description h2 {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 20px;
}

.video-description p {
    margin: 0;
}

.video-description p + p {
    margin-top: 8px;
}

.catalog-breadcrumbs {
    margin: 0 60px 18px;
}

@media (max-width: 640px) {
    .catalog-breadcrumbs {
        margin: 0 14px 14px;
    }
}

/* Отдельная компоновка для телефона после поворота. Ограничение по высоте
   не затрагивает планшеты и обычные настольные окна. */
@media (orientation: landscape) and (max-width: 950px) and (max-height: 600px) {
    .home-hero,
    .catalog-page,
    .video-page {
        padding-top: 16px;
    }

    .home-hero,
    .catalog-section,
    .catalog-page,
    .video-page,
    .upload-hero,
    .profile-section,
    .video-panel {
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-hero__copy,
    .catalog-page__hero,
    .category-hero,
    .video-page__head,
    .section-head {
        padding: 18px 20px;
        border-radius: 22px;
    }

    .home-hero__copy h1,
    .catalog-page__hero h1,
    .category-hero h1,
    .video-page__head h1 {
        font-size: clamp(30px, 5.2vw, 44px);
    }

    .home-hero__copy p,
    .catalog-page__hero p,
    .category-hero p {
        line-height: 1.5;
    }

    .home-hero__actions {
        width: auto;
        flex-direction: row;
        align-items: center;
        margin-top: 16px;
    }

    .home-hero__actions .btn {
        width: auto;
        min-height: 42px;
        padding: 10px 14px;
    }

    .home-hero__note {
        margin-top: 12px;
    }

    .catalog-section {
        padding-top: 28px;
    }

    .video-filter {
        margin: 0 18px 20px;
        padding: 18px 20px;
    }

    .video-filter__head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 16px;
    }

    .video-page__grid {
        padding-right: 18px;
        padding-left: 18px;
        gap: 18px;
    }

    .video-results__summary {
        margin-right: 18px;
        margin-left: 18px;
    }

    .category-hero {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
    }

    .category-hero__media img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .profile-banner {
        height: auto;
        min-height: 0;
        padding: 20px;
        box-sizing: border-box;
    }

    .profile-content {
        position: relative;
        inset: auto;
        width: 100%;
        flex-direction: row;
        align-items: center;
        box-sizing: border-box;
    }

    .profile-avatar {
        flex: 0 0 auto;
        margin: 0 14px 0 0;
    }

    .profile-avatar img {
        width: 96px;
        height: 96px;
        border-width: 4px;
    }

    .profile-info {
        min-width: 0;
        margin: 0;
    }

    .profile-info h1 {
        font-size: 30px;
        overflow-wrap: anywhere;
    }

    .profile-info p {
        margin: 4px 0;
        overflow-wrap: anywhere;
    }

    .profile-stats {
        display: grid;
        grid-template-columns: repeat(5, minmax(58px, auto));
        gap: 12px;
        margin-top: 14px;
    }

    .stat h2 {
        font-size: 22px;
    }

    .stat span {
        font-size: 11px;
    }

    .profile-button {
        width: 140px;
        flex: 0 0 140px;
        align-items: stretch;
        flex-direction: column;
        margin: 0 0 0 18px;
    }

    .profile-button a,
    .profile-button .btn {
        min-height: 42px;
        padding: 10px 12px;
        box-sizing: border-box;
        text-align: center;
    }

    .profile-tabs {
        flex-wrap: nowrap;
        padding: 14px 18px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        padding: 0 18px 36px;
    }

    .playlist-create,
    .upload-form,
    .upload-hero {
        margin-right: 18px;
        margin-left: 18px;
    }

    .video-watch-layout {
        gap: 18px;
    }

    .recommendation-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (orientation: landscape) and (max-width: 700px) and (max-height: 600px) {
    .profile-content {
        flex-wrap: wrap;
    }

    .profile-info {
        flex: 1 1 calc(100% - 110px);
    }

    .profile-stats {
        grid-template-columns: repeat(3, minmax(58px, 1fr));
    }

    .profile-button {
        width: 100%;
        flex: 1 1 100%;
        flex-direction: row;
        margin: 12px 0 0;
    }

    .profile-button a,
    .profile-button .btn,
    .profile-button form {
        flex: 1 1 0;
    }
}
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
}

.breadcrumbs a {
    color: #7dd3fc;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.information-page {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 72px;
}

.information-page__hero {
    margin-top: 18px;
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .16), transparent 42%),
        rgba(255, 255, 255, .04);
}

.information-page__hero h1 {
    margin: 12px 0 0;
    font-size: clamp(32px, 7vw, 58px);
    line-height: 1.05;
}

.information-page__hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .76);
    line-height: 1.65;
}

.information-page__content {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.information-page__content section {
    padding: clamp(22px, 4vw, 32px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    background: rgba(255, 255, 255, .035);
}

.information-page__content h2 {
    margin: 0;
    font-size: clamp(22px, 4vw, 30px);
}

.information-page__content p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .76);
    line-height: 1.7;
}

@media (max-width: 640px) {
    .information-page {
        width: min(100% - 24px, 920px);
        padding-top: 20px;
    }
}
