@font-face {
    font-family: "Noto Serif Sinhala";
    src: url("./fonts/NotoSerifSinhala-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Noto Serif Sinhala";
    src: url("./fonts/NotoSerifSinhala-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans Sinhala";
    src: url("./fonts/NotoSansSinhala-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans Sinhala";
    src: url("./fonts/NotoSansSinhala-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Abhaya Libre";
    src: url("./fonts/AbhayaLibre-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Abhaya Libre";
    src: url("./fonts/AbhayaLibre-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Abhaya Libre";
    src: url("./fonts/AbhayaLibre-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Abhaya Libre";
    src: url("./fonts/AbhayaLibre-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Abhaya Libre";
    src: url("./fonts/AbhayaLibre-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "UN-Gurulugomi";
    src: url("./fonts/UN-Gurulugomi.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "UN-Alakamanda";
    src: url("./fonts/UN-Alakamanda.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "UN-Abhaya";
    src: url("./fonts/UN-Abhaya.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Material Symbols Outlined";
    src: url("./fonts/symbols/MaterialSymbolsOutlinedSubset.ttf?v=0.2") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: block;
}

:root {
    --font-sans-sinhala: "Noto Sans Sinhala", sans-serif;
    --font-abhaya-libre: "Abhaya Libre", serif;
    --font-un-gurulugomi: "UN-Gurulugomi", serif;
    --font-un-alakamanda: "UN-Alakamanda", serif;
    --font-un-abhaya: "UN-Abhaya", serif;
    --font-material-symbols: "Material Symbols Outlined", sans-serif;
}

html,body {
    min-height: 100%;
    /* Prevents the entire page from bouncing */
  overscroll-behavior: none;
  overscroll-behavior-y: none;
    scrollbar-gutter: stable both-edges;

    
}

/* Common */
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: white;
    font-family: "Noto Serif Sinhala", serif;
    font-size: 13px;
    outline: none;
}

body.homepage {
    overflow-x: hidden;
    overflow-y: hidden;
    overflow: hidden;
}

body.music-collection-dialog-open {
    overflow: hidden;
}

body.photos-wall-dialog-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

h1 {
    font-family: var(--font-abhaya-libre);
    text-align: left;
}

h2{
    margin: 0;
    text-align: left;
}

h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    text-align: left;
}

p {
    margin: 0;
}

.material-symbols-outlined {
    font-family: var(--font-material-symbols);
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: "liga";
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

menu{
    margin: 0;
}

#page-backdrop{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% -20%, #a42380, #912270, #7e2161, #6b1f52, #5a1946, #4b103c, #3d0632, #2f0028);
    pointer-events: none;
    backdrop-filter: blur(64px);
    --webkit-backdrop-filter: blur(64px);
}

#cover-image {
    position: fixed;
    left: 0;
    /* top: 0; */
    bottom: 42px;
    height: 100vh;
    height: 75dvh;
    width: auto;
    transform: translate(-80px, 0);
    transform-origin: left bottom;
    pointer-events: none;
}

/* Menu */

menu {
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    background-color: #3d0632d4;
    border-top: 1px solid #ffffff56;
    padding: 0;
    display: flex;    
    justify-content: center;
    align-items: center;
    min-width: 100%;
    box-sizing: border-box;
}

menu > a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 184px;
    gap: 4px;
    height: 108px;
    padding: 8px 8px 0 8px;
}

menu > a > span.flower {
    display: block;
    width: 64px;
    height: 48px;
    background: url("images/flower-decor-white-2.png") no-repeat center 11px;
    background-size: 28px 28px;
    opacity: 0.5;
}


menu > a:hover{
    background-color: #771b5cdf;
}

menu > a:hover > span.flower {
    opacity: 1;
}

menu > a h4{
    font-size: 14px;
}

menu > a:hover h4{
    color: #fde36d;
}

menu > a > p {
    font-size: 10px;
    font-weight: 100;
    opacity: 0.88;
}

#mobile-menu-btn{
    position: relative;
    display: none;
    flex-direction: row;
    justify-content: center;
    height: 74px;
    width: 100%;
    text-align: center;
    background-color: #641c4d;
    max-width: 400px;
    border-radius: 59px;
    padding: 0;
    margin: 0;
    transform: translate(0px, -1px);
}

#mobile-menu-btn::after{
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    right: 5px;
    border: 1px solid #ffe3e340;
    border-radius: 58px;
    pointer-events: none;
}

#mobile-menu-btn:hover::after,
#mobile-menu-btn:active::after{
    border-color: #ffe3e360;
}

#mobile-menu-btn > h4{
    color: #fde36d;
    font-size: 20px;
    font-weight: normal;
    vertical-align: top;
    opacity: 0.92;
    transition: opacity 0.3s ease;
}

#mobile-menu-btn:hover > h4,
#mobile-menu-btn:active > h4{
    opacity: 1;
}

#mobile-menu-text{
    display: inline-block;
    font-size: 20px;
    font-weight: normal;
    vertical-align: top;
}

#mobile-menu-btn > h4 > span.material-symbols-outlined{
    opacity: 0.4;
    vertical-align: top;
    margin: 2px 0 0 4px;
}

#mobile-menu-backdrop{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3d0632;
    z-index: 1000;
}

body.mobile-menu-visible #mobile-menu-backdrop{
    display: block;
}

#mobile-menu{
    position: absolute;
    top: env(safe-area-inset-top, 0px);
    bottom: env(safe-area-inset-bottom, 0px);
    left: env(safe-area-inset-left, 0px);
    right: env(safe-area-inset-right, 0px);    
    width: 420px;
    height: 556px;
    margin: auto;
}

#mobile-menu-inner{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#mobile-menu-inner a.nav-menu-btn {
    position: relative;
    display: block;
    height: 40px;
    padding: 24px 32px 24px 84px;
    background: url("/images/flower-decor-white-2.png") no-repeat 32px 32px;
    background-size: 24px 24px;
    background-color: #444;
    margin: 12px 16px;
    border-radius: 60px;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
}

#mobile-menu-inner a.nav-menu-btn::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    right: 5px;
    border: 1px solid #ffffff28;
    border-radius: 60px;
    pointer-events: none;
}

#mobile-menu-header{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    display: block;
    height: 44px;
    text-align: center;
}

#mobile-menu-header > h4{
    display: block;
    height: 56px;
    line-height: 77px;
    font-weight: normal;
    opacity: 0.4;
}

#mobile-menu-header > .mobile-menu-close{
    position: absolute;
    top: 26px;
    left: 26px;
    opacity: 0.56;
}

#mobile-menu-content{
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    bottom: 0;
    scrollbar-width: none;   
    -ms-overflow-style: none;
}

#mobile-menu-content::-webkit-scrollbar {
  display: none;
}

#mobile-menu .mobile-menu-go-icon{
    position: absolute;
    top: 0;
    right: 16px;
    bottom: 0;
    width: 24px;
    height: 24px;
    margin: auto 0;
    opacity: 0.28;
}

/* Main Header */
#main-header {
    position: fixed;
    right: 20%;
    top: 14%;
    font-size: 118px;
    font-weight: 600;
    line-height: 88px;
    transform: scale(1.5, 1.5);
    transform-origin: right top;
    margin: 0;
}

#main-header > span {
    display: block;
    white-space: nowrap;
}

#main-header > span.main-header-section-1 {
    font-size: 0.62em;
    line-height: 136%;
}

#main-header > span.main-header-section-2 {
    margin-left: 10%;
    line-height: 62.5%;
}

#main-header > span.main-header-section-3 {
    font-size: 0.62em;
    margin-left: 36%;
    line-height: 72.5%;
}

#main-header > span.main-header-section-4 {
    font-family: var(--font-un-gurulugomi);
    font-size: 0.28em;
    font-weight: 100;
    margin-left: 90%;
    line-height: 139.5%;
    color: #fde36d;
}

#quote-section{
    position: fixed;
    top: 54%;
    width: 50%;
    right: 5%;
    bottom: 176px;
    font-family: var(--font-un-abhaya);
    font-size: 24px;
    font-weight: 100;
    text-align: justify;
    line-height: 1.25;    
    opacity: 0.46;
    margin: 0;
    padding: 15px 0 0 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}

#quote-section > span.quote-dot{
    position: relative;
    overflow: visible;
}

#quote-section > span.quote-dot::after{
    content: "";
    position: absolute;
    top: 5px;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 5px;
    background-color: #fff;
    z-index: 1;
    opacity: 0.24;
}

/* Line Decor */
.line-decor {
    position: relative;
    height: 8px;
    opacity: 0.68;
}

.line-decor::before,
.line-decor::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #fde36d;
}

.line-decor::after {
    top: 5px;
}

#header-decor {
    position: sticky;
    top: 16px;
    z-index: 10;
}

#header-top-menu{
    position: sticky;
    top: 0;
    background: radial-gradient(circle at 50% -20%, #912270, #8b216b, #841f66, #7e1e62, #781c5d, #721b58, #6c1954, #66184f);
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    z-index: 10;

}

#header-top-menu-content{
    display: flex;
    height: 52px;
}

#header-top-menu-home-btn{
    display: inline-block;
    height: 52px;
    line-height: 55px;
    padding: 0 14px 0 42px;
    background: url(/images/flower-decor-white-2.png) no-repeat 10px 15px;
    background-size: 24px 24px;
    opacity: 0.68;
    transition: opacity 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.42);
    margin-left: env(safe-area-inset-left, 0px);
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3%;
}

#header-top-menu-home-btn:hover,
#header-top-menu-home-btn:focus,
#header-top-menu-home-btn:active {
    opacity: 1;
}

#header-top-menu-content > h1{
    flex-grow: 1;
    font-family: var(--font-abhaya-libre);
    font-size: 17px;
    margin: 6px 11px 0 8px;
    text-align: right;
    padding-right: env(safe-area-inset-right, 0px);
}

#header-top-menu-content > h1 > span {
    display: block;
    color: #fde36d;
    font-family: var(--font-un-gurulugomi);
    font-size: 0.88em;
}


