.profile-page {
    padding: 34px 0 70px;
    background:
        radial-gradient(circle at top right, rgba(230, 108, 42, 0.08), transparent 26%),
        linear-gradient(180deg, #fcf8f3 0%, #f7efe7 100%);
}

.profile-shell {
    display: grid;
    gap: 28px;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 452px;
    gap: 22px;
    align-items: start;
}

.profile-main-card,
.profile-side-card,
.profile-info-card,
.profile-section,
.profile-dna-card {
    background: rgba(255, 252, 248, 0.98);
    border: 1px solid #ecdccf;
    border-radius: 30px;
    box-shadow: 0 18px 44px rgba(84, 57, 39, 0.08);
}

.profile-main-card {
    padding: 22px 30px 18px;
}

.profile-top {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.profile-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(180deg, #eadbd0 0%, #f4e8df 100%);
    border: 1px solid #e7d3c4;
    color: #6c4d3c;
    font-weight: 900;
}

.profile-avatar-large {
    width: 232px;
    height: 232px;
    margin: 2px auto 0;
    font-size: 66px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-identity {
    display: grid;
    gap: 14px;
    padding-top: 18px;
}

.profile-kicker-row,
.profile-handle-row,
.profile-craving-row,
.profile-meta-row,
.profile-action-row,
.profile-social-links,
.profile-watch-pills,
.profile-watch-actions,
.profile-menu-actions,
.profile-feature-pills,
.profile-review-footer,
.profile-review-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.profile-kicker,
.profile-status-pill,
.profile-taste-chip-inline,
.profile-pill,
.profile-feature-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #ecd9cb;
    background: #fff7f1;
    color: #7b675b;
    font-size: 14px;
    font-weight: 800;
}

.profile-kicker,
.profile-status-pill {
    min-height: 40px;
    background: #fff;
}

.profile-kicker {
    color: #df6a34;
}

.profile-status-pill {
    color: #6f6158;
}

.profile-taste-chip-inline,
.profile-feature-pill {
    background: #fff3eb;
    color: #80553d;
    border-color: #efd8c8;
    gap: 8px;
    justify-content: flex-start;
}

.profile-chip-icon {
    width: 18px;
    text-align: center;
    font-size: 14px;
    line-height: 1;
    color: #df6934;
}

.profile-name {
    margin: 0;
    color: #16120f;
    font-size: clamp(60px, 7vw, 74px);
    line-height: 0.94;
    letter-spacing: -0.08em;
    font-weight: 900;
}

.profile-handle {
    color: #5f534d;
    font-size: 20px;
    font-weight: 700;
}

.profile-copy-btn {
    position: relative;
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: #fff;
    cursor: pointer;
}

.profile-copy-btn::before,
.profile-copy-btn::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 12px;
    border: 1.5px solid #b4a197;
    border-radius: 2px;
    background: #fff;
}

.profile-copy-btn::before {
    top: 5px;
    left: 7px;
}

.profile-copy-btn::after {
    top: 2px;
    left: 10px;
}

.profile-bio {
    max-width: 560px;
    margin: 4px 0 0;
    color: #403530;
    font-size: 17px;
    line-height: 1.65;
}

.profile-meta-row {
    padding-top: 12px;
    color: #76665e;
    font-size: 15px;
    font-weight: 700;
}

.profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.profile-meta-item::before {
    content: "";
    width: 14px;
    height: 14px;
    display: inline-block;
    border: 1.6px solid #8b7a71;
    border-radius: 3px;
    box-shadow: inset 0 4px 0 0 #8b7a71;
}

.profile-action-row {
    margin-top: 4px;
    gap: 14px;
}

.profile-share-menu {
    position: relative;
}

.profile-share-trigger {
    border-color: #f0b594;
    color: #dd6734;
    background: #fff;
}

.profile-share-menu > summary {
    list-style: none;
    cursor: pointer;
}

.profile-share-menu > summary::-webkit-details-marker {
    display: none;
}

.profile-share-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 268px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #ecdcd1;
    background: #fffdfa;
    box-shadow: 0 20px 44px rgba(78, 54, 38, 0.14);
    z-index: 12;
}

.profile-share-head {
    display: grid;
    gap: 4px;
}

.profile-share-head strong {
    color: #1d1613;
    font-size: 18px;
    font-weight: 800;
}

.profile-share-head span,
.profile-share-link,
.profile-share-list span,
.profile-social-link small,
.profile-taste-support-light,
.profile-dna-note,
.profile-empty-state {
    color: #6b5d55;
    font-size: 14px;
    line-height: 1.55;
}

