/* ============================================================
   Tattoo-Hub — Design System v2
   Bootstrap 5 + INSPINIA override
   ============================================================ */

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root,
:root[data-bs-theme="light"],
:root[data-bs-theme="dark"],
html[data-skin="classic"],
html[data-skin="saas"],
html[data-skin="modern"],
html[data-skin="material"],
html[data-skin="minimal"],
html[data-skin="flat"] {
    /* ---- Override INSPINIA font for ALL themes and skins ---- */
    --ins-font-sans-serif: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

:root {
    /* ---- Typography scale (UX-015, UX-016) ---- */
    --tt-fs-page:    1.5rem;    /* страничный H1 — 24px (UX-016) */
    --tt-fs-section: 1.125rem;  /* заголовки секций */
    --tt-fs-card:    0.9375rem; /* заголовок карточки */
    --tt-fs-body:    0.9375rem; /* основной текст — 15px (UX-015) */
    --tt-fs-meta:    0.8125rem; /* мета: дата, город, счётчики */
    --tt-fs-label:   0.75rem;   /* метки фильтров, таблиц */
    --tt-fs-badge:   0.6875rem; /* теги и бейджи (минимум) */

    /* ---- Line-heights ---- */
    --tt-lh-tight:  1.2;
    --tt-lh-normal: 1.5;
    --tt-lh-loose:  1.65;

    /* ---- Spacing (UX-017: кратные 4px) ---- */
    --tt-gap-xs:  0.25rem;   /*  4px */
    --tt-gap-sm:  0.5rem;    /*  8px */
    --tt-gap-md:  1rem;      /* 16px */
    --tt-gap-lg:  1.5rem;    /* 24px */
    --tt-gap-xl:  2rem;      /* 32px */
    --tt-gap-2xl: 2.5rem;    /* 40px */

    /* ---- Border radius ---- */
    --tt-radius-sm: 0.375rem;
    --tt-radius-md: 0.5rem;
    --tt-radius-lg: 0.75rem;
    --tt-radius-xl: 1rem;

    /* ---- Shadows ---- */
    --tt-shadow-card:  0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
    --tt-shadow-md:    0 4px 16px rgba(0,0,0,.10);
    --tt-shadow-hover: 0 4px 16px rgba(0,0,0,.10);
    --tt-shadow-lift:  0 8px 28px rgba(0,0,0,.14);

    /* ---- Transitions ---- */
    --tt-transition: 0.18s ease;

    /* ---- Z-index scale (UX-013) ---- */
    --tt-z-base:     1;
    --tt-z-elevated: 10;
    --tt-z-sticky:   1020;
    --tt-z-dropdown: 1050;
    --tt-z-modal:    1060;
    --tt-z-tooltip:  1070;

    /* ---- Colors (UX-014) ---- */
    --tt-color-rating: #f5a623;

    /* ---- Spacing extra-small (UX-017) ---- */
    --tt-gap-2xs: 0.25rem;  /*  4px */

    /* ---- Image heights (UX-019) ---- */
    --tt-cover-artist-card:  200px;
    --tt-cover-artist-page:  240px;
    --tt-thumb-portfolio-md: 180px;
}

/* ================================================================
   BASE FONT + SMOOTHING (UX-021, UX-022)
   ================================================================ */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--tt-fs-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================================
   GLOBAL UTILITIES
   ================================================================ */

/* Мета-информация: даты, города, счётчики */
.tt-meta {
    font-size: var(--tt-fs-meta);
    line-height: var(--tt-lh-normal);
}

/* Метка раздела / фильтра */
.tt-label {
    font-size: var(--tt-fs-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--bs-secondary-color);
    line-height: var(--tt-lh-normal);
}

/* Минимальный читаемый размер для бейджей/тегов */
.tt-badge {
    font-size: var(--tt-fs-badge) !important;
    line-height: 1.4;
}

/* Текст с переносами строк (описания заказов) */
.tt-preformatted {
    white-space: pre-line;
    line-height: var(--tt-lh-loose);
}

/* ================================================================
   PAGE HEADER
   ================================================================ */
.page-header {
    margin-bottom: var(--tt-gap-lg);
}

.page-header h1 {
    font-size: var(--tt-fs-page);
    font-weight: 700;
    line-height: var(--tt-lh-tight);
}

/* ================================================================
   HERO
   ================================================================ */
.tattoo-hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg,
        rgba(var(--bs-primary-rgb), .06) 0%,
        transparent 60%);
    border-radius: 0 0 var(--tt-radius-xl) var(--tt-radius-xl);
    margin-bottom: var(--tt-gap-xl);
}