/* Footer */
footer {
    margin-top: auto;
    flex-shrink: 0;
    z-index: 1;
}

#footer-pattern-strip {
    position: relative;
    height: 17px;
    overflow: hidden;
    background-color: #4b103c;
}

#footer-pattern-strip::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: url(images/pattern-40.png) repeat-x center top;
    background-size: 11px auto;
    opacity: 0.32;
}

#copyright-box {
    font-family: var(--font-sans-sinhala);
    color: #fff;
    text-align: center;
    font-size: 8px;
    opacity: 0.24;
    height: 33px;
    line-height: 34px;
}

#copyright-box > a {
    color: inherit;
    text-decoration: underline;
}

/* Detail Page Content */
main.content-container {
    width: 100%;
    max-width: 1024px;
    box-sizing: border-box;
    align-self: center;
    margin: 80px auto; /* Added top margin to clear header decor */
    text-align: justify;
    padding-left: max(env(safe-area-inset-left), 20px);
    padding-right: max(env(safe-area-inset-right), 20px);
    padding-top: max(env(safe-area-inset-top), 20px);
    padding-bottom: max(env(safe-area-inset-bottom), 20px);
    color: #fff;
    z-index: 1;
}

main.content-container p {
    margin-bottom: 1.5em;
    line-height: 1.6;
    font-weight: normal;
}

main.content-container h2 {
    font-family: var(--font-abhaya-libre);
    font-size: 38px;
    margin-bottom: 24px;
    color: #fde36d;
}

main.content-container h3 {
    font-family: var(--font-abhaya-libre);
    font-size: 24px;    
    font-weight: normal;
    color: #fde36d;
    margin: 0;
}

#gihi-aragalaya-book-page {
    display: grid;
    gap: 28px;
}

.gihi-book-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.gihi-book-cover-card,
.gihi-book-contact-card {
    margin: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 16px 34px rgba(28, 3, 22, 0.18);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.gihi-book-cover-image {
    display: block;
    width: 100%;
    height: auto;
}

.gihi-book-copy {
    display: grid;
    gap: 24px;
}

.gihi-book-description {
    display: grid;
    gap: 18px;
}

.gihi-book-description > p,
.gihi-book-contact-card p {
    margin: 0;
}

.gihi-book-contact-card {
    display: grid;
    gap: 20px;
    max-width: 520px;
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(253, 227, 109, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 242, 186, 0.08), rgba(255, 242, 186, 0) 46%),
        rgba(101, 5, 73, 0.68);
    text-align: left;
}

.gihi-book-contact-heading {
    display: grid;
    gap: 4px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.gihi-book-contact-heading > span,
.gihi-book-contact-person > span,
.gihi-book-contact-details dt,
.gihi-book-contact-actions a > span {
    color: rgba(255, 245, 217, 0.72);
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.gihi-book-contact-heading > span,
.gihi-book-contact-person > span,
.gihi-book-contact-details dt {
    letter-spacing: 0;
}

.gihi-book-contact-card h3 {
    font-size: 34px;
    line-height: 1.05;
}

.gihi-book-contact-person {
    display: grid;
    gap: 2px;
}

.gihi-book-contact-person strong {
    display: block;
    color: #fff2ba;
    font-family: var(--font-abhaya-libre);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.gihi-book-contact-details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.gihi-book-contact-details > div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
}

.gihi-book-contact-details dt,
.gihi-book-contact-details dd {
    margin: 0;
}

.gihi-book-contact-details dd {
    line-height: 1.55;
    color: #fff2ba;
}

.gihi-book-contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 4px;
}

.gihi-book-contact-actions a:last-child {
    grid-column: 1 / -1;
}

.gihi-book-contact-actions a {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(253, 227, 109, 0.24);
    border-radius: 8px;
    background: rgba(47, 0, 40, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.gihi-book-contact-actions a:hover,
.gihi-book-contact-actions a:focus-visible {
    border-color: rgba(253, 227, 109, 0.6);
    background: rgba(253, 227, 109, 0.12);
    transform: translateY(-1px);
}

.gihi-book-contact-actions a:focus-visible {
    outline: 2px solid rgba(253, 227, 109, 0.72);
    outline-offset: 3px;
}

.gihi-book-contact-actions a strong {
    color: #fde36d;
    font-family: var(--font-sans-sinhala);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Shared Audio Player */
.audio-player {
    --audio-player-progress: 0%;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto auto;
    gap: 12px;
    width: 100%;
    padding: 14px 16px 16px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(255, 244, 222, 0.18);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.035) 100%),
        radial-gradient(circle at top left, rgba(255, 220, 170, 0.16) 0%, rgba(255, 220, 170, 0) 38%),
        linear-gradient(135deg, rgba(95, 24, 74, 0.44) 0%, rgba(49, 8, 40, 0.26) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03),
        0 16px 34px rgba(28, 3, 22, 0.22);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.audio-player::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto 1px;
    height: 44%;
    border-radius: 19px 19px 120px 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0));
    opacity: 0.72;
    pointer-events: none;
    z-index: -1;
}

.audio-player::after {
    content: "";
    position: absolute;
    inset: auto -18% -52% 28%;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 172, 0.18) 0%, rgba(255, 220, 172, 0) 72%);
    pointer-events: none;
    z-index: -1;
}

.audio-player-native {
    display: none;
}

.audio-player-track {
    width: 100%;
    height: 18px;
    margin: -4px 0 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.audio-player-track:disabled {
    cursor: default;
    opacity: 0.5;
}

.audio-player-track:focus-visible {
    outline: 2px solid rgba(253, 227, 109, 0.46);
    outline-offset: 4px;
    border-radius: 999px;
}

.audio-player-track::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.94) 0,
            rgba(255, 255, 255, 0.94) var(--audio-player-progress),
            rgba(255, 255, 255, 0.24) var(--audio-player-progress),
            rgba(255, 255, 255, 0.24) 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.audio-player-track::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
    appearance: none;
    -webkit-appearance: none;
}

.audio-player-track::-moz-range-track {
    height: 4px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.audio-player-track::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
}

.audio-player-track::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.audio-player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.audio-player-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 244, 222, 0.2);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%),
        rgba(67, 16, 52, 0.24);
    color: rgba(255, 255, 255, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 16px rgba(26, 2, 19, 0.12);
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
    
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;

}

.audio-player.is-playing .audio-player-toggle {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%),
        rgba(82, 20, 65, 0.32);
    border-color: rgba(255, 244, 222, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 10px 20px rgba(26, 2, 19, 0.16);
}

.audio-player-toggle:hover:not(:disabled) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.07) 100%),
        rgba(78, 18, 61, 0.28);
    border-color: rgba(255, 244, 222, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 10px 20px rgba(26, 2, 19, 0.16);
    transform: translateY(-1px);
}

.audio-player-toggle:focus-visible {
    outline: 2px solid rgba(253, 227, 109, 0.46);
    outline-offset: 3px;
}

.audio-player-toggle:disabled {
    opacity: 0.46;
    cursor: default;
}

.audio-player-toggle .material-symbols-outlined {
    font-size: 24px;
}

.audio-player-time {
    flex: 1 1 auto;
    min-width: 0;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-sans-sinhala);
    font-size: 13px;
    line-height: 1.2;
    text-align: right;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Music Collection Page */
#music-collection-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

#music-collection-page > h2 {
    margin-bottom: 0;
}

.music-collection-intro {
    max-width: 720px;
}

.music-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 280px);
    justify-content: center;
    gap: 24px;
}

.music-song-card {
    width: 280px;
    height: 360px;
    margin: 0;
}

.music-song-card-button {
    --music-card-paper: #F9F5EF;
    --music-card-warm: #F4F0E9;
    --music-card-mist: #EEEBE6;
    --music-card-stone: #EAE4D9;
    --music-card-ink: #393229;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 30px 24px;
    box-sizing: border-box;
    border: none;
    border-radius: 8px;
    background: var(--music-card-paper);
    box-shadow:
        0 14px 32px rgb(57 50 41 / 0.2),
        inset 0 -18px 0 var(--music-card-warm);
    color: var(--music-card-ink);
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.music-song-card-copy {
    position: relative;
    display: grid;
    grid-template-rows: minmax(120px, 1fr) minmax(0, 1fr);
    gap: 18px;
    width: 100%;
    height: 100%;
    max-width: 100%;
    min-height: 0;
}

.music-song-card-button::before,
.music-song-card-button::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    height: 1px;
    background: rgb(57 50 41 / 0.22);
    pointer-events: none;
}

.music-song-card-button::before {
    top: 20px;
}

.music-song-card-button::after {
    bottom: 20px;
}

.music-song-card-button:hover {
    transform: translateY(-3px);
    background: var(--music-card-warm);
    box-shadow:
        0 18px 38px rgb(57 50 41 / 0.24),
        inset 0 -18px 0 var(--music-card-stone);
}

.music-song-card-button:focus-visible {
    outline: 3px solid var(--music-card-ink);
    outline-offset: 4px;
}

.music-song-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    font-family: var(--font-abhaya-libre);
    font-size: 32px;
    line-height: 1.18;
    text-align: center;
    text-wrap: balance;
}

