:root{
    --bg: #ffffff;
    --panel: #f6f6f8;
    --text: #0b0f19;
    --muted: #6b7280;
    --border: #ebebeb;
    --border-soft: #f1f1f1;
    --radius: 14px;
    --radius-pill: 999px;
    --accent: #f1315a;
    --alert-bg: #fef2f2;
    --alert-color:#991b1b;
    --alert-border:#fecaca;
}

*{ box-sizing:border-box; }
html {scroll-behavior: smooth;}
html,body{ height:100%; }

body{
    margin:0;
    font-family: Arial, sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.45;
}

input, textarea, select, button {
    font-family: inherit;
}

a{ color: var(--accent); text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
    max-width: 1252px;
    margin: 0 auto;
    padding: 0 20px;
}


/************************************************
    Homepage Header
************************************************/

.site-header{
    background: var(--panel);
    border-bottom: 1px solid #efeff2;
    padding: 28px 0 32px 0;
}

.header-row{
    display:grid;
    grid-template-columns: 40px 1fr 40px; /* keeps logo centered */
    align-items:center;
    gap: 14px;
}

.logo{
    display:flex;
    justify-content:center;
    align-items:center;
}

.logo img{ max-height: 60px; }


.notice{
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--alert-bg);
    color: var(--alert-color);
    border: 1px solid var(--alert-border);
    font-size: 14px;
}


.search{
    max-width: 600px;
    margin: 18px auto 0;
}

.search-field{
    position:relative;
}

.search-icon{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    width:18px;
    height:18px;
    color:#727272;
    pointer-events:none;
}

.search-input{
    width:100%;
    padding: 14px 105px 14px 42px; /* left room for icon, right room for Go */
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background:#fff;
    color:#111827;
    font-weight:600;
    outline:none;
}
.search-input::placeholder{ color:#727272; font-weight:600; }
.search-input:hover,
.search-input:focus{ background: #fafafa; }

.paste-btn{
    position:absolute;
    right:72px;
    top:50%;
    transform:translateY(-50%);
    height: calc(100% - 10px);
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    background:transparent;
    cursor:pointer;
    color:#111827;
    border-radius:10px;
    padding:0 10px;
}
.paste-btn svg{ width:18px; height:18px; }

.go-btn{
    position:absolute;
    right:1px;
    top:50%;
    transform:translateY(-50%);
    min-width:60px;
    height: calc(100% - 2px);
    border:1px solid #000;
    background:#000;
    color:#fff;
    border-top-right-radius: var(--radius-pill);
    border-bottom-right-radius: var(--radius-pill);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    font-weight:700;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}
.go-btn:disabled{ opacity:.6; cursor:not-allowed; }


/************************************************
    Search Header Profile / Post Page
************************************************/


.p-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid #eee;
}

.input-wrap {
    position: relative;
    width: 100%;
}

.input {
    width: 100%;
    padding: 14px 68px 14px 42px; /* left room for icon, right room for Go */
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--panel);
    color: #111827;
    font-weight: 600;
    outline: none;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #727272;
    pointer-events: none;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #26324f;
    color: #e5e7eb;
    background: #000;
    flex-shrink: 0;
    transition: background 0.2s ease; /* Added a smooth hover transition */
}

.back-btn:hover {
    background: #101a2f;
}

.back-btn svg {
    width: 22px;
    height: 22px;
}

/************************************************
    Profile Pages
************************************************/

.tt-profile{
    margin-top: 40px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.tt-avatar{
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.tt-stats{
    display:flex;
    flex-wrap:wrap;
    font-size:14px;
    gap:0; /* separator handles spacing */
    margin-bottom:24px;

}
.tt-stats > span + span::before{
    content:"•";
    margin:0 6px;  /* optional */
}

.tt-tab{
    font-weight: 600;
    color: black;
    height: 28px;

}

.tt-tabs{
    margin: 24px 0 10px;
    display: flex;
    gap:10px;
}

.tt-tabs .active, .tt-tab:hover{
    border-bottom: 3px solid var(--accent);
}

.thumb {
    position: relative;
}

.share-btn svg {
    display: block;
    margin: 0 auto;

}

.share-btn:hover {
    background: rgba(255,255,255,.15);
}

.share-btn {
    text-align: center;
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0,0,0,.65);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 16px;
}

.share-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);

    display: flex;              /* ✅ always flex */
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Hide when [hidden] is present */
.share-modal[hidden] {
    display: none;
}