.hero-title {
    font-size: clamp(1.875rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: var(--tt-lh-tight);
    margin-bottom: var(--tt-gap-md);
}

.hero-subtitle {
    font-size: 1.0625rem;
    line-height: var(--tt-lh-loose);
    margin-bottom: var(--tt-gap-xl);
}

.hero-search {
    max-width: 600px;
    margin: 0 auto var(--tt-gap-md);
}

/* CTA hero кнопка (UX-023) */
.hero-search .btn-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #9b7de8 100%);
    border: none;
    font-weight: 600;
    letter-spacing: .02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-search .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb), .4);
}

.search-icon-inside {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--bs-secondary-color);
    z-index: 5;
    pointer-events: none;
}

/* ================================================================
   SEARCH AUTOCOMPLETE
   ================================================================ */
.search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--tt-radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 1050;
    max-height: 360px;
    overflow-y: auto;
}

.search-dropdown .suggest-item {
    display: flex;
    align-items: center;
    gap: var(--tt-gap-sm);
    padding: .625rem var(--tt-gap-md);
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    transition: background var(--tt-transition);
    font-size: var(--tt-fs-body);
}

.search-dropdown .suggest-item:last-child { border-bottom: none; }
.search-dropdown .suggest-item:hover { background: var(--bs-tertiary-bg); }

.search-dropdown .suggest-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--tt-radius-sm);
    flex-shrink: 0;
    background: var(--bs-secondary-bg);
}

.search-dropdown .suggest-type {
    font-size: var(--tt-fs-badge);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--bs-secondary-color);
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section-block {
    margin-bottom: var(--tt-gap-2xl);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--tt-gap-lg);
}

.section-title {
    font-size: var(--tt-fs-section);
    font-weight: 700;
    line-height: var(--tt-lh-tight);
    margin: 0;
}

/* ================================================================
   STYLE TILES
   ================================================================ */
.style-tile {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--tt-radius-md) !important;
    transition: border-color var(--tt-transition),
                transform var(--tt-transition),
                box-shadow var(--tt-transition);
}

.style-tile .card-body {
    padding: var(--tt-gap-md) var(--tt-gap-sm);
}

.style-tile:hover {
    border-color: var(--bs-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb), .15);
    text-decoration: none;
}

.style-tile .fw-semibold.small {
    font-size: var(--tt-fs-meta);
}

/* ================================================================
   ARTIST CARDS
   ================================================================ */
.artist-card {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--tt-radius-md) !important;
    overflow: hidden;
    transition: transform var(--tt-transition), box-shadow var(--tt-transition);
    box-shadow: var(--tt-shadow-card);
}

.artist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tt-shadow-lift);
}

.artist-card-cover {
    height: var(--tt-cover-artist-card);
    background-color: var(--bs-secondary-bg);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.artist-card-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artist-card .card-body {
    padding: var(--tt-gap-md);
}

.artist-card .card-body h6 {
    font-size: var(--tt-fs-card);
    font-weight: 600;
    line-height: var(--tt-lh-tight);
    margin-bottom: .3rem;
}

.artist-card .text-muted.small {
    font-size: var(--tt-fs-meta);
}

.artist-verified-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    font-size: .875rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
}

/* Метки статистики на странице мастера (РАБОТ / ОТЗЫВОВ / ОПЫТ) */
.artist-stat-label {
    font-size: var(--tt-fs-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bs-secondary-color);
    line-height: 1.3;
    margin-top: 2px;
}

/* ================================================================
   PORTFOLIO CARDS
   ================================================================ */
.portfolio-card {
    border-radius: var(--tt-radius-md);
    overflow: hidden;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    transition: transform var(--tt-transition), box-shadow var(--tt-transition);
    box-shadow: var(--tt-shadow-card);
}

.portfolio-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tt-shadow-hover);
}

.portfolio-thumb {
    aspect-ratio: 1 / 1;
    background-color: #111;
    position: relative;
    overflow: hidden;
}

/* Blurred backdrop — красиво отображает любые фото включая цветные фоны */
.portfolio-thumb::before {
    content: '';
    position: absolute;
    inset: -15%;
    background: var(--tt-thumb-bg) center / cover no-repeat;
    filter: blur(18px) brightness(0.6) saturate(1.4);
    transform: scale(1.3);
    opacity: 0.85;
    z-index: 0;
    transition: opacity 0.3s;
}