.music-song-card-description {
    display: -webkit-box;
    align-self: start;
    max-width: 100%;
    max-height: calc(1.55em * 5);
    min-width: 0;
    min-height: 0;
    padding: 0 4px 0.12em;
    box-sizing: border-box;
    overflow: hidden;
    color: var(--music-card-ink);
    font-family: var(--font-sans-sinhala);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
    text-align: center;
    text-wrap: balance;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.music-collection-dialog {
    --music-dialog-paper: #F9F5EF;
    --music-dialog-warm: #F4F0E9;
    --music-dialog-mist: #EEEBE6;
    --music-dialog-stone: #EAE4D9;
    --music-dialog-ink: #393229;
    width: min(1280px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 0;
    border: none;
    overflow: hidden;
    background: transparent;
    color: var(--music-dialog-ink);
}

.music-collection-dialog::backdrop {
    background: var(--music-dialog-ink);
    opacity: 0.74;
    backdrop-filter: blur(10px);
}

.music-collection-dialog-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: min(880px, calc(100vh - 24px));
    height: calc(100vh - 24px);
    padding: 26px 28px 22px;
    box-sizing: border-box;
    border: none;
    border-radius: 12px;
    background: var(--music-dialog-warm);
    box-shadow: 0 28px 72px var(--music-dialog-ink);
    overflow: hidden;
}

.music-collection-dialog-close-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.music-collection-dialog-kicker {
    color: var(--music-dialog-ink);
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.music-collection-dialog-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.music-collection-dialog-nav-group {
    display: inline-flex;
    align-items: stretch;
    border: none;
    border-radius: 999px;
    background: var(--music-dialog-warm);
    overflow: hidden;
}

.music-collection-dialog-nav-button,
.music-collection-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: var(--music-dialog-warm);
    color: var(--music-dialog-ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.music-collection-dialog-nav-button {
    border: none;
}

.music-collection-dialog-nav-button:disabled {
    opacity: 0.34;
    cursor: default;
}

.music-collection-dialog-nav-button:not(:disabled):hover,
.music-collection-dialog-close:hover {
    background: var(--music-dialog-stone);
}

.music-collection-dialog-nav-button:focus-visible,
.music-collection-dialog-close:focus-visible {
    outline: 2px solid var(--music-dialog-ink);
    outline-offset: 2px;
}

.music-collection-dialog-nav-button .material-symbols-outlined,
.music-collection-dialog-close .material-symbols-outlined {
    font-size: 1em;
}

.music-collection-dialog-layout {
    display: grid;
    grid-template-columns: minmax(280px, 38.2%) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "player lyrics"
        "copy lyrics"
        "meta lyrics";
    flex: 1 1 auto;
    gap: 24px;
    align-items: stretch;
    align-content: start;
    min-height: 0;
}

.music-collection-dialog-copy {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 22px 24px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.music-collection-dialog-copy > h3 {
    margin: 0 0 14px;
    font-size: clamp(22px, 3.2vw, 30px);
    line-height: 1.16;
    color: var(--music-dialog-ink);
    font-family: var(--font-abhaya-libre);
}

.music-collection-dialog-description {
    flex: 1 1 auto;
    margin: 0;
    width: 100%;
    max-width: none;
    min-height: 0;
    overflow-y: auto;
    color: var(--music-dialog-ink);
    font-family: var(--font-sans-sinhala);
    font-size: 16px;
    line-height: 1.75;
    scrollbar-color: var(--music-dialog-ink) var(--music-dialog-warm);
}

.music-collection-dialog-player-shell {
    grid-area: player;
    position: sticky;
    top: 14px;
    z-index: 12;
    align-self: start;
    padding: calc(11px * 1.2 + 10px) 0 0;
}

.music-collection-dialog-player {
    width: 100%;
    margin: 0;
    border-radius: 12px;
}

.music-collection-dialog-meta {
    grid-area: meta;
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    align-content: start;
}

.music-collection-dialog-meta-row {
    display: grid;
    gap: 4px;
    padding: 0 16px 14px 16px;
    border: none;
    border-radius: 8px;
}

.music-collection-dialog-meta-row > dt {
    color: var(--music-dialog-ink);
    font-family: var(--font-sans-sinhala);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.68;
}

.music-collection-dialog-meta-row > dd {
    margin: 0;
    color: var(--music-dialog-ink);
    font-size: 14px;
    line-height: 1.35;
}

.music-collection-dialog-lyrics-shell {
    grid-area: lyrics;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.music-collection-dialog-lyrics-note {
    margin: 0 6px;
    color: var(--music-dialog-ink);
    font-family: var(--font-sans-sinhala);
    font-size: 11px;
    letter-spacing: 0.04em;
    opacity: 0.64;
}

.music-collection-dialog-lyrics {
    width: 100%;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 42px 42px 56px;
    overflow-y: auto;
    border: none;
    border-radius: 5px;
    background: var(--music-dialog-paper);
    color: var(--music-dialog-ink);
    font-family: var(--font-un-abhaya);
    font-size: 26px;
    line-height: 1.82;
    white-space: pre-wrap;
    scrollbar-color: var(--music-dialog-ink) var(--music-dialog-warm);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.lyrics-bible-reference-pill {
    background: #eaeaea;
    color: #888888;
    line-height: 1.0;
    padding: 3px 8px;
    border-radius: 1px;
    font-size: 0.9em;
    opacity: 0.65;
}

.lyrics-role-indicator {
    display: block;
    color: #888888;
    font-size: 0.6em;
    padding: 0 7px;
    border-radius: 8px;
    background-color: #f6e9cc;
}

.music-collection-dialog-disclaimer {
    margin: 12px 6px 0 0;
    flex: 0 0 auto;
    color: var(--music-dialog-ink);
    font-family: var(--font-sans-sinhala);
    font-size: 10px;
    line-height: 1.5;
    text-align: right;
    padding-left: 16px;
    opacity: 0.64;
}

.music-collection-dialog .audio-player {
    border: none;
    background: var(--music-dialog-stone);
    color: var(--music-dialog-ink);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.music-collection-dialog .audio-player::before,
.music-collection-dialog .audio-player::after {
    display: none;
}

.music-collection-dialog .audio-player-track:focus-visible {
    outline-color: var(--music-dialog-ink);
}

.music-collection-dialog .audio-player-track::-webkit-slider-runnable-track {
    background: #FFFFFF;
    box-shadow: none;
}

.music-collection-dialog .audio-player-track::-webkit-slider-thumb {
    border: none;
    background: var(--music-dialog-ink);
    box-shadow: 0 0 0 4px var(--music-dialog-warm);
}

.music-collection-dialog .audio-player-track::-moz-range-track {
    background: #FFFFFF;
    box-shadow: none;
}

.music-collection-dialog .audio-player-track::-moz-range-progress {
    background: var(--music-dialog-ink);
}

.music-collection-dialog .audio-player-track::-moz-range-thumb {
    border: none;
    background: var(--music-dialog-ink);
    box-shadow: 0 0 0 4px var(--music-dialog-warm);
}

.music-collection-dialog .audio-player-toggle {
    border: none;
    background: var(--music-dialog-paper);
    color: var(--music-dialog-ink);
}

.music-collection-dialog .audio-player.is-playing .audio-player-toggle,
.music-collection-dialog .audio-player-toggle:hover:not(:disabled) {
    background: var(--music-dialog-warm);
    box-shadow: none;
}

.music-collection-dialog .audio-player-toggle:focus-visible {
    outline-color: var(--music-dialog-ink);
}

.music-collection-dialog .audio-player-time {
    color: var(--music-dialog-ink);
}

/* ඡායාරූප Page */
#photos-wall-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: left;
}

#photos-wall-page > h2 {
    margin-bottom: 0;
}

#send-photo-email-link{
    text-decoration: underline;
}

.photos-wall-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    align-items: flex-start;
}

.photo-card {
    width: 420px;
    max-width: 100%;
    margin: 0;
}

.photo-card-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    border: none;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.photo-card-button:focus-visible {
    outline: 3px solid rgba(104, 169, 255, 0.9);
    outline-offset: 4px;
}

.photo-card-button.is-selected {
    outline: 3px solid rgba(104, 169, 255, 0.9);
    outline-offset: 4px;
}

.photo-card-picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(180deg, #f7f2ea 0%, #efe6d9 100%);
}

.photo-card-picture > img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    cursor: default;
}

.photos-wall-dialog {
    width: calc(100vw);
    max-width: calc(100vw);
    height: calc(100vh);
    height: calc(100dvh);
    max-height: calc(100vh);
    max-height: calc(100dvh);
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;

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

.photos-wall-dialog::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.photos-wall-dialog-shell {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    overflow: hidden;
}

.photos-wall-dialog-close-row {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.photos-wall-dialog-brand {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    margin: 6px 11px 0 8px;
    padding-left: env(safe-area-inset-left, 0px);
    color: rgba(255, 255, 255, 0.64);
    font-family: var(--font-abhaya-libre);
    font-size: 17px;
    text-align: left;
    pointer-events: none;
    user-select: none;
}

.photos-wall-dialog-brand > span {
    display: block;
}

.photos-wall-dialog-brand > span + span {
    color: rgba(255, 255, 255, 0.64);
    font-family: var(--font-un-gurulugomi);
    font-size: 0.88em;
}

.photos-wall-dialog-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.photos-wall-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(10, 10, 12, 0.52);
    color: #fff;
    font-size: 24px;
    font-weight: normal;
    line-height: 1;
    backdrop-filter: blur(16px);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.photos-wall-dialog-stage {
    position: absolute;
    inset: 0 0 88px;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 40px;
    align-items: stretch;
    justify-items: center;
    gap: 12px;
    min-height: 0;
    padding: 56px 76px 13px;
    box-sizing: border-box;
    background: transparent;
    overflow: hidden;
    backdrop-filter: blur(28px);
    --webkit-backdrop-filter: blur(28px);
}

.photos-wall-dialog-stage-nav {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(10, 10, 12, 0.42);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    backdrop-filter: blur(14px);
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.photos-wall-dialog-stage-nav-previous {
    left: auto;
}

.photos-wall-dialog-stage-nav-next {
    right: auto;
}

.photos-wall-dialog-stage-nav:disabled {
    opacity: 0.22;
    cursor: default;
}

.photos-wall-dialog-close:hover,
.photos-wall-dialog-stage-nav:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.14);
    opacity: 1;
}

.photos-wall-dialog-close:focus-visible,
.photos-wall-dialog-stage-nav:focus-visible,
.photos-wall-dialog-thumbnail:focus-visible > img {
    outline: 2px solid rgba(255, 255, 255, 0.92);
    outline-offset: 3px;
}

.photos-wall-dialog-picture {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #333;
    border-radius: 8px;
    touch-action: pan-y;
}

.photos-wall-dialog-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.photos-wall-dialog-image-frame > img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
    user-select: none;
    -webkit-user-drag: none;
}

.photos-wall-dialog-picture-controls {
    display: grid;
    grid-template-columns: 40px 64px 40px;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.photos-wall-dialog-counter {
    display: block;
    width: 64px;
    color: rgba(255, 255, 255, 0.64);
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

.photos-wall-dialog-fullscreen {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    background: #333;
    cursor: zoom-out;
    touch-action: pan-y;
}

.photos-wall-dialog-fullscreen[hidden] {
    display: none;
}

.photos-wall-dialog-fullscreen-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    pointer-events: none;
}

.photos-wall-dialog-fullscreen-close .material-symbols-outlined {
    font-size: 32px;
}

.photos-wall-dialog-fullscreen-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.photos-wall-dialog-fullscreen-picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.photos-wall-dialog-fullscreen-picture > img {
    display: block;
    max-width: min(calc(100vw - 44px), var(--photo-fullscreen-max-width, calc(100vw - 44px)));
    max-height: min(calc(100dvh - 44px), var(--photo-fullscreen-max-height, calc(100dvh - 44px)));
    width: auto;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.photos-wall-dialog-filmstrip {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 2;
    display: block;
    width: min(780px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    align-items: center;
    background: rgba(10, 10, 12, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
    transform: translateX(-50%);
}

.photos-wall-dialog-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 108px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.photos-wall-dialog-nav:disabled {
    opacity: 0.36;
    cursor: default;
}

.photos-wall-dialog-close .material-symbols-outlined,
.photos-wall-dialog-stage-nav .material-symbols-outlined,
.photos-wall-dialog-nav .material-symbols-outlined {
    font-size: 1em;
}

.photos-wall-dialog-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;
}

.photos-wall-dialog-thumbnails.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.photos-wall-dialog-thumbnails::-webkit-scrollbar {
    display: none;
}

.photos-wall-dialog-thumbnails::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
}

.photos-wall-dialog-thumbnail {
    flex: 0 0 auto;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.photos-wall-dialog-thumbnail > img {
    display: block;
    height: 58px;
    width: auto;
    max-width: none;
    border: 2px solid transparent;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    opacity: 0.56;
}

.photos-wall-dialog-thumbnail.is-active > img {
    border-color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26);
    opacity: 1;
}

.photos-wall-dialog-thumbnail:focus-visible > img,
.photos-wall-dialog-thumbnail:hover > img {
    opacity: 1;
    transform: translateY(-1px);
}

/* User Thoughts Page */
#user-thoughts-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

#user-thoughts-page > h2 {
    margin-bottom: 0;
}

main.content-container .user-thoughts-intro {
    margin: 0;
}

.user-thoughts-contact-us{
    opacity: 0.5;
}

.user-thoughts-contact-us > a{
    text-decoration: underline;
}

.user-thoughts-contact-choice-dialog {
    width: min(320px, calc(100vw - 28px));
    max-width: none;
    padding: 0;
    border: none;
    border-radius: 18px;
    background: transparent;
    color: #fff;
}

.user-thoughts-contact-choice-dialog::backdrop {
    background:
        radial-gradient(circle at 50% 20%, rgba(224, 111, 192, 0.22), transparent 34%),
        rgba(13, 2, 11, 0.66);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.user-thoughts-contact-choice-shell {
    position: relative;
    display: grid;
    gap: 11px;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
        rgba(111, 21, 79, 0.38);
    box-shadow:
        0 28px 72px rgba(13, 2, 11, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    overflow: hidden;
}

.user-thoughts-contact-choice-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 4%, rgba(255, 240, 142, 0.24), transparent 26%),
        radial-gradient(circle at 92% 94%, rgba(232, 176, 99, 0.18), transparent 34%);
    pointer-events: none;
}

.user-thoughts-contact-choice-shell > h3 {
    position: relative;
    margin: 0 34px 0 0;
    color: #fff8d8;
    font-size: 17px;
    line-height: 1.18;
}

.user-thoughts-contact-choice-option {
    position: relative;
    display: grid;
    gap: 9px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.user-thoughts-contact-choice-option > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    line-height: 1.45;
}

.user-thoughts-contact-choice-shell > hr {
    position: relative;
    width: 100%;
    height: 1px;
    margin: 0;
    border: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
}

.user-thoughts-contact-choice-button {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) 16px;
    align-items: center;
    justify-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 248, 216, 0.92);
    color: #6f154f;
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(13, 2, 11, 0.18);
}

.user-thoughts-contact-choice-button > span:first-child {
    grid-column: 2;
}

.user-thoughts-contact-choice-button .material-symbols-outlined {
    grid-column: 3;
    justify-self: end;
    font-size: 16px;
    line-height: 1;
}

.user-thoughts-contact-choice-button:hover,
.user-thoughts-contact-choice-button:focus {
    background: #ffe878;
    color: #4f0838;
}

.user-thoughts-contact-choice-button:focus-visible,
.user-thoughts-contact-choice-close:focus-visible {
    outline: 3px solid rgba(255, 232, 120, 0.72);
    outline-offset: 3px;
}

.user-thoughts-contact-choice-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.user-thoughts-contact-choice-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-thoughts-contact-choice-close .material-symbols-outlined {
    font-size: 18px;
}

@media (max-width: 520px) {
    .user-thoughts-contact-choice-shell {
        padding: 18px;
    }

    .user-thoughts-contact-choice-option {
        padding: 11px;
    }
}

.user-thoughts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 280px);
    justify-content: center;
    gap: 24px;
}