.share-box {
    background: #fff;
    width: 320px;
    padding: 16px;
    border-radius: 12px;
    position: relative;
}

.share-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.share-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 12px 0;
}

.share-links a {
    text-align: center;
    padding: 10px;

    border-radius: 8px;
    text-decoration: none;
    background: #000;
    color: white;
    font-weight: 500;
}

.share-copy {
    display: flex;
    gap: 8px;
}

.share-copy input {
    flex: 1;
    padding: 8px;
}

.share-copy button {
    padding: 8px 12px;
    cursor: pointer;
    background: black;
    color: white;
    border-radius: 5px;
    border: none;
}

/* X (Twitter) */
.share-links a[data-platform="twitter"] {
    background: #000000; /* X brand */
}

/* Facebook */
.share-links a[data-platform="facebook"] {
    background: #1877f2;
}

/* WhatsApp */
.share-links a[data-platform="whatsapp"] {
    background: #25d366;
}

/* Reddit */
.share-links a[data-platform="reddit"] {
    background: #ff4500;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* 🔑 doesn't block clicks */
}

.play-overlay svg {
    fill: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
    transition: transform .2s ease, opacity .2s ease;
}

/* Hover effect */
.thumb:hover .play-overlay svg {
    transform: scale(1.08);
    opacity: 1;
}


.btn-download{
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #26324f;
    color: #e5e7eb;
    background: #000;
}

/************************************************
    Video Post Page
************************************************/
.video-container{
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 10px;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.video-container video{
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #222;
    border-radius: 10px;
}

.video-username a{
    color: #ffffffc4;
}

.video-info {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #ffffffc4;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 17px;
}

.video-info img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

/************************************************
    Contact Page
************************************************/

form.alt label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

form.alt input, form.alt textarea {
    margin-bottom: 14px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: #111827;
    font-weight: 600;
    font-family: Arial, sans-serif;
    width: 50%;
    height: 36px;
    border-radius: 4px;
    padding: 10px;
    outline: none;
    font-size: 14px;
}

form.alt textarea {
    width: 80%;
    height: 144px;
}

form input[type="submit"] {
    color: #ffffff;
    background-color: black;
    font-size: 14px;
    width: auto;
    font-family: Arial, sans-serif;
    font-weight: normal;
    padding: 0 25px;
    height: 48px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    -webkit-appearance: none;
}

#successMsg{
    text-align: center;
    margin-top:20px;
    padding:15px;
    background:#f0fdf4;
    border:1px solid #bbf7d0;
    color:#166534;
    border-radius:8px;
    font-size: 14px;
}





/* Content */
.content{
    max-width: 600px;
    margin: 28px auto 0;
    padding: 0 20px 18px;
}

h1{
    font-size: 28px;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    text-align: center;
}

.content p{ margin: 0 0 12px; }

.steps{
    margin: 10px 0 16px;
    padding-left: 1.2rem;
}
.steps li{ margin: 10px 0; }


/* Footer */
.site-footer{
    max-width: 600px;
    margin: 20px auto 0;
    padding: 16px 20px 28px;
    border-top: 1px solid #f3f1f1;
    text-align:center;
    font-size: 14px;
    color: var(--muted);
}
.footer-links{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap: 16px;
    margin-bottom: 10px;
}
.site-footer a{ color:#222; }


.card { background:var(--panel);border-radius:14px; padding:16px; border: 1px solid #efeff2; }
.row { display:flex; gap:14px; flex-wrap:wrap; }
.grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; }
@media (max-width: 900px){ .grid { grid-template-columns: repeat(2, 1fr);} }
.thumb { width:100%; aspect-ratio: 9/16; background:var(--panel); border-radius:12px; overflow:hidden; border: transparent;  }
.thumb img { width:100%; height:100%; object-fit:cover; display:block; }


/* ======== Go To Top  ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;

    /* Hide initially */
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1);
    background-color: #f8f8f8;
}
