/* ============================================================
   Reset & base
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

:root {
    --bg:            #ffffff;
    --surface:       #ffffff;
    --surface-2:     #f4f4f6;
    --border:        #e5e7eb;
    --text:          #1f2937;
    --text-muted:    #6b7280;
    --btn-back:     #00baba;
    --primary:       #00baba;
    --primary-hover: #028c8c;
    --danger:        #dc2626;
    --success:       #16a34a;
    --warning:       #d97706;
    --info:          #2563eb;
    --radius:        10px;
    --radius-sm:     8px;
    --shadow-sm:     0 1px 2px rgba(0, 0, 0, .04);
    --shadow-md:     0 4px 12px rgba(0, 0, 0, .06);
    --shadow-lg:     0 20px 40px rgba(0, 0, 0, .12);
    --container:     1080px;
    --header-h:      64px;
    --navbar-h:      64px;
    --player-h:      64px;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Regular.woff') format('woff'),
         url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/PeydaWeb-Bold.woff2') format('woff2'),
         url('../fonts/PeydaWeb-Bold.woff') format('woff'),
         url('../fonts/PeydaWeb-Bold.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
}

body {
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
    min-height: 100vh;
    padding-bottom: var(--navbar-h);
}

body.modal-open {
    overflow: hidden;
}

a {
    color: #247b76;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

body, input, textarea, select, option, button {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, strong, b, em, i, mark, .highlight, a, .btn, button, input[type="button"], input[type="submit"], input[type="reset"], input[type="checkbox"] + label, input[type="radio"] + label, label, legend, th, caption,  .section-title, .section-head, .modal-title, .brand-name, .nav-link, .hero-title,  .hero-text, .card-title, .lit-card-title,  .track-card-title,
.mini-card-title, .profile-name, .badge, .chip, .tag, .alert, .tab, .modal-tab {
    font-family: 'Peyda', Tahoma, Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6{
    color: var(--primary);
}
/* ============================================================
   Layout helpers
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.site-main {
    min-height: calc(100vh - var(--header-h) - var(--navbar-h));
    padding: 24px 0 32px;
}

.hide-sm {
    display: inline;
}

/* ============================================================
   Top bar
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.brand-tagline {
    font-size: 11px;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
}

.nav-link {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-muted);
    transition: background .15s ease, color .15s ease;
}

.nav-link:hover {
    background: var(--surface-2);
    color: var(--text);
}

.nav-link.is-active {
    color: var(--primary);
    font-weight: 600;
}

.header-actions {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-toggle img {
    width: 20px;
    height: 20px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 13px;
    transition: background .15s ease;
}

.user-chip:hover {
    background: #e9eaee;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
}

/* ============================================================
   Mobile menu drawer
   ============================================================ */
.mobile-menu {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
    z-index: 29;
    max-height: calc(100vh - var(--header-h) - var(--navbar-h));
    overflow-y: auto;
    display: none;
}

.mobile-menu.menu-opened {
    display: block;
}

.mobile-menu__inner {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: background .15s ease;
}

.mobile-menu__link:last-of-type {
    border-bottom: 0;
}

.mobile-menu__link:hover {
    background: var(--surface-2);
}

.mobile-menu__link.is-active {
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    gap: 8px;
}

.mobile-menu__user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
}