.user-thought-card {
    width: 280px;
    height: 360px;
    margin: 0;
}

.user-thought-card-button {
    --thought-card-paper: #F9F5EF;
    --thought-card-warm: #F4F0E9;
    --thought-card-mist: #EEEBE6;
    --thought-card-stone: #EAE4D9;
    --thought-card-ink: #393229;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 42px 26px;
    box-sizing: border-box;
    border: none;
    border-radius: 8px;
    background: var(--thought-card-paper);
    box-shadow:
        0 14px 32px rgb(57 50 41 / 0.2),
        inset 0 -18px 0 var(--thought-card-warm);
    color: var(--thought-card-ink);
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.user-thought-card-copy {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    pointer-events: none;
}

.user-thought-card-type {
    position: absolute;
    top: 38px;
    left: 26px;
    right: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--thought-card-ink);
    pointer-events: none;
    opacity: 0.48;
    transform: translate(0px, -7px);
}

.user-thought-card-type .material-symbols-outlined {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
}

.user-thought-card-type-label {
    min-width: 0;
    overflow: hidden;
    color: rgb(57 50 41 / 0.72);
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-thought-card-action-icon {
    position: absolute;
    top: 42%;
    left: 50%;
    color: #e8b063;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--thought-card-mist);
    pointer-events: none;
}

.user-thought-card-action-icon .material-symbols-outlined {
    font-size: 28px;
    line-height: 1;
}

.user-thought-card-button::before,
.user-thought-card-button::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    height: 1px;
    background: rgb(57 50 41 / 0.22);
    pointer-events: none;
}

.user-thought-card-button::before {
    top: 20px;
}

.user-thought-card-button::after {
    bottom: 20px;
}

.user-thought-card-button:hover {
    transform: translateY(-3px);
    background: var(--thought-card-warm);
    box-shadow:
        0 18px 38px rgb(57 50 41 / 0.24),
        inset 0 -18px 0 var(--thought-card-stone);
}

.user-thought-card.is-selected .user-thought-card-button,
.user-thought-card-button.is-selected {
    background: var(--thought-card-warm);
    box-shadow:
        0 0 0 3px rgba(151, 214, 255, 0.92),
        0 0 0 8px rgba(151, 214, 255, 0.18),
        0 22px 46px rgb(38 76 102 / 0.28),
        inset 0 -18px 0 var(--thought-card-stone);
}

.user-thought-card.is-selected .user-thought-card-action-icon,
.user-thought-card-button.is-selected .user-thought-card-action-icon {
    box-shadow: 0 0 0 3px rgba(151, 214, 255, 0.92);
}

.user-thought-card-button:focus-visible {
    outline: 3px solid var(--thought-card-ink);
    outline-offset: 4px;
}

.user-thought-card-name {
    max-width: 100%;
    min-width: 0;
    font-family: var(--font-abhaya-libre);
    font-size: 22px;
    line-height: 1.12;
    text-align: center;
    text-wrap: balance;
}

.user-thought-card-city {
    max-width: 100%;
    min-width: 0;
    color: rgb(57 50 41 / 0.72);
    font-family: var(--font-sans-sinhala);
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
}

.user-thought-detail-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
}

.user-thought-detail-dialog::backdrop {
    background: rgba(13, 2, 11, 0.68);
    backdrop-filter: blur(4px);
}

.user-thought-detail-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    background: #444444;
    box-shadow: none;
    overflow: hidden;
}

.user-thought-detail-close-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.user-thought-detail-kicker {
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.user-thought-detail-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
}

.user-thought-detail-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
}

.user-thought-detail-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.user-thought-detail-close:focus-visible {
    outline: 3px solid rgba(104, 169, 255, 0.9);
    outline-offset: 3px;
}

.user-thought-detail-close .material-symbols-outlined {
    font-size: 21px;
}

.user-thought-detail-identity {
    order: 2;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.user-thought-detail-identity h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.18;
    text-align: left;
    text-wrap: balance;
}

main.content-container .user-thought-detail-identity p,
main.content-container .user-thought-detail-content p {
    margin: 0;
}