.profile-share-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px;
    border: 1px solid #eee0d5;
    border-radius: 14px;
    background: #fff;
}

.profile-share-link {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-copy-link-btn {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #edd9cb;
    border-radius: 999px;
    background: #fff4ec;
    color: #d96834;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.profile-share-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.profile-share-list a,
.profile-share-inline-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    color: #201814;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.profile-share-list b {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #fff3eb;
    border: 1px solid #efd8c8;
    color: #df6934;
    font-size: 11px;
    font-weight: 900;
}

.profile-social-strip {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #efe0d4;
}

.profile-social-label,
.profile-feature-label {
    color: #7a665a;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 900;
}

.profile-social-links {
    gap: 22px;
}

.profile-social-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    text-decoration: none;
}

.profile-social-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff3eb;
    border: 1px solid #efd8c8;
    color: #df6934;
    font-size: 11px;
    font-weight: 900;
}

.profile-social-link strong {
    display: block;
    color: #181210;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}

.profile-empty-state a {
    color: #d96834;
    font-weight: 800;
    text-decoration: none;
}

.profile-side-card,
.profile-info-card,
.profile-dna-card,
.profile-section {
    padding: 22px;
}

.profile-side-head,
.profile-side-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-card-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-card-title-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff3eb;
    border: 1px solid #efd8c8;
    color: #df6934;
    font-size: 14px;
    line-height: 1;
    flex: 0 0 28px;
}

.profile-section-kicker {
    color: #e48f4f;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 900;
}

.profile-side-head h2,
.profile-section-head h2,
.profile-side-section-head h2 {
    margin: 0;
    color: #181210;
    font-size: 22px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.profile-stat-grid div {
    min-height: 74px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 16px 14px;
    border-radius: 16px;
    border: 1px solid #ebe0d7;
    background: #fff;
}

.profile-stat-grid strong {
    color: #1a1310;
    font-size: 19px;
    line-height: 1;
    font-weight: 900;
}

.profile-stat-grid span {
    color: #6f6058;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.profile-side-head .profile-card-title-row + h2,
.profile-side-section-head .profile-card-title-row + h2 {
    display: none;
}

.profile-taste-lead {
    margin-top: 10px;
    color: #2b221e;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 700;
}

.profile-taste-empty-light {
    margin-top: 12px;
}

.profile-taste-support-light {
    margin-top: 14px;
}

.profile-feature-grid {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 452px;
    gap: 22px;
    align-items: start;
}

.profile-content-main,
.profile-content-side {
    display: grid;
    gap: 22px;
}

.profile-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    padding: 0 10px 12px;
    border-bottom: 1px solid #e8d8cb;
}

.profile-section-tab {
    position: relative;
    padding: 0 0 12px;
    color: #5f524c;
    font-size: 16px;
    font-weight: 700;
}

.profile-section-tab-active {
    color: #df6934;
    font-weight: 800;
}

.profile-section-tab-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -13px;
    height: 3px;
    border-radius: 999px;
    background: #df6934;
}

.profile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-section-tools {
    color: #6e5f57;
    font-size: 13px;
    font-weight: 800;
}

.profile-section-head > h2 {
    margin: 0;
}

.profile-badge-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.profile-badge-chip {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 174px;
    padding: 16px 10px 14px;
    border-radius: 18px;
    border: 1px solid #ebddd2;
    background: #fff;
    text-align: center;
}

.profile-badge-image-wrap {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe0b7 0%, #d08f51 42%, #7d4729 100%);
    box-shadow: inset 0 0 0 4px rgba(255, 244, 229, 0.6);
}

.profile-badge-image {
    width: 62px;
    height: 62px;
}

.profile-badge-chip strong {
    color: #1b1512;
    font-size: 16px;
    line-height: 1.18;
    font-weight: 800;
}

.profile-badge-chip small {
    color: #7c6a61;
    font-size: 12px;
    line-height: 1.35;
}

.profile-watch-stack,
.profile-menu-grid,
.profile-review-grid {
    display: grid;
    gap: 14px;
}

.profile-watch-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #ebddd2;
    background: #fff;
}

.profile-watch-poster {
    width: 92px;
    height: 126px;
    overflow: hidden;
    border-radius: 14px;
    background: #211916;
}

.profile-watch-poster img,
.profile-review-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 34px;
    font-weight: 900;
}