.mobile-menu__user img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-menu__action {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.mobile-menu__action:hover {
    background: var(--surface-2);
}
/* ============================================================
   Footer / bottom navigation
   ============================================================ */
.site-footer {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: var(--navbar-h);
    background: #16292a;
    color: #e8f2ef;
    z-index: 30;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-footer__brand img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.site-footer__player-slot {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.site-footer__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.site-footer__nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: 8px;
    color: #7fa19a;
    font-size: 11px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: color .15s ease, background .15s ease;
}

.site-footer__nav-link:hover {
    color: #e8f2ef;
    background: rgba(255, 255, 255, .05);
}

.site-footer__nav-link.is-active {
    color: #00baba;
}

.site-footer__nav-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(.65);
}

.site-footer__nav-link.is-active img {
    filter: brightness(0) invert(1) sepia(1) hue-rotate(140deg) saturate(4);
}

/* The player toggle button is hidden on desktop. */
.site-footer__nav-link--player {
    display: none;
}

body {
    padding-bottom: var(--navbar-h);
}

/* ============================================================
   Mobile footer adjustments
   ============================================================ */
@media (max-width: 768px) {
    .site-footer__brand,
    .site-footer__player-slot {
        display: none;
    }

    .site-footer__inner {
        padding: 0;
        justify-content: center;
    }

    .site-footer__nav {
        flex: 1;
        justify-content: space-around;
    }

    .site-footer__nav-link {
        padding: 6px 8px;
        font-size: 10px;
    }

    .site-footer__nav-link--player {
        display: flex;
    }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    background: var(--surface-2);
    color: var(--text);
}

.btn img {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary img {
    filter: brightness(0) invert(1);
}

.btn-ghost {
    background: var(--btn-back);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--surface-2);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ============================================================
   Forms
   ============================================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color .15s ease;
}

.form-control:focus {
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 16px;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.password-wrap {
    position: relative;
}

.password-wrap .form-control {
    padding-left: 42px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    color: var(--text-muted);
}

.password-toggle img {
    width: 18px;
    height: 18px;
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin: 16px 0;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecfdf5;
    color: var(--success);
    border-color: #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: var(--danger);
    border-color: #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: var(--warning);
    border-color: #fde68a;
}

.alert-info {
    background: #eff6ff;
    color: var(--info);
    border-color: #bfdbfe;
}

/* ============================================================
   Modal
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    background: var(--surface-2);
}

.modal-close img {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 18px;
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.modal-actions .btn {
    flex: 1;
}

.modal-foot {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    text-align: center;
    color: var(--text-muted);
}

.modal-foot a {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    transition: background .15s ease;
}

.page-link:hover {
    background: var(--surface-2);
}

.page-link.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-link.is-disabled {
    opacity: .4;
    pointer-events: none;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
    margin: auto 5%;
}

.breadcrumb-link {
    color: var(--text-muted);
    transition: color .15s ease;
}

.breadcrumb-link:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--border);
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 500;
}

/* ============================================================
   Empty state
   ============================================================ */
.empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.loading {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 700px) {
    .hide-sm {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .brand-tagline {
        display: none;
    }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(180deg, #fafaff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.hero-title {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-text {
    margin: 0 auto;
    max-width: 640px;
    color: var(--text-muted);
    font-size: 15px;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
    margin-bottom: 48px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.section-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.section-link:hover {
    color: var(--primary-hover);
}

.author-bio {
    max-width: 720px;
    color: var(--text);
    font-size: 15px;
    line-height: 2;
}

.author-bio p {
    margin: 0 0 12px;
}

/* ============================================================
   Grids
   ============================================================ */
.grid {
    display: grid;
    gap: 16px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Filters bar
   ============================================================ */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.filters-bar .form-control {
    width: auto;
    min-width: 160px;
}

.filters-bar .form-control.grow {
    flex: 1;
    min-width: 200px;
}

.view-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    margin-right: auto;
}

.view-toggle button {
    width: 34px;
    height: 32px;
    border: 0;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s ease;
}

.view-toggle button:hover {
    background: rgba(0, 0, 0, .05);
}

.view-toggle button.is-active {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.view-toggle img {
    width: 18px;
    height: 18px;
    opacity: .7;
}

.view-toggle button.is-active img {
    opacity: 1;
}

/* ============================================================
   Literature card
   ============================================================ */
.lit-list {
    display: grid;
    gap: 16px;
}

.lit-list.is-vertical {
    grid-template-columns: repeat(3, 1fr);
}

.lit-list.is-horizontal {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .lit-list.is-vertical {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .lit-list.is-vertical {
        grid-template-columns: 1fr;
    }
}

.lit-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.lit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.lit-list.is-horizontal .lit-card {
    flex-direction: row;
    align-items: stretch;
}

.lit-card-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--surface-2);
    overflow: hidden;
    flex-shrink: 0;
}

.lit-list.is-horizontal .lit-card-cover {
    width: 160px;
    aspect-ratio: auto;
}

.lit-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.lit-card:hover .lit-card-cover img {
    transform: scale(1.04);
}

.lit-card-body {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.lit-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lit-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
}

.lit-card-type {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.lit-card-type.type-poem        { background: #ede9fe; color: #6d28d9; }
.lit-card-type.type-prose       { background: #dbeafe; color: #1d4ed8; }
.lit-card-type.type-short_story { background: #dcfce7; color: #15803d; }
.lit-card-type.type-long_story  { background: #fef3c7; color: #b45309; }

/* ============================================================
   Track card (small, used on home)
   ============================================================ */
.track-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .2s ease, box-shadow .2s ease;
}

.track-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.track-card-cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--surface-2);
    overflow: hidden;
    flex-shrink: 0;
}

.track-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.track-card-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s ease, transform .15s ease;
}

.track-play-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.track-play-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}


/* ============================================================
   Album card
   ============================================================ */
.album-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.album-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.album-card-cover {
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
    overflow: hidden;
}

.album-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.album-card:hover .album-card-cover img {
    transform: scale(1.04);
}

.album-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.album-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   Album view
   ============================================================ */
.album-view {
    max-width: 760px;
    margin: 0 auto 40px;
}

.album-view-head {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.album-view-cover {
    width: 220px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.album-view-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-view-head-body {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.album-view-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
}

.album-view-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.album-view-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 500;
}

.album-view-author .avatar {
    width: 24px;
    height: 24px;
}

.album-view-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.album-view-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.album-view-manifesto {
    padding: 16px 18px;
    background: var(--surface-2);
    border-radius: var(--radius);
    font-size: 15px;
    line-height: 2;
    color: var(--text);
    margin-bottom: 24px;
}

.album-view-manifesto p {
    margin: 0 0 12px;
}

.album-view-manifesto p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Album tracks list
   ============================================================ */
.album-tracks {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.album-tracks-title {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
}

.album-tracks-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.album-track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: background .15s ease;
}

.album-track-item:hover {
    background: var(--surface-2);
}

.album-track-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: background .15s ease, transform .15s ease;
}

.album-track-play:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.album-track-play img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

.album-track-play.is-disabled {
    background: var(--surface-2);
    cursor: default;
}

.album-track-num {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.album-track-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.album-track-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-track-title:hover {
    color: var(--primary);
}

.album-track-meta {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-track-duration {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .album-view-cover {
        width: 150px;
    }

    .album-view-title {
        font-size: 22px;
    }
}

/* ============================================================
   Track view
   ============================================================ */
.track-view {
    max-width: 760px;
    margin: 0 auto 40px;
}

.track-view-head {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.track-view-cover {
    width: 200px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.track-view-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-view-head-body {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-view-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}

.track-view-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.track-view-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 500;
}

.track-view-author .avatar {
    width: 24px;
    height: 24px;
}

.track-view-album {
    color: var(--text-muted);
    transition: color .15s ease;
}

.track-view-album:hover {
    color: var(--primary);
}

.track-view-writed {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.track-view-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.track-view-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.track-view-player {
    margin-bottom: 24px;
}

.track-view-player audio {
    width: 100%;
    border-radius: var(--radius);
}

.track-view-block {
    margin-bottom: 28px;
}

.track-view-block-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.track-view-manifesto {
    font-size: 15px;
    line-height: 2;
    color: var(--text);
}

.track-view-manifesto p {
    margin: 0 0 12px;
}

.track-view-manifesto img {
    margin: 12px auto;
    border-radius: var(--radius);
    max-width: 100%;
}

.track-view-lyrics {
    font-size: 15px;
    line-height: 2.2;
    color: var(--text);
    white-space: pre-line;
    padding: 16px 18px;
    background: var(--surface-2);
    border-radius: var(--radius);
}

@media (max-width: 700px) {
    .track-view-cover {
        width: 140px;
    }

    .track-view-title {
        font-size: 20px;
    }
}

/* ============================================================
   Comments
   ============================================================ */
.comments {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 24px;
    border-top: 1px solid var(--border);
}

.comments-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.comments-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------- Form ---------- */
.comment-form {
    margin-bottom: 24px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.comment-textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-form-reply {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comment-form-reply button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--text-muted);
    padding: 0 4px;
}

.comment-form-reply button:hover {
    color: var(--danger);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.comment-form .form-error {
    margin-top: 8px;
    color: var(--danger);
    font-size: 13px;
}

.comment-login-box {
    padding: 18px;
    text-align: center;
    background: var(--surface-2);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.comment-login-box p {
    margin: 0 0 10px;
}

/* ---------- List ---------- */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-head .avatar {
    width: 34px;
    height: 34px;
}

.comment-author {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.comment-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.comment-time {
    font-size: 11px;
    color: var(--text-muted);
}

.comment-reply-btn {
    margin-right: auto;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background .15s ease, color .15s ease;
}

.comment-reply-btn:hover {
    background: var(--surface-2);
    color: var(--primary);
}

.comment-body {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text);
    word-wrap: break-word;
}

.comment-replies {
    margin-top: 12px;
    padding-right: 16px;
    border-right: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-replies .comment {
    padding: 10px 12px;
    background: var(--surface-2);
    border-color: transparent;
}

.comment-replies .comment-head .avatar {
    width: 28px;
    height: 28px;
}

.comments-more {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

@media (max-width: 700px) {
    .comment {
        padding: 12px 14px;
    }

    .comment-replies {
        padding-right: 10px;
    }
}

/* ============================================================
   Author profile
   ============================================================ */
.author-profile {
    display: flex;
    gap: 22px;
    align-items: center;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.author-profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.author-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-profile-body {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-profile-name {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.author-profile-bio {
    font-size: 14px;
    line-height: 2;
    color: var(--text);
}

.author-profile-bio p {
    margin: 0 0 10px;
}

.author-profile-meta {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 700px) {
    .author-profile {
        flex-direction: column;
        text-align: center;
    }

    .author-profile-avatar {
        width: 90px;
        height: 90px;
    }
}

/* ============================================================
   Tag cloud
   ============================================================ */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.tag-cloud-item:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}


/* =========================================================
   ALBUMS COMPONENT
   ========================================================= */

.albums__section {
  box-sizing: border-box;
  direction: rtl;
  padding: 2.5%;
  border: 1px solid rgba(30, 30, 30, 0.10);
  border-radius: 16px;
  background: #f8f8f5;
  margin: 5%;
}

/* =========================
   HEADER
   ========================= */

.albums__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.albums__header_title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.albums__header_icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.albums__header_text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.albums__header_more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

.albums__header_more_text {
  font-size: 13px;
  line-height: 1.4;
}

.albums__header_more_icon {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* =========================
   GRID
   ========================= */

.albums__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 70px;
  padding-left: 36px;
}

/* =========================
   CARD
   ========================= */

.albums__card {
  position: relative;
  min-width: 0;
  box-sizing: border-box;
}

/* =========================
   VISUAL (vinyl + cover)
   ========================= */

.albums__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  isolation: isolate;
}

.albums__visual:hover .albums__vinyl {
  transform: translateX(-8%) rotate(-7deg);
}

/* =========================
   VINYL (سمت چپ، بیرون‌زده)
   ========================= */

.albums__vinyl {
  position: absolute;
  z-index: 0;
  width: 82%;
  aspect-ratio: 1 / 1;
  top: 9%;
  left: -18%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      #242a29 0px,
      #242a29 2px,
      #303635 3px,
      #242a29 5px
    );
  box-shadow:
    0 16px 32px rgba(20, 30, 28, .18);
  transition: transform .35s ease;
  overflow: hidden;
}

.albums__vinyl::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(
      115deg,
      transparent 35%,
      rgba(255, 255, 255, 0.06) 43%,
      transparent 52%
    );
  pointer-events: none;
}

/* لیبل میانی صفحه */
.albums__vinyl::after {
  content: "";
  position: absolute;
  width: 26%;
  aspect-ratio: 1 / 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #b6a78e;
  border: 6px solid #272d2c;
  box-shadow:
    inset 0 0 5px rgba(255, 255, 255, .10),
    0 1px 3px rgba(0, 0, 0, .4);
}

/* =========================
   COVER
   ========================= */

.albums__cover {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 7px;
  overflow: hidden;
  background:
    linear-gradient(145deg, #80948b, #d3c2a4 55%, #657987);
  box-shadow:
    0 16px 32px rgba(25, 35, 33, .16);
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.albums__cover_image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.albums__cover_content {
  position: relative;
  z-index: 2;
  padding: 14px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
  width: 100%;
}

.albums__cover_artist {
  display: block;
  font-size: 10px;
  opacity: .85;
  letter-spacing: .5px;
  margin-bottom: 3px;
}

.albums__cover_title {
  display: block;
  font-family: 'Peyda', Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
   PLAY BUTTON (navigates to album)
   ========================= */

.albums__play {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.albums__visual:hover .albums__play {
  opacity: 1;
  transform: translateY(0);
}

.albums__play_icon {
  display: block;
  width: 13px;
  height: 13px;
  object-fit: contain;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {
  .albums__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 70px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .albums__section {
    padding: 14px;
    border-radius: 12px;
  }

  .albums__header {
    margin-bottom: 18px;
  }

  .albums__header_text {
    font-size: 16px;
  }

  .albums__header_more_text {
    font-size: 12px;
  }

  .albums__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 30px;
  }

  .albums__vinyl {
    width: 80%;
    left: -18%;
    top: 10%;
  }

  .albums__vinyl::after {
    border-width: 4px;
  }

  .albums__cover_content {
    padding: 10px;
  }

  .albums__cover_title {
    font-size: 13px;
  }

  .albums__cover_artist {
    font-size: 9px;
  }

  .albums__play {
    left: 7px;
    bottom: 7px;
    width: 24px;
    height: 24px;
  }

  .albums__play_icon {
    width: 11px;
    height: 11px;
  }
}

/* =========================================================
   MOBILE (خیلی کوچک)
   ========================================================= */

@media (max-width: 400px) {
  .albums__grid {
    gap: 18px 30px;
  }

  .albums__cover_title {
    font-size: 12px;
  }
}


  /* ========== Track Section ========== */
  .track__section {
    padding: 2.5%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin: 5%;
  }

  .track__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .track__header_title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
  }

  .track__header_more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .track__header_more:hover {
    color: #0f172a;
  }

  .track__header_more img {
    width: 16px;
    height: 16px;
  }

  .track__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 32px;
  }

  @media (max-width: 768px) {
    .track__grid {
      grid-template-columns: minmax(0, 1fr);
      gap: 8px;
    }
  }

  /* ========== Track Item ========== */
  /* From right to left: cover | info (title + album) | play */
  .track__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    border-radius: 10px;
    transition: background-color 0.2s ease;
    min-width: 0;
  }

  .track__item:hover {
    background-color: rgba(0, 0, 0, 0.03);
  }

  .track__cover-link {
    flex-shrink: 0;
    display: block;
    line-height: 0;
  }

  .track__cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
  }

  /* ستون عمودی: عنوان قطعه + نام آلبوم */
  .track__info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .track__title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    transition: color 0.2s ease;
  }

  .track__title:hover {
    color: #00baba;
  }

  .track__album {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #00baba;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.4;
    max-width: 100%;
    transition: color 0.2s ease;
  }

  .track__album:hover {
    color: #025858;
  }

  .track__album img {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: .8;
  }

  .track__album span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .track__play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    padding: 0;
  }

  .track__item:hover .track__play {
    background-color: #f8fafc;
    border-color: rgba(0, 0, 0, 0.15);
  }

  .track__play img {
    width: 14px;
    height: 14px;
  }


  /* ========== Literatures Section ========== */
  .Literatures__section {
    padding: 2.5%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fafafa;
    margin: 5%;
  }

  .Literatures__section.is-bare {
    padding: 0;
    border: 0;
    background: transparent;
    margin: 0;
  }

  .Literatures__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .Literatures__header_title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Peyda', Tahoma, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
  }

  .Literatures__header_title img {
    width: 20px;
    height: 20px;
  }

  .Literatures__header_more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .Literatures__header_more:hover {
    color: #0f172a;
  }

  .Literatures__header_more img {
    width: 16px;
    height: 16px;
  }

  .Literatures__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  @media (max-width: 768px) {
    .Literatures__grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
  }

  .Literatures__card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .Literatures__card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
  }

  .Literatures__card_cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .Literatures__card_gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.35) 35%,
      transparent 70%
    );
    pointer-events: none;
  }

  .Literatures__card_badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px 6px 12px;
    background: #fafafa;
    line-height: 1;
    min-height: 28px;
    border-bottom-left-radius: 12px;
  }

  .Literatures__card_badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    width: 10px;
    height: 10px;
    background: transparent;
    border-top-right-radius: 12px;
    box-shadow: 3px -5px 0 3px #fafafa;
  }

  .Literatures__card_badge::after {
    content: "";
    position: absolute;
    bottom: -12px;
    right: 0;
    width: 12px;
    height: 12px;
    background: transparent;
    border-top-right-radius: 12px;
    box-shadow: 6px -6px 0 6px #fafafa;
  }

  .Literatures__card_badge img {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
  }

  .Literatures__card_title {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    margin: 0;
    font-family: 'Peyda', Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: right;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
/* ============================================================
   Profile page
   ============================================================ */
.profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--surface);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-info {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-name {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
}

.profile-username {
    font-size: 13px;
    color: var(--text-muted);
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- Edit section ---------- */
.profile-edit {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.profile-edit[hidden] {
    display: none;
}

.profile-edit .section-title {
    margin: 0 0 16px;
}

.form-wrap {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.form-error {
    min-height: 16px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--danger);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

/* ---------- Avatar upload ---------- */
.cover-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cover-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   Mini card (liked items grid)
   ============================================================ */
.mini-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    color: var(--text);
}

.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.mini-card-cover {
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
    overflow: hidden;
}

.mini-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.mini-card:hover .mini-card-cover img {
    transform: scale(1.04);
}

.mini-card-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mini-card-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