.user-thought-detail-identity p {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

main.content-container .user-thought-detail-identity p {
    margin-top: 3px;
}

.user-thought-detail-content {
    order: 1;
    min-height: 0;
    overflow-y: auto;
}

.user-thought-detail-content.is-audio {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.user-thought-detail-content.is-video {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.user-thought-detail-content > p[hidden],
.user-thought-detail-audio[hidden],
.user-thought-detail-video[hidden] {
    display: none;
}

.user-thought-detail-content p {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: clamp(10px, 3vw, 34px) 0;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-sans-sinhala);
    font-size: clamp(16px, 2.1vw, 22px);
    line-height: 1.75;
    white-space: pre-line;
}

main.content-container .user-thought-detail-content p {
    margin: 0 auto;
}

.user-thought-detail-audio {
    width: min(560px, 100%);
}

.user-thought-detail-video {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
}

.user-thought-video-frame {
    --user-thought-video-progress: 0%;
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    background: #444444;
    overflow: hidden;
}

.user-thought-video-native {
    display: block;
    width: 100%;
    height: 100%;
    background: #444444;
    object-fit: contain;
    object-position: center center;
}

.user-thought-video-controls {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    min-height: 96px;
    padding: 34px 14px 12px;
    box-sizing: border-box;
    background:
        linear-gradient(
            180deg,
            rgba(68, 68, 68, 0) 0%,
            rgba(24, 24, 24, 0.18) 38%,
            rgba(24, 24, 24, 0.34) 100%
        );
    pointer-events: none;
}

.user-thought-video-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.user-thought-video-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition:
        background 160ms ease,
        opacity 160ms ease,
        transform 160ms ease;
}

.user-thought-detail-video.is-playing .user-thought-video-toggle {
    background: rgba(255, 255, 255, 0.24);
}

.user-thought-video-toggle:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.user-thought-video-toggle:focus-visible {
    outline: 3px solid rgba(104, 169, 255, 0.9);
    outline-offset: 3px;
}

.user-thought-video-toggle:disabled {
    opacity: 0.5;
    cursor: default;
}

.user-thought-video-toggle .material-symbols-outlined {
    font-size: 26px;
}

.user-thought-video-track {
    position: relative;
    width: 100%;
    height: 18px;
    border: none;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}

.user-thought-video-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.88) 0,
            rgba(255, 255, 255, 0.88) var(--user-thought-video-progress),
            rgba(255, 255, 255, 0.26) var(--user-thought-video-progress),
            rgba(255, 255, 255, 0.26) 100%
        );
    transform: translateY(-50%);
}

.user-thought-video-track::after {
    content: "";
    position: absolute;
    left: var(--user-thought-video-progress);
    top: 50%;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    transform: translate(-50%, -50%);
}

.user-thought-video-track.is-disabled {
    cursor: default;
    opacity: 0.5;
}

.user-thought-video-track:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.76);
    outline-offset: 4px;
    border-radius: 999px;
}

.user-thought-video-time {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--font-sans-sinhala);
    font-size: 13px;
    line-height: 1.2;
    text-align: right;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
}

.user-thought-detail-audio.audio-player {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.user-thought-detail-audio.audio-player::before,
.user-thought-detail-audio.audio-player::after {
    content: none;
}

.user-thought-detail-audio .audio-player-track {
    height: 24px;
    margin: 0;
    overflow: visible;
}

.user-thought-detail-audio .audio-player-controls {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

.user-thought-detail-audio .audio-player-track::-webkit-slider-runnable-track {
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.9) 0,
            rgba(255, 255, 255, 0.9) var(--audio-player-progress),
            rgba(255, 255, 255, 0.24) var(--audio-player-progress),
            rgba(255, 255, 255, 0.24) 100%
        );
    box-shadow: none;
}

.user-thought-detail-audio .audio-player-track::-webkit-slider-thumb {
    border-color: rgba(255, 255, 255, 0.86);
    background: #fff;
    box-shadow: none;
}

.user-thought-detail-audio .audio-player-track::-moz-range-track {
    background: rgba(255, 255, 255, 0.24);
    box-shadow: none;
}

.user-thought-detail-audio .audio-player-track::-moz-range-progress {
    background: rgba(255, 255, 255, 0.9);
}

.user-thought-detail-audio .audio-player-track::-moz-range-thumb {
    border-color: rgba(255, 255, 255, 0.86);
    background: #fff;
    box-shadow: none;
}

.user-thought-detail-audio .audio-player-toggle,
.user-thought-detail-audio.audio-player.is-playing .audio-player-toggle,
.user-thought-detail-audio .audio-player-toggle:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: none;
}

.user-thought-detail-audio.audio-player.is-playing .audio-player-toggle {
    background: rgba(255, 255, 255, 0.16);
}

.user-thought-detail-audio .audio-player-toggle:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.user-thought-detail-audio .audio-player-toggle:focus-visible,
.user-thought-detail-audio .audio-player-track:focus-visible {
    outline-color: rgba(104, 169, 255, 0.9);
}

.user-thought-detail-audio .audio-player-time {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.video-player {
    --video-player-progress: 0%;
    position: relative;
    display: grid;
    width: 100%;
}

.user-thought-detail-video.video-player {
    --video-player-aspect-ratio: 9 / 16;
    --video-player-max-width: 100%;
    --video-player-max-height: 100%;
    --video-player-fit-width: 100%;
    --video-player-fit-height: 100%;
    width: var(--video-player-fit-width);
    height: var(--video-player-fit-height);
}

.user-thought-detail-dialog.is-video .user-thought-detail-video.video-player {
    max-width: 100%;
    max-height: 100%;
    justify-self: center;
    align-self: center;
}

.video-player-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 10px;
    background: #111;
    overflow: hidden;
}

.user-thought-detail-video .video-player-stage {
    align-self: center;
    justify-self: center;
    width: 100%;
    height: 100%;
    aspect-ratio: var(--video-player-aspect-ratio);
}

.user-thought-detail-dialog.is-video .user-thought-detail-video .video-player-stage {
    background: #444444;
}

.video-player-native {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background: #111;
    object-fit: contain;
    object-position: center center;
}

.user-thought-detail-dialog.is-video .video-player-native {
    background: #444444;
}

.video-player.is-portrait .video-player-native {
    width: auto;
    height: 100%;
}

.video-player.is-landscape .video-player-native {
    width: 100%;
    height: auto;
}

.video-player-toggle {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto;
    transition:
        background 160ms ease,
        opacity 160ms ease,
        transform 160ms ease;
}

.video-player.is-playing .video-player-toggle {
    background: rgba(255, 255, 255, 0.24);
}

.video-player-toggle:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.video-player-toggle:focus-visible {
    outline: 3px solid rgba(104, 169, 255, 0.9);
    outline-offset: 3px;
}

.video-player-toggle:disabled {
    opacity: 0.5;
    cursor: default;
}

.video-player-toggle .material-symbols-outlined {
    font-size: 26px;
}

.video-player-controls {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    min-height: 96px;
    padding: 34px 14px 12px;
    box-sizing: border-box;
    background:
        linear-gradient(
            180deg,
            rgba(68, 68, 68, 0) 0%,
            rgba(24, 24, 24, 0.18) 38%,
            rgba(24, 24, 24, 0.34) 100%
        );
    pointer-events: none;
}

.video-player-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.video-player-track {
    position: relative;
    width: 100%;
    height: 18px;
    border: none;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}

.video-player-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.88) 0,
            rgba(255, 255, 255, 0.88) var(--video-player-progress),
            rgba(255, 255, 255, 0.26) var(--video-player-progress),
            rgba(255, 255, 255, 0.26) 100%
        );
    transform: translateY(-50%);
}

.video-player-track::after {
    content: "";
    position: absolute;
    left: var(--video-player-progress);
    top: 50%;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    transform: translate(-50%, -50%);
}

.video-player-track.is-disabled {
    cursor: default;
    opacity: 0.5;
}

.video-player-track:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.76);
    outline-offset: 4px;
    border-radius: 999px;
}

.video-player-time {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--font-sans-sinhala);
    font-size: 13px;
    line-height: 1.2;
    text-align: right;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
}

body.user-thought-detail-dialog-open {
    overflow: hidden;
}

.user-thoughts-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.user-thoughts-hero-copy {
    max-width: 720px;
}

.user-thoughts-hero-copy > p {
    margin-bottom: 0;
    font-size: 15px;
    opacity: 0.88;
}

.user-thoughts-cta {
    position: relative;
    border: 1px solid #e06fc0;
    border-radius: 10px;
    background-color: transparent;
    color: #555;
    font-family: var(--font-sans-sinhala);
    font-size: 13px;
    font-weight: 100;
    height: 96px;
    width: 264px;
    cursor: pointer;
    z-index: 1;
    padding: 5px 0 0 105px;
    background: url('images/writing-lineart.png') no-repeat 12px 16px;
    background-color: #fff;
    background-size: 80px 72px;
    text-align: left;
    transition: box-shadow 0.4s ease;
    box-shadow: 0px 0px 3px 3px transparent;
}


.user-thoughts-cta::before,
.user-thoughts-cta::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    background-color: #2f0028;
    height: 1px;
    z-index: 1;
}

.user-thoughts-cta::before {
    top: 5px;
}

.user-thoughts-cta::after {
    bottom: 5px;
}

.user-thoughts-cta:hover,
.user-thoughts-cta:focus {
    box-shadow: 0px 0px 16px 3px #fff5b1;
    /*box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    background: linear-gradient(135deg, rgba(253, 227, 109, 0.28), rgba(255, 255, 255, 0.18));*/
}

.user-thoughts-cta:hover::before,
.user-thoughts-cta:focus::before {
    background-color: #66184f;
    box-shadow: 0px -3px 2px 2px #fff5b1;
}

.user-thoughts-cta:hover::after,
.user-thoughts-cta:focus::after {
    background-color: #66184f;
    box-shadow: 0px 3px 2px 2px #fff5b1;
}

.user-thoughts-dialog {
    width: min(720px, calc(100vw - 32px));
    padding: 0;
    border: none;
    border-radius: 28px;
    background: transparent;
    color: #fff;
}

.user-thoughts-dialog::backdrop {
    background: rgba(11, 4, 15, 0.72);
    backdrop-filter: blur(8px);
}