.portfolio-thumb > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-thumb > img {
    transform: scale(1.04);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: .5rem;
    opacity: 0;
    transition: opacity var(--tt-transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card-info {
    padding: var(--tt-gap-sm);
    border-top: 1px solid var(--bs-border-color);
}

.portfolio-card-info .fw-semibold {
    font-size: var(--tt-fs-body);
    line-height: var(--tt-lh-normal);
}

.portfolio-card-info .text-muted,
.portfolio-card-info .small {
    font-size: var(--tt-fs-meta);
}

.portfolio-card-info .text-primary {
    font-size: var(--tt-fs-meta);
    font-weight: 600;
}

/* ---- Галерея на странице работы ---- */
.tt-gallery-main {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--tt-radius-md);
    display: block;
}

.tt-gallery-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--tt-radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--tt-transition), opacity var(--tt-transition);
    opacity: .72;
}

.tt-gallery-thumb:hover  { opacity: 1; }

.tt-gallery-thumb.is-active,
.tt-gallery-thumb.border-primary { border-color: var(--bs-primary) !important; opacity: 1; }

/* ---- Превью портфолио в дашборде ---- */
.tt-portfolio-thumb-md {
    height: var(--tt-thumb-portfolio-md);
    overflow: hidden;
    border-radius: var(--tt-radius-md) var(--tt-radius-md) 0 0;
    background: #111;
    position: relative;
}

.tt-portfolio-thumb-md::before {
    content: '';
    position: absolute;
    inset: -15%;
    background: var(--tt-thumb-bg) center / cover no-repeat;
    filter: blur(18px) brightness(0.6) saturate(1.4);
    transform: scale(1.3);
    opacity: 0.85;
    z-index: 0;
}

.tt-portfolio-thumb-md img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
}

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
    background: linear-gradient(135deg,
        rgba(var(--bs-primary-rgb), .08) 0%,
        rgba(var(--bs-primary-rgb), .03) 100%);
    border: 1px solid rgba(var(--bs-primary-rgb), .2) !important;
    border-radius: var(--tt-radius-xl) !important;
}

.cta-banner h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.cta-banner p {
    font-size: var(--tt-fs-body);
    line-height: var(--tt-lh-loose);
}

/* ================================================================
   CATALOG FILTERS
   ================================================================ */
.catalog-filters {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}


.filter-section {
    margin-bottom: var(--tt-gap-lg);
}

.filter-section-title {
    font-size: var(--tt-fs-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--bs-secondary-color);
    margin-bottom: var(--tt-gap-sm);
    line-height: var(--tt-lh-normal);
}

/* ================================================================
   ARTIST PROFILE PAGE
   ================================================================ */
.artist-profile-cover {
    height: var(--tt-cover-artist-page);
    background-size: cover;
    background-position: center;
    border-radius: var(--tt-radius-lg) var(--tt-radius-lg) 0 0;
    background-color: var(--bs-secondary-bg);
}

.artist-profile-avatar {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border: 3px solid var(--bs-body-bg);
    border-radius: 50%;
    margin-top: -44px;
    position: relative;
    z-index: 1;
    background: var(--bs-secondary-bg);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================================
   RATING STARS
   ================================================================ */
.rating-stars {
    color: #f5a623;
    letter-spacing: .05em;
    font-size: 1rem;
    line-height: 1;
}

.rating-stars.small { font-size: var(--tt-fs-body); }

/* ================================================================
   CARDS — общие правила для заголовков
   ================================================================ */
.card-header .fw-semibold,
.card-header h5,
.card-header h6 {
    font-size: var(--tt-fs-card);
    font-weight: 600;
    line-height: var(--tt-lh-normal);
}

/* ================================================================
   BREADCRUMBS
   ================================================================ */
.breadcrumb {
    font-size: var(--tt-fs-meta);
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-secondary-color);
}

/* ================================================================
   TABLES
   ================================================================ */