.profile-watch-main h3,
.profile-menu-card h3,
.profile-review-card h3 {
    margin: 0;
    color: #171210;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.profile-watch-main h3 a,
.profile-menu-card h3 a,
.profile-review-card h3 a {
    color: inherit;
}

.profile-watch-meta,
.profile-menu-meta,
.profile-menu-note {
    color: #6d5f56;
}

.profile-watch-meta,
.profile-menu-meta {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
}

.profile-watch-pills {
    margin-top: 12px;
    gap: 8px;
}

.profile-pill {
    min-height: 28px;
    padding: 0 10px;
    background: #fff8f3;
    border: 1px solid #ecdacd;
    color: #7c685d;
    font-size: 12px;
    font-weight: 800;
}

.profile-watch-actions,
.profile-menu-actions {
    justify-content: flex-end;
}

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

.profile-menu-card {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid #ebddd2;
    background: #fff;
}

.profile-menu-note {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.65;
}

.profile-menu-actions {
    margin-top: 16px;
    color: #4f433d;
    font-size: 14px;
    font-weight: 800;
}

.profile-review-grid {
    gap: 0;
}

.profile-review-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #ede0d6;
}

.profile-review-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-review-layout {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.profile-review-poster {
    width: 124px;
    height: 178px;
    overflow: hidden;
    border-radius: 16px;
    background: #201815;
}

.profile-review-content {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.profile-review-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.profile-review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-review-stars {
    color: #ee6e33;
    font-size: 16px;
    letter-spacing: 0.08em;
    font-weight: 900;
}

.profile-review-headline {
    display: none;
}

.profile-review-footer {
    color: #776760;
    font-size: 14px;
    font-weight: 700;
}

.profile-review-tools {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 72px;
}

.profile-icon-btn {
    position: relative;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid #eadacd;
    border-radius: 50%;
    background: #fff;
    color: transparent;
    font-size: 0;
    cursor: pointer;
}

.profile-icon-save::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 12px;
    height: 14px;
    background:
        linear-gradient(135deg, transparent 48%, #ffffff 48%) bottom right / 6px 6px no-repeat,
        linear-gradient(#3f322c, #3f322c) center / 12px 14px no-repeat;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
}

.profile-icon-more::before {
    content: "...";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    color: #3f322c;
    font-size: 16px;
    font-weight: 900;
    line-height: 10px;
    text-align: center;
}

.profile-side-section-head a {
    color: #df6934;
    font-size: 14px;
    font-weight: 800;
}

.profile-dna-list {
    display: grid;
    gap: 18px;
}

.profile-dna-row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 66px;
    gap: 12px;
    align-items: center;
}

.profile-dna-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f1814;
    font-size: 14px;
    font-weight: 700;
}

.profile-dna-label span {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 900;
}

.profile-dna-icon-pd {
    background: #e67a4a;
}

.profile-dna-icon-ew {
    background: #de6678;
}

.profile-dna-icon-ct {
    background: #9a6d48;
}

.profile-dna-icon-cc {
    background: #7b8f93;
}

.profile-dna-icon-me {
    background: #af7948;
}

.profile-dna-bar {
    height: 8px;
    border-radius: 999px;
    background: #ebdfda;
    overflow: hidden;
}

.profile-dna-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e56734 0%, #ef8a47 100%);
}

.profile-dna-level {
    color: #6e5f57;
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

.profile-dna-note {
    margin: 18px 0 0;
}

.profile-empty-state {
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid #ebddd2;
    background: #fff7f2;
}

@media (max-width: 1280px) {
    .profile-hero,
    .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .profile-badge-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .profile-top {
        grid-template-columns: 1fr;
    }

    .profile-avatar-large {
        width: 190px;
        height: 190px;
    }

    .profile-name {
        font-size: 50px;
    }

    .profile-social-links,
    .profile-feature-pills,
    .profile-menu-grid {
        gap: 12px;
    }

    .profile-review-layout,
    .profile-watch-card {
        grid-template-columns: 1fr;
    }

    .profile-review-tools,
    .profile-watch-actions {
        align-items: flex-start;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .profile-page {
        padding: 24px 0 42px;
    }

    .profile-main-card,
    .profile-side-card,
    .profile-info-card,
    .profile-section,
    .profile-dna-card {
        padding: 18px;
        border-radius: 24px;
    }

    .profile-stat-grid,
    .profile-badge-grid,
    .profile-menu-grid {
        grid-template-columns: 1fr;
    }

    .profile-social-links,
    .profile-action-row,
    .profile-meta-row,
    .profile-review-top,
    .profile-review-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-share-panel {
        left: 0;
        right: auto;
        width: min(280px, calc(100vw - 60px));
    }

    .profile-dna-row {
        grid-template-columns: 1fr;
    }

    .profile-dna-level {
        text-align: left;
    }
}