.user-thoughts-confirmation-dialog {
    width: min(520px, calc(100vw - 32px));
    padding: 0;
    border: none;
    border-radius: 24px;
    background: transparent;
    color: #fff;
}

.user-thoughts-confirmation-dialog::backdrop {
    background: rgba(11, 4, 15, 0.72);
    backdrop-filter: blur(8px);
}

.user-thoughts-dialog-shell {
    position: relative;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: radial-gradient(circle at top, rgba(155, 44, 118, 0.96), rgba(55, 7, 46, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.user-thoughts-confirmation-shell {
    position: relative;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: radial-gradient(circle at top, rgba(148, 36, 110, 0.98), rgba(58, 10, 49, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.user-thoughts-dialog-close-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.user-thoughts-dialog-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.user-thoughts-dialog-copy > h3 {
    margin-bottom: 12px;
}

.user-thoughts-dialog-copy > p {
    margin-bottom: 0;
}

.user-thoughts-confirmation-copy > h3 {
    margin-bottom: 16px;
}

.user-thoughts-confirmation-copy > p:last-of-type {
    margin-bottom: 0;
}

.user-thoughts-dialog-eyebrow {
    margin-bottom: 10px;
    color: #fde36d;
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-thoughts-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.user-thoughts-field {
    display: grid;
    gap: 8px;
    font-family: var(--font-sans-sinhala);
}

.user-thoughts-field-toast {
    display: block;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 185, 185, 0.35);
    border-radius: 14px;
    background: rgba(113, 17, 38, 0.92);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    color: #ffe3e3;
    font-size: 12px;
    line-height: 1.45;
    transform: translateY(0);
    animation: user-thoughts-toast-in 0.18s ease;
}

.user-thoughts-field-toast[hidden] {
    display: none;
}

.user-thoughts-field.has-error > input,
.user-thoughts-field.has-error > textarea {
    border-color: rgba(255, 185, 185, 0.75);
    box-shadow: 0 0 0 1px rgba(255, 185, 185, 0.18);
}

.user-thoughts-field > span {
    font-size: 13px;
    font-weight: 700;
    color: #fff5b1;
}

.user-thoughts-field > input,
.user-thoughts-field > textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    padding: 14px 16px;
}

.user-thoughts-field > input::placeholder,
.user-thoughts-field > textarea::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.user-thoughts-field > textarea {
    resize: vertical;
    min-height: 180px;
}

.user-thoughts-field > input:focus,
.user-thoughts-field > textarea:focus {
    outline: 2px solid rgba(253, 227, 109, 0.28);
    border-color: rgba(253, 227, 109, 0.52);
}

.user-thoughts-field.has-error > input:focus,
.user-thoughts-field.has-error > textarea:focus {
    outline-color: rgba(255, 185, 185, 0.28);
    border-color: rgba(255, 185, 185, 0.8);
}

.user-thoughts-form-note,
.user-thoughts-form-status {
    margin-bottom: 0;
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
}

.user-thoughts-form-note {
    opacity: 0.8;
}

.user-thoughts-form-status {
    min-height: 1.4em;
    color: #fde36d;
}

.user-thoughts-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.user-thoughts-confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.user-thoughts-submit,
.user-thoughts-secondary-btn {
    border-radius: 999px;
    font-family: var(--font-sans-sinhala);
    font-size: 14px;
    font-weight: 700;
    padding: 13px 22px;
    cursor: pointer;
}

.user-thoughts-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    border: 1px solid rgba(253, 227, 109, 0.7);
    background: linear-gradient(135deg, rgba(253, 227, 109, 0.22), rgba(255, 255, 255, 0.14));
    color: #fff7c7;
}

.user-thoughts-submit-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 247, 199, 0.26);
    border-top-color: #fff7c7;
    border-radius: 50%;
    display: none;
}

.user-thoughts-secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.user-thoughts-submit.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.user-thoughts-submit.is-loading .user-thoughts-submit-spinner {
    display: inline-block;
    margin-right: 10px;
    animation: user-thoughts-submit-spin 0.8s linear infinite;
}

.user-thoughts-confirmation-status {
    margin-top: 12px;
}

@keyframes user-thoughts-submit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes user-thoughts-toast-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-thoughts-status,
.user-thoughts-empty,
.thought-card {
    background: url('/images/paper-texture.jpg') left top repeat;
    border: 5px solid #fff;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    
}

main.content-container .thought-card h3{
    color: #444;
    font-size: 18px;
    font-weight: bold;
    font-family: var(--font-abhaya-libre);
}

main.content-container .thought-card p {
    color: #444;
    font-size: 25px;
    font-family: var(--font-abhaya-libre);
}

.user-thoughts-status,
.user-thoughts-empty {
    padding: 28px;
}

.user-thoughts-status > p,
.user-thoughts-empty > p {
    margin-bottom: 0;
}

.user-thoughts-empty > h3 {
    margin-bottom: 10px;
}

#user-thoughts-list {
    display: grid;
    gap: 32px;
}

.thought-card {
    padding: 20px 20px 40px 20px;
}

.thought-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 13px;
}

.thought-card-header h3 {
    margin-bottom: 4px;
}

.thought-card-date {
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.72;
    margin-bottom: 0;
    white-space: nowrap;
    color: #000;
    opacity: 0.6;
}

.thought-card-body > p,
.thought-card-fulltext > p {
    margin-bottom: 0;
}

.thought-card-ellipsis {
    letter-spacing: 0.1em;
}

.thought-card-more {
    margin-top: 14px;
}

.thought-card-more > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    color: #fde36d;
    font-family: var(--font-sans-sinhala);
    font-size: 13px;
    font-weight: 700;
}

.thought-card-more > summary::-webkit-details-marker {
    display: none;
}

.thought-card-more > summary::after {
    content: "+";
    font-size: 16px;
    line-height: 1;
}

.thought-card-more[open] > summary::after {
    content: "-";
}

.thought-card-fulltext {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.user-thoughts-pagination {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 8px 0 4px;
}

.user-thoughts-pagination.is-complete {
    padding-bottom: 0;
}

.user-thoughts-loading-status {
    min-height: 24px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.user-thoughts-loading-status[hidden] {
    display: none;
}

.user-thoughts-load-more[hidden] {
    display: none;
}

.user-thoughts-sentinel {
    width: 100%;
    height: 1px;
}

.user-thoughts-sentinel[hidden] {
    display: none;
}

/* Admin Dashboard */
#admin-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.admin-hero-copy {
    max-width: 760px;
}

.admin-eyebrow {
    margin-bottom: 10px;
    color: #fde36d;
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-hero-copy > p:last-child {
    margin-bottom: 0;
    font-size: 15px;
    opacity: 0.88;
}

.admin-hero-link,
.admin-filter-chip,
.admin-action-button {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.admin-hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1px solid rgba(253, 227, 109, 0.6);
    background: linear-gradient(135deg, rgba(253, 227, 109, 0.2), rgba(255, 255, 255, 0.12));
    color: #fff7c7;
    font-family: var(--font-sans-sinhala);
    font-weight: 700;
    white-space: nowrap;
}

.admin-hero-link:hover,
.admin-filter-chip:hover,
.admin-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.admin-notice,
.admin-overview-card,
.admin-thought-card,
.admin-empty-state {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.admin-notice,
.admin-empty-state {
    padding: 22px 24px;
}

.admin-notice.is-success {
    border-color: rgba(253, 227, 109, 0.34);
}

.admin-notice.is-error {
    border-color: rgba(255, 185, 185, 0.5);
    color: #ffe3e3;
}

.admin-notice > p,
.admin-empty-state > p {
    margin-bottom: 0;
}

.admin-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.admin-overview-card {
    padding: 22px;
}

.admin-overview-card-featured {
    background:
        radial-gradient(circle at top right, rgba(253, 227, 109, 0.18), transparent 44%),
        rgba(255, 255, 255, 0.08);
}

.admin-overview-label {
    margin-bottom: 10px;
    color: #fff5b1;
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-overview-card > h3 {
    margin-bottom: 8px;
    font-size: 40px;
}

.admin-overview-copy {
    margin-bottom: 0;
    opacity: 0.82;
}

.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.admin-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--font-sans-sinhala);
}

.admin-filter-chip strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
}

.admin-filter-chip.is-active {
    border-color: rgba(253, 227, 109, 0.6);
    color: #fff7c7;
    background: linear-gradient(135deg, rgba(253, 227, 109, 0.18), rgba(255, 255, 255, 0.12));
}

.admin-collapse-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-sans-sinhala);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.admin-collapse-all-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.admin-collapse-all-button:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
    box-shadow: none;
}

#admin-thoughts-grid {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.admin-thought-card {
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.admin-thought-card + .admin-thought-card {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-thought-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 18px;
    cursor: pointer;
    list-style: none;
}

.admin-thought-summary::-webkit-details-marker {
    display: none;
}