.table th {
    font-size: var(--tt-fs-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}

.table td {
    font-size: var(--tt-fs-body);
    vertical-align: middle;
}

.table td.text-muted {
    font-size: var(--tt-fs-meta);
}

/* ================================================================
   FORMS
   ================================================================ */
.form-label {
    font-size: var(--tt-fs-meta);
    font-weight: 500;
    margin-bottom: .3rem;
}

/* ================================================================
   PAGINATION  (Yii2 LinkPager Bootstrap 5 compatibility)
   ================================================================ */

/* Yii2 generates <li> without .page-item — fix first/last border-radius */
.pagination > li:first-child > .page-link {
    border-start-start-radius: var(--bs-pagination-border-radius, .375rem);
    border-end-start-radius:   var(--bs-pagination-border-radius, .375rem);
}
.pagination > li:last-child > .page-link {
    border-start-end-radius: var(--bs-pagination-border-radius, .375rem);
    border-end-end-radius:   var(--bs-pagination-border-radius, .375rem);
}
/* Active page */
.pagination > li.active > .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--ins-primary);
    border-color: var(--ins-primary);
}
/* Disabled prev/next */
.pagination > li.disabled > .page-link {
    color: var(--bs-secondary-color);
    pointer-events: none;
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

.portfolio-pagination {
    margin-top: var(--tt-gap-xl);
    display: flex;
    justify-content: center;
}

.portfolio-pagination .pagination { gap: 2px; }

.portfolio-pagination .page-link {
    font-size: var(--tt-fs-meta);
    padding: .3rem .625rem;
    border-radius: var(--tt-radius-sm) !important;
}

/* ================================================================
   LAYOUT — footer always at bottom
   ================================================================ */
.wrapper { overflow-x: hidden; }

.content {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 70px);
}

.content > .container-fluid {
    flex: 1;
}

/* ================================================================
   DARK MODE
   ================================================================ */
[data-bs-theme="dark"] .style-tile {
    background: var(--bs-secondary-bg);
}

[data-bs-theme="dark"] .cta-banner {
    background: linear-gradient(135deg,
        rgba(var(--bs-primary-rgb), .12) 0%,
        rgba(var(--bs-primary-rgb), .04) 100%);
}

[data-bs-theme="dark"] .search-dropdown {
    box-shadow: 0 8px 28px rgba(0,0,0,.45);
}

[data-bs-theme="dark"] .portfolio-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 60%);
}

[data-bs-theme="dark"] .artist-verified-badge {
    background: rgba(30, 30, 45, .92);
    color: var(--bs-primary);
}

[data-bs-theme="dark"] .artist-card,
[data-bs-theme="dark"] .portfolio-card {
    box-shadow: 0 1px 6px rgba(0,0,0,.25), 0 2px 12px rgba(0,0,0,.18);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    :root { --tt-cover-artist-card: 130px; }
}

@media (max-width: 576px) {
    :root {
        --tt-cover-artist-card: 110px;
        --tt-cover-artist-page: 180px;
    }

    .tattoo-hero  { padding: 2rem 0 1.5rem; }
    .hero-title   { font-size: 1.75rem; }
    .section-title { font-size: 1rem; }
    .section-block { margin-bottom: var(--tt-gap-xl); }
    .catalog-filters { position: static; max-height: none; overflow-y: visible; }
    .tt-gallery-thumb { width: 60px; height: 60px; }
}

/* ================================================================
   CARD HOVER EFFECT
   ================================================================ */
.card-hover {
    transition: transform .15s ease, box-shadow .15s ease;
}
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--tt-shadow-md);
}
.hover-bg {
    transition: background-color .15s ease;
    border-radius: var(--tt-radius-md);
}
.hover-bg:hover {
    background-color: var(--bs-secondary-bg);
}

/* ================================================================
   THEME TOGGLE ICON
   ================================================================ */
#theme-icon-light { display: none !important; }
#theme-icon-dark  { display: inline !important; }
[data-bs-theme="light"] #theme-icon-light { display: inline !important; }
[data-bs-theme="light"] #theme-icon-dark  { display: none !important; }

/* ================================================================
   CHAT / MESSENGER (TASK-058)
   ================================================================ */
.chat-bubble {
    padding: 0.5rem 0.75rem;
    border-radius: var(--tt-radius-lg, 0.75rem);
    word-wrap: break-word;
}
.chat-mine {
    background: var(--ins-primary, #7c69ef);
    color: #fff;
    border-bottom-right-radius: 0.2rem;
}
.chat-theirs {
    background: var(--bs-tertiary-bg, rgba(255,255,255,0.08));
    border-bottom-left-radius: 0.2rem;
}
.chat-mine .tt-meta { color: rgba(255,255,255,0.65); }
.chat-mine .tt-meta i { color: rgba(255,255,255,0.65); }
.chat-card { border: none; }

/* Dropzone (TASK-030) */
.upload-dropzone {
    border: 2px dashed var(--bs-border-color);
    border-radius: var(--tt-radius-lg, 0.75rem);
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}
.upload-dropzone.dragover {
    border-color: var(--ins-primary, #7c69ef);
    background: rgba(124, 105, 239, 0.05);
}
.upload-dropzone-preview {
    display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem;
}
.upload-dropzone-preview img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 0.375rem;
}

/* ================================================================
   FORM UTILITIES (перенесено из site.css — UX-011)
   ================================================================ */
.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}
.form-group {
    margin-bottom: 1rem;
}

