 * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Apply Poppins to entire page */
body {
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	/* normal text */
}

/* Headings */
h1,
h2,
h3 {
	font-weight: 600;
	/* semi-bold */
}

/* Optional: fallback fonts for extra speed */
p,
span,
a {
	font-family: 'Poppins', Arial, sans-serif;
}

.container {
	max-width: 800px;
	margin: 0px auto;
	padding: 10px;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

 header.container {
    width: 100%;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    /* ensure header creates its own stacking context above page content */
    position: relative;
    z-index: 1000; /* header sits above other content by default */
  }
    /* Hide checkbox */
    #menu-toggle {
        display: none;
    }

    /* Hamburger */
    .hamburger {
        display: none;
        flex-direction: column;
        width: 30px;
        cursor: pointer;
    }

    .hamburger span {
        height: 4px;
        width: 100%;
        background: black;
        margin: 4px 0;
        border-radius: 4px;
        transition: 0.3s;
    }

    /* Mobile Styles */
    @media (max-width: 790px) {
        nav.links {
            position: absolute;
            top: 65px;
            right: 0;
            width: 100%;
            background: #eee;
            flex-direction: column;
            align-items: center;
            padding: 20px 0;
            display: none;
        }

        .hamburger {
            display: flex;
        }

        /* Show menu when checked */
        #menu-toggle:checked ~ nav.links {
            display: flex;
        }
    }

.logo {
	font-size: 24px;
	font-weight: bold;
	color: black;
}

#sst-tiktok{
	width: 40px;
	height: 40px;
}
.logo a {
	text-decoration: none;
	color: black;
	display: flex;
    justify-content: center;
    align-items: center;
}

.links a {
	text-decoration: none;
	color: black;
	padding: 15px;
}

main{
	max-width: 800px;
	margin: 0px auto;
	padding: 10px;
}

.ttle {
	text-align: center;
	margin: 30px 0px;
}

.download-form {
	max-width: 60rem;
	margin: 0 auto;
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	flex-wrap: nowrap;
	position: relative;
}

.input-wrapper {
	position: relative;
	flex: 1;
}

.url-input {
	border: 1px solid black;
	border-radius: 30px;
	width: 100%;
	padding: 12px 45px 12px 15px;
	font-size: 1rem;
	outline: none;
	height: 50px;
}
.pst-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.pst-back {
  position: absolute;
  width: 10px;
  height: 12px;
  background: #e0e0e0;
  border: 1px solid #666;
  border-radius: 1px;
  top: 2px;
  left: 4px;
}

.pst-front {
  position: absolute;
  width: 10px;
  height: 12px;
  background: white;
  border: 1px solid #333;
  border-radius: 1px;
  top: 0;
  left: 0;
}

.pst-front::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 1px;
  background: #333;
  top: 3px;
  left: 2px;
}

.pst-front::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 1px;
  background: #333;
  top: 5px;
  left: 2px;
}
.paste-btn {
	padding: 10px;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: #eee;
	color: black;
	font-weight: bold;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	font-size: 1rem;
	display: flex;
	align-items: center;
	gap: 5px;
}

.download-btn {
	background: black;
	color: white;
	border: 1px solid black;
	border-radius: 30px;
	height: 50px;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

.download-btn:active {
	background: white;
	color: black;
}

@media (max-width: 768px) {
	.download-form {
		display: grid;
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.download-btn {
		width: 100%;
		justify-content: center;
		height: 50px;
	}
}

.loading-indicator {
	display: none;
	text-align: center;
	padding: 10px;
    margin: 10px;
}

.spinner {
	border: 4px solid black;
	border-left-color: #eee;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 1rem;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.error-message {
	display: none;
	background: #eee;
	color: black;
	padding: 10px;
	border-radius: 30px;
	margin: 10px;
	text-align: center;
}



.video-card {
	display: none;
	margin: 2rem auto;
} 

.video-info {
    padding: 5px;
    border-radius: 10px;
}

img {
	width: 70px;
	height: 70px;
	margin-right: 10px;
	border-radius: 5px;
}

.title-tumbnail {
	display: flex;
    background: #eee;
    padding: 5px;
    border-radius: 10px;
    margin: 5px 0px;
}

.video-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 1rem;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.video-meta {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
    background: #eee;
    padding: 5px;
    border-radius: 10px;
    margin: 5px 0px;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.9rem;
	color: black;
}

.download-options {
	display: grid;
	gap: 10px;
    background: #eee;
    padding: 5px;
    border-radius: 10px;
    margin: 5px 0px;
}

.download-option-btn {
	flex: 1;
	padding: 12px;
	border: 1px solid black;
	border-radius: 30px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.download-option-btn:active{
    background: white;
    color: black;
    border: 1px solid black;
}
.video-download {
	background: black;
	color: white;
}

.audio-download {
	background: black;
	color: white;
}

.another-video {
	background: black;
	color: white;
}


#cnt h1,h2 {
	text-align: center;
	margin: 10px;
}
#cnt p{
	text-align: start;
	margin: 10px;
}




/* Content sections */
.content-section {
    margin: 40px 0;
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.content-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.content-section h3 {
    color: #444;
    margin: 15px 0 10px;
}

.content-section ul, .content-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 8px;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.faq-question {
    font-weight: 600;
    margin-bottom: 8px;
}

.step-by-step {
    counter-reset: step-counter;
}

.step {
    margin-bottom: 20px;
    padding-left: 50px;
    position: relative;
}

.terms-note{
	border-radius: 10px;
    background-color: #f9f9f9;
    padding: 20px;
}

footer {
	display: flex;
	justify-content: center;
	align-items: center;
}
#copyright {
	padding: 15px;
	font-size: 0.9rem;
	color: #555;
}
.footerlinks {
	display: flex;
    justify-content: center;
    align-items: center;
}
.footerlinks a {
	text-decoration: none;
	color: black;
	padding: 15px;
}