.admin-thought-summary-main {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-thought-summary-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.admin-thought-summary-title-row > h3 {
    margin-bottom: 0;
    font-size: 19px;
}

.admin-thought-preview {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-thought-summary-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.admin-thought-summary-time {
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0.84;
}

.admin-thought-summary-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fde36d;
    font-family: var(--font-sans-sinhala);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-thought-summary-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.admin-thought-card[open] .admin-thought-summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-thought-card[open] .admin-thought-summary-toggle::after {
    transform: rotate(-135deg);
}

.admin-thought-card[open] .admin-thought-summary-toggle {
    color: #fff7c7;
}

.admin-thought-card-expanded {
    padding: 18px;
}

.admin-thought-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.admin-thought-card-identity > h3 {
    margin-bottom: 4px;
}

.admin-thought-email {
    color: #fde36d;
    font-family: var(--font-sans-sinhala);
    font-size: 13px;
}

.admin-state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-state-badge.state-pending_review {
    background: rgba(253, 227, 109, 0.16);
    color: #fff3ab;
}

.admin-state-badge.state-published {
    background: rgba(183, 255, 207, 0.16);
    color: #d7ffe7;
}

.admin-state-badge.state-unpublished {
    background: rgba(195, 216, 255, 0.16);
    color: #dde8ff;
}

.admin-state-badge.state-rejected,
.admin-state-badge.state-deleted {
    background: rgba(255, 185, 185, 0.16);
    color: #ffe3e3;
}

.admin-thought-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 14px;
}

.admin-thought-meta > p {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
}

.admin-thought-meta span {
    color: #fff5b1;
    font-family: var(--font-sans-sinhala);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-thought-meta time {
    font-family: var(--font-sans-sinhala);
    font-size: 13px;
}

.admin-thought-body {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-thought-body > p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.55;
}

.admin-thought-form {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.admin-notes-field {
    display: grid;
    gap: 8px;
    font-family: var(--font-sans-sinhala);
}

.admin-notes-field > span {
    color: #fff5b1;
    font-size: 13px;
    font-weight: 700;
}

.admin-notes-field > textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 100px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    padding: 12px 14px;
    resize: vertical;
}

.admin-notes-field > textarea:focus {
    outline: 2px solid rgba(253, 227, 109, 0.28);
    border-color: rgba(253, 227, 109, 0.52);
}

.admin-thought-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    font-weight: 700;
}

.admin-action-button.is-primary {
    border-color: rgba(253, 227, 109, 0.68);
    background: linear-gradient(135deg, rgba(253, 227, 109, 0.2), rgba(255, 255, 255, 0.12));
    color: #fff7c7;
}

.admin-action-button.is-warning {
    border-color: rgba(255, 202, 140, 0.46);
    background: rgba(161, 91, 17, 0.2);
    color: #ffe5bf;
}

.admin-action-button.is-danger {
    border-color: rgba(255, 185, 185, 0.46);
    background: rgba(128, 19, 48, 0.26);
    color: #ffe3e3;
}

/* Admin Master Detail */
.admin-pagination {
    width: 100%;
    margin: 0 0 18px;
}

.admin-pagination-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(12px);
}

.admin-pagination-button,
.admin-pagination-ellipsis {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    font-family: var(--font-sans-sinhala);
    font-size: 13px;
    font-weight: 700;
}

.admin-pagination-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.admin-pagination-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

.admin-pagination-button:focus-visible {
    outline: 2px solid rgba(253, 227, 109, 0.45);
    outline-offset: 2px;
}

.admin-pagination-button.is-active {
    border-color: rgba(253, 227, 109, 0.76);
    background: linear-gradient(135deg, rgba(253, 227, 109, 0.22), rgba(255, 255, 255, 0.12));
    color: #fff7c7;
    box-shadow: 0 10px 24px rgba(253, 227, 109, 0.12);
}

.admin-pagination-button.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.admin-pagination-ellipsis {
    color: rgba(255, 255, 255, 0.72);
}

.admin-master-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
    gap: 18px;
    align-items: start;
}

.admin-list-panel,
.admin-detail-panel,
.admin-detail-dialog-shell,
.admin-unsaved-dialog-shell {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.admin-detail-panel {
    position: sticky;
    top: 74px;
    overflow: hidden;
}

#admin-thoughts-grid {
    display: block;
    overflow: hidden;
    border-radius: 24px;
}

.admin-list-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease;
}

.admin-list-item:first-child {
    border-top: none;
}

.admin-list-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.admin-list-item.is-selected {
    background:
        linear-gradient(90deg, rgba(253, 227, 109, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.06);
    box-shadow: inset 3px 0 0 #fde36d;
}

.admin-list-item:focus-visible {
    outline: 2px solid rgba(253, 227, 109, 0.45);
    outline-offset: -2px;
}

.admin-list-item-main {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-list-item-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.admin-list-item-title-row > h3 {
    margin-bottom: 0;
    font-size: 17px;
    line-height: 1.12;
}

.admin-list-item-preview {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.28;
    color: rgba(255, 255, 255, 0.86);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-list-item-side {
    flex-shrink: 0;
    align-self: flex-start;
}

.admin-list-item-time {
    display: inline-block;
    margin-top: 1px;
    font-family: var(--font-sans-sinhala);
    font-size: 11px;
    opacity: 0.82;
    white-space: nowrap;
}

.admin-detail-view {
    padding: 18px;
}

.admin-detail-empty {
    padding: 12px 4px;
}

.admin-detail-empty > h3 {
    margin-bottom: 10px;
}

.admin-detail-empty > p {
    margin-bottom: 0;
    opacity: 0.84;
}

.admin-detail-label {
    margin-bottom: 8px;
    color: #fff5b1;
    font-family: var(--font-sans-sinhala);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-detail-content > .admin-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.admin-detail-version-tabs-wrap {
    margin-bottom: 14px;
}

.admin-version-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-version-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.admin-version-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: translateY(-1px);
}

.admin-version-tab.is-active {
    border-color: rgba(253, 227, 109, 0.72);
    background: linear-gradient(135deg, rgba(253, 227, 109, 0.18), rgba(255, 255, 255, 0.08));
    color: #fff7c7;
}

.admin-version-tab:focus-visible {
    outline: 2px solid rgba(253, 227, 109, 0.45);
    outline-offset: 2px;
}

.admin-detail-identity > h3 {
    margin-bottom: 4px;
}

.admin-detail-view .admin-thought-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
}

.admin-detail-view .admin-thought-meta > p {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 0;
}

.admin-detail-view .admin-thought-meta span {
    color: #fff5b1;
    font-family: var(--font-sans-sinhala);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-detail-view .admin-thought-meta time {
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
}

.admin-detail-view .admin-thought-body {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-detail-view .admin-thought-body > p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.55;
}

.admin-detail-view .admin-thought-form {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.admin-detail-view .admin-notes-field {
    display: grid;
    gap: 8px;
    font-family: var(--font-sans-sinhala);
}

.admin-detail-view .admin-notes-field > span {
    color: #fff5b1;
    font-size: 12px;
    font-weight: 700;
}

.admin-detail-view .admin-notes-field > textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 96px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    padding: 12px 14px;
    resize: vertical;
}

.admin-detail-view .admin-notes-field > textarea:focus {
    outline: 2px solid rgba(253, 227, 109, 0.28);
    border-color: rgba(253, 227, 109, 0.52);
}

.admin-detail-view .admin-thought-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-thought-email-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 2px;
}

.admin-detail-view .admin-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
    font-weight: 700;
}

.admin-detail-view .admin-action-button.is-primary {
    border-color: rgba(253, 227, 109, 0.68);
    background: linear-gradient(135deg, rgba(253, 227, 109, 0.2), rgba(255, 255, 255, 0.12));
    color: #fff7c7;
}

.admin-detail-view .admin-action-button.is-warning {
    border-color: rgba(255, 202, 140, 0.46);
    background: rgba(161, 91, 17, 0.2);
    color: #ffe5bf;
}

.admin-detail-view .admin-action-button.is-danger {
    border-color: rgba(255, 185, 185, 0.46);
    background: rgba(128, 19, 48, 0.26);
    color: #ffe3e3;
}

.admin-detail-view [hidden] {
    display: none !important;
}

.admin-detail-dialog,
.admin-unsaved-dialog {
    width: min(720px, calc(100vw - 24px));
    padding: 0;
    border: none;
    border-radius: 24px;
    background: transparent;
    color: #fff;
}

.admin-detail-dialog::backdrop,
.admin-unsaved-dialog::backdrop {
    background: rgba(11, 4, 15, 0.72);
    backdrop-filter: blur(8px);
}

.admin-detail-dialog-shell,
.admin-unsaved-dialog-shell {
    padding: 20px;
}

.admin-detail-dialog-title-row {
    padding: 0 4px 10px;
}

.admin-detail-dialog-title-row > h3,
.admin-unsaved-dialog-shell > h3 {
    margin-bottom: 0;
}

.admin-unsaved-dialog-shell > p {
    margin: 10px 0 0;
    opacity: 0.86;
}

.admin-unsaved-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.admin-unsaved-dialog-actions .admin-action-button {
    min-width: 148px;
}

.admin-email-dialog-shell {
    max-width: 760px;
}

.admin-email-form {
    display: grid;
    gap: 14px;
}

.admin-email-field {
    display: grid;
    gap: 8px;
    font-family: var(--font-sans-sinhala);
}

.admin-email-field > span {
    color: #fff5b1;
    font-size: 12px;
    font-weight: 700;
}

.admin-email-field > input,
.admin-email-field > textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    padding: 12px 14px;
}

.admin-email-field > input[readonly] {
    opacity: 0.86;
}

.admin-email-field > textarea {
    min-height: 220px;
    resize: vertical;
    line-height: 1.6;
}

.admin-email-field > input:focus,
.admin-email-field > textarea:focus {
    outline: 2px solid rgba(253, 227, 109, 0.28);
    border-color: rgba(253, 227, 109, 0.52);
}

.admin-email-status {
    min-height: 1.4em;
    margin-bottom: 0;
    color: #fde36d;
    font-family: var(--font-sans-sinhala);
    font-size: 12px;
}

.admin-email-actions {
    display: flex;
    justify-content: flex-start;
}

.admin-email-actions .admin-action-button {
    min-width: 180px;
}

/* Responsive */
@media (max-width: 1600px) or (max-height: 1020px) {

    #main-header {
        transform: scale(1.0, 1.0);
    }

    #quote-section {
        font-size: 18px;
    }

}

@media (max-width: 1100px) {

    .admin-master-detail {
        grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
    }

    #mobile-menu-btn{
        display: flex;
    }

    menu{
        border-top-color: transparent;
        height: 82px;
        background-color: #3d0632;
    }

    menu > .nav-menu-btn{
        display: none;
    }

    .line-decor{
        opacity: 0.62;
    }

    main.content-container{
        margin-top: 20px;
        margin-bottom: 20px;
    }
}


@media (max-width: 960px) or (max-height: 700px) {

    #main-header {
        transform: scale(0.72, 0.72);
    }

}