/* ================================================================
   UTILITY CLASSES (UX-012, UX-009, UX-010)
   ================================================================ */

/* Логотип (UX-012) */
.tt-logo-text {
    font-size: 1.3rem;
    color: var(--ins-primary);
    font-weight: 700;
}
.tt-logo-text span {
    font-weight: 300;
    color: inherit;
}

/* Notification dropdown (UX-009, UX-012) */
.tt-notif-dropdown {
    min-width: min(320px, calc(100vw - 2rem));
    max-width: 380px;
}

/* Fullscreen notifications на mobile (UX-026) */
/* ВАЖНО: стили применяются ТОЛЬКО когда dropdown открыт (.show) — иначе Bootstrap display:none перекрывается */
@media (max-width: 575.98px) {
    /* Сброс Inspinia position:static — иначе Popper ломает позиционирование fullscreen */
    #notif-dropdown {
        position: relative !important;
    }
    #notif-dropdown .tt-notif-dropdown.show {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        transform: none !important;
        translate: none !important;
        display: flex !important;
        flex-direction: column;
        z-index: 1055;
    }
    #notif-dropdown .tt-notif-dropdown.show #notif-list {
        flex: 1;
        overflow-y: auto;
        max-height: none !important;
    }
    /* Кнопка закрытия — видна только на мобилке в fullscreen режиме */
    .tt-notif-close-mobile {
        display: flex !important;
    }
}

/* Line clamp (UX-012) */
.tt-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Studio cover (UX-012) */
.tt-studio-cover {
    height: 110px;
    object-fit: cover;
    width: 100%;
}

/* Verified dot (UX-012) */
.tt-verified-dot {
    width: 18px;
    height: 18px;
    display: inline-block;
}

/* Container max-width для ultrawide (UX-010) */
.content > .container-fluid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================================
   EMPTY STATE (UX-025)
   ================================================================ */
.tt-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}
.tt-empty-state__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: var(--bs-secondary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bs-secondary-color);
}
.tt-empty-state__title {
    font-size: var(--tt-fs-section);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.tt-empty-state__text {
    color: var(--bs-secondary-color);
    font-size: var(--tt-fs-body);
    margin-bottom: 1.25rem;
}

/* ================================================================
   SKELETON LOADING (UX-020)
   ================================================================ */
@keyframes tt-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

.tt-skeleton {
    background: var(--bs-secondary-bg);
    border-radius: var(--tt-radius-sm);
    animation: tt-skeleton-pulse 1.5s ease-in-out infinite;
}

.tt-skeleton-card {
    border-radius: var(--tt-radius-lg);
    overflow: hidden;
}
.tt-skeleton-card .tt-skeleton-thumb {
    height: var(--tt-cover-artist-card);
    width: 100%;
}
.tt-skeleton-card .tt-skeleton-line {
    height: 14px;
    margin: 0.5rem 0.75rem 0.25rem;
    border-radius: var(--tt-radius-sm);
}
.tt-skeleton-card .tt-skeleton-line-sm {
    height: 10px;
    width: 60%;
    margin: 0 0.75rem 0.75rem;
    border-radius: var(--tt-radius-sm);
}

/* ============================================================
   Star Rating Picker (CSS-only, no JS)
   Input order: 5→1 in HTML, flex-direction:row-reverse flips display
   ~ selector highlights all siblings before the checked star
   ============================================================ */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.75rem;
    color: var(--bs-gray-400);
    transition: color 0.15s ease;
    line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f5a623;
}

/* ============================================================
   Extra small devices (iPhone SE, small Android) — 480px
   ============================================================ */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-search .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .hero-search .form-control {
        font-size: 0.9rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .tt-meta {
        font-size: 0.75rem;
    }

    /* Compact button groups on small screens */
    .btn-group-sm > .btn {
        padding: 0.25rem 0.5rem;
    }

    /* Footer columns spacing */
    footer .col-md-3 {
        margin-bottom: 1rem;
    }
}