@media (max-width: 960px) {
    
    .admin-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    
    .admin-master-detail {
        grid-template-columns: 1fr;
    }

    .gihi-book-layout {
        grid-template-columns: 1fr;
    }

    .gihi-book-cover-card {
        max-width: 420px;
        width: 100%;
        justify-self: center;
    }

    .gihi-book-contact-card {
        width: 100%;
        max-width: none;
    }

    .admin-detail-panel {
        display: none;
    }

    .admin-list-panel {
        overflow: hidden;
    }
}

@media (max-width: 720px) or (max-height: 600px) {

    #main-header {
        top: 7%;
        transform: scale(0.64, 0.64);
    }

    #quote-section{
        top: 28px;
        width: 40%;
        left: 5%;
        right: auto;
        font-size: 14px;
    }

    main.content-container{
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

@media (max-width: 720px) {

    .music-collection-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        margin: 0;
    }

    .user-thoughts-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .user-thoughts-cta {
        width: 100%;
    }

    .gihi-book-contact-card {
        padding: 20px;
    }

    .gihi-book-contact-card h3 {
        font-size: 30px;
    }

    .gihi-book-contact-person strong {
        font-size: 27px;
    }

    .gihi-book-contact-details > div,
    .gihi-book-contact-actions {
        grid-template-columns: 1fr;
    }

    .gihi-book-contact-actions a:last-child {
        grid-column: auto;
    }

    .music-collection-grid,
    .user-thoughts-grid {
        grid-template-columns: 1fr;
    }

    .audio-player {
        padding: 12px 14px 14px;
        border-radius: 18px;
    }

    .audio-player-track {
        height: 34px;
        margin: -12px 0 -4px;
        border-radius: 999px;
    }

    .audio-player-toggle {
        width: 40px;
        height: 40px;
    }

    .audio-player-time {
        font-size: 12px;
    }

    .music-song-card,
    .user-thought-card {
        width: 100%;
        max-width: 280px;
        justify-self: center;
    }

    .music-song-card-title {
        font-size: 30px;
    }

    .music-collection-dialog-layout {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas:
            "copy"
            "player"
            "lyrics"
            "meta";
        gap: 18px;
        flex: 0 0 auto;
        height: auto;
    }

    .music-collection-dialog-shell {
        min-height: auto;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        padding: 18px 14px 16px;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .music-collection-dialog-close-row {
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 14px;
    }

    .music-collection-dialog-kicker {
        padding-top: 8px;
        font-size: 11px;
    }

    .music-collection-dialog-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .music-collection-dialog-nav-button,
    .music-collection-dialog-close {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .music-collection-dialog-copy {
        padding: 0;
    }

    .music-collection-dialog-copy > h3 {
        margin-bottom: 10px;
        font-size: clamp(22px, 6.5vw, 30px);
        line-height: 1.16;
    }

    .music-collection-dialog-player-shell {
        top: -18px;
        margin-top: -18px;
        margin-inline: 0;
        padding: 0;
    }

    .music-collection-dialog-description {
        flex: 0 1 auto;
        max-width: none;
        margin-bottom: 18px;
        font-size: 15px;
        line-height: 1.65;
    }

    .music-collection-dialog-player {
        margin-bottom: 14px;
        border-radius: 18px;
    }

    .music-collection-dialog .audio-player {
        border-radius: 18px;
    }

    .music-collection-dialog-player-shell.is-stuck .music-collection-dialog-player,
    .music-collection-dialog-player-shell.is-stuck .audio-player {
        border-radius: 0 0 18px 18px;
    }

    .music-collection-dialog-meta {
        gap: 12px;
        padding: 0;
    }

    .music-collection-dialog-meta-row {
        padding: 12px 14px;
    }

    .music-collection-dialog-meta-row > dd {
        font-size: 17px;
    }

    .music-collection-dialog-lyrics-shell {
        gap: 8px;
        height: auto;
    }

    .music-collection-dialog-lyrics-note {
        margin: 0 2px;
        font-size: 10px;
    }

    .music-collection-dialog-lyrics {
        height: auto;
        min-height: clamp(240px, 42vh, 420px);
        padding: 24px 18px 28px;
        font-size: clamp(18px, 4.8vw, 22px);
        line-height: 1.75;
        border-radius: 20px;
    }

    .music-collection-dialog-disclaimer {
        margin: 10px 2px 0 0;
        font-size: 9px;
        text-align: left;
    }

    .thought-card-header {
        flex-direction: column;
    }

    .thought-card-date {
        white-space: normal;
    }

    .user-thoughts-dialog-shell {
        padding: 22px;
    }

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

    .user-thoughts-confirmation-actions {
        flex-direction: column;
    }

    .user-thoughts-submit,
    .user-thoughts-secondary-btn {
        width: 100%;
    }

    .admin-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-hero-link,
    .admin-collapse-all-button,
    .admin-action-button {
        width: 100%;
    }

    .admin-overview {
        grid-template-columns: 1fr;
    }

    .admin-thought-card-header {
        flex-direction: column;
    }

    .admin-thought-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-thought-summary-side {
        align-items: flex-start;
    }

    .admin-thought-actions {
        flex-direction: column;
    }

    .photos-wall-dialog {
        width: calc(100vw - 8px);
        max-width: calc(100vw - 8px);
        height: calc(100vh - 8px);
        height: calc(100dvh - 8px);
        max-height: calc(100vh - 8px);
        max-height: calc(100dvh - 8px);
    }

    .photos-wall-dialog-shell {
        height: 100%;
        padding: 0;
    }

    .photos-wall-dialog-close-row {
        top: 2px;
        right: 4px;
    }

    .photos-wall-dialog-close{
        border: none;
    }

    .photos-wall-dialog-stage {
        inset: 0 0 72px;
        gap: 8px;
        padding: 52px 14px 14px;
    }

    .photos-wall-dialog-stage-nav {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .photos-wall-dialog-stage-nav-previous {
        left: auto;
    }

    .photos-wall-dialog-stage-nav-next {
        right: auto;
    }

    .photos-wall-dialog-filmstrip {
        left: 50%;
        right: auto;
        bottom: 10px;
        width: min(620px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        transform: translateX(-50%);
    }

    .photos-wall-dialog-thumbnails {
        gap: 6px;
        padding: 6px;
    }

    .photos-wall-dialog-thumbnail > img {
        height: 48px;
    }

    .admin-pagination {
        margin-bottom: 14px;
    }

    .admin-pagination-strip {
        gap: 8px;
        padding: 12px;
        border-radius: 20px;
    }

    .admin-pagination-button,
    .admin-pagination-ellipsis {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    .admin-list-item {
        padding: 9px 12px;
    }

    .admin-list-item-title-row {
        flex-wrap: wrap;
        align-items: center;
    }

    .admin-list-item-title-row > h3 {
        font-size: 15px;
    }

    .admin-list-item-preview {
        font-size: 11px;
    }

    .admin-list-item-time {
        font-size: 10px;
    }

    .admin-detail-view {
        padding: 14px;
    }

    .admin-detail-view .admin-thought-actions,
    .admin-unsaved-dialog-actions {
        flex-direction: column;
    }

    .admin-thought-email-actions,
    .admin-email-actions {
        justify-content: stretch;
    }

    .admin-detail-view .admin-action-button,
    .admin-unsaved-dialog-actions .admin-action-button,
    .admin-email-actions .admin-action-button {
        width: 100%;
    }

    .admin-version-tab {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 14px;
    }
}

@media ((max-width: 480px) or (max-height: 480px)) and (orientation: portrait) {

    #cover-image {
        transform: translate(-100px, 0) scale(0.8, 0.8);
    }
}

@media (max-width: 480px) or (max-height: 560px) {

    #main-header {
        transform: scale(0.42, 0.42);
    }

    .music-collection-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        margin: 0;
    }

    .music-collection-dialog-shell {
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto;
    }

    .audio-player {
        gap: 10px;
    }

    .audio-player-toggle {
        width: 38px;
        height: 38px;
    }

    .audio-player-toggle .material-symbols-outlined {
        font-size: 22px;
    }

    .audio-player-time {
        font-size: 11px;
    }

    .music-collection-dialog-close-row {
        margin-bottom: 12px;
    }

    .music-collection-dialog-kicker {
        padding-top: 6px;
    }

    .music-collection-dialog-nav-button,
    .music-collection-dialog-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .music-collection-dialog-copy > h3 {
        font-size: clamp(20px, 7.5vw, 28px);
    }

    .music-collection-dialog-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .music-collection-dialog-meta-row > dd {
        font-size: 15px;
    }

    .music-collection-dialog-lyrics {
        min-height: clamp(220px, 36vh, 300px);
        padding: 20px 16px 22px;
        font-size: clamp(16px, 6vw, 18px);
        line-height: 1.78;
    }

    .music-collection-dialog-disclaimer {
        font-size: 8px;
    }
    
    #mobile-menu{
        height: auto;
    }

    #mobile-menu-content{
        overflow: scroll;
        overflow-x: scroll;
        overflow-y: scroll;
    }
}

@media (max-width: 480px) {

    menu{
        border-top-color: transparent;
        align-items: self-end;
    }

    #mobile-menu-btn{
        width: 100%;
        max-width: none;
        border-radius: 0;
        padding-top: 5px;
    }

    #mobile-menu-btn::after{
        top: 6px;
        left: 8px;
        right: 8px;
        bottom: 6px;
        border-radius: 40px;
    }

    #mobile-menu{
        width: auto;
        height: auto;
        border: none;
        border-radius: 0;
    }

    #mobile-menu-inner{
        margin: 0;
        border: none;
        border-radius: 0;
    }

    .photos-wall-grid {
        gap: 20px;
    }

    .photo-card {
        width: 100%;
    }

    .photo-card-picture {
        height: auto;
    }

    .photo-card-picture > img {
        width: 100%;
        max-height: none;
    }
}

@media (max-height: 400px) {
    #cover-image{
        display: none;
    }
}
