.access-1{
    padding-top: 13px!important;
}
.access-2{
    padding-top: 0!important;
}

.access-fix {
    float: right!important;
    margin-right: 20px;
    margin-top: 10px;
    color: white;
}
.custom-access-dropdown-toggle .tdtv-icon--chevron-down {
    float: right;
    margin: 12px 0 0 6px;
}
a.custom-access-dropdown-link:hover {
    color: #fff;
    background-color: #2d2d2d;
    text-decoration: none;
}
.profile-information strong {
    color: #5b5b5b;
}
.profile-information p {
    color: #b1b1b1;
}
.fa-time-visible {
    font-size: 16px!important;
}
@media (max-width: 985px) {
.access-fix {
    float: none;
    text-align: center;
    margin-right: 0;
    }
}
.custom-access-modal-close:hover {
    color: #fff;
}

.custom-access-link:hover {
    color: #fff;
    text-decoration: none;
}
.custom-access {
	position: relative;
}

.custom-access-link {
    font-size: 14px;
	display: inline-block;
	padding: 6px 10px;
	text-decoration: none;
	color: #ccc;
}

.custom-access-modal {
    position: fixed;
    right: 0;
    margin: 0 auto;
    left: 0;
    top: 25%;
    max-height: 0;
    width: 300px;
    display: block;
    background: rgba(0,0,0,0.86);
    border: 0px solid transparent;
    z-index: 100;
    overflow: hidden;
}
.custom-access-modal::after {
    clear: both;
    display: block;
    content:'';
    width:100%;
    height:1px;
}
.custom-access-modal.in {
	max-height: 700px;
}
.custom-access-modal-close {
    color: #fff;
	float: left;
    margin-left: 10px;
    font-size: 15px;
    margin-top: 5px;
}
.custom-access-modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
	padding: 5px 30px 5px 20px;
    width: 90%;
    display: inline-block;
    text-align: center;
}
.custom-access-modal-tabs {
    list-style: none;
    padding: 20px 0 10px 0;
    display: flex;
    justify-content: space-between;
    margin: 0 30px 0 30px !important;
}

.custom-access-modal-tab-item {
    border-color: transparent !important;
    float: none;
    /* display: flex; */
    /* justify-content: space-around; */
    width: 30%;
}

.custom-access-modal-tab-item .custom-access-tab-trigger {
    color: #ccc;
    display: block;
    width: 100%;
    text-align: center;
    font-size: 20px;
    border-bottom: 2px solid transparent;
}

.custom-access-modal-tab-item .custom-access-tab-trigger:hover,
.custom-access-modal-tab-item .custom-access-tab-trigger:focus {
    padding-bottom: 10px;
    color: #ccc;
	background: transparent !important;
    border-bottom: 2px solid #f3a93c;
}

.custom-access-modal-tab-item.active .custom-access-tab-trigger,
.custom-access-modal-tab-item .custom-access-tab-trigger:active {
    padding-bottom: 10px;
    color: #fff;
	background: transparent !important;
    border-bottom: 2px solid #f3a93c;    
    }
    
.custom-access-modal-tab-pane {
	display: none;
}
.custom-access-modal-tab-pane.active {
	display: block;
}

.custom-access-input {
    outline: 0;
	color: #fff;
    border-width: 0;
    padding-left: 5px;
    background: #2b2b2b;
    opacity: 0.85;
    width: 90%;
    display: block;
    margin: 5px auto!important;
    height: 30px;
    line-height: 30px;
    border-radius: 0!important;
}
.ca-error { 
    padding-bottom: 20px;
	font-size: 11px !important; 
	color: #f00; 
	float: none !important;
	width: 90%;
	margin: auto !important;
}
.ca-success { 
	font-size: 11px !important; 
	color: #0f0; 
	float: none !important;
	width: 90%;
	margin: auto !important;
}
.ca-form-label {
	width: 90%;
	margin: auto;
	display: block;
}

.custom-access-button {
    color: #fff;
    border-width: 0;
    cursor: pointer;
    width: 90%;
    display: block;
    margin: 0 auto 5px!important;
    height: 30px;
    border-radius: 0!important;
    background: #f3a93c;
    font-weight: 600;
}
.custom-access-button2 {
    margin-bottom: 10px;
    padding: 5px;
    border-width: 0;
    color: #a2a2a2;
    border-radius: 4px!important;
    cursor: pointer;
    width: 100%;
    background: #383838;
}
.ca-panel {
	display: block;
	width: 80%;
	margin: 10px auto 10px auto;
	background: #1b1b1b;
	color: #ccc;
}

.ca-panel-header,.ca-panel-body,.ca-panel-footer {
	padding: 5px 15px;
}

.ca-panel-header {
	font-size: 16px;
	border-bottom: 1px solid #ccc;
}

.ca-panel-footer {
	border-top: 1px solid #ccc;
}

.custom-access-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	display: none;
	background: rgba(0,0,0,0);
	transition: background 0.7s linear;
	z-index: 1000;
}
.custom-access-modal-backdrop.in {
	display: block;
	background: rgba(10, 10, 12, 0.88);
	transition: background 0.25s ease;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.custom-access-modal-backdrop .custom-access-modal {
	position: absolute;
	display: block;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	margin: auto;
	max-height: 0;
}

.custom-access-modal-backdrop.in .custom-access-modal {
	max-height: 520px;
	box-shadow:
		0 24px 48px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(255, 255, 255, 0.04) inset;
	border-radius: 12px;
	border: 1px solid rgba(255, 221, 149, 0.14);
	background: linear-gradient(165deg, #1e1f24 0%, #14151a 52%, #121318 100%);
	width: min(100%, 380px);
	max-width: calc(100vw - 32px);
}

.custom-access-dropdown {
	position: absolute;
	min-width: 250px;
	right: 0;
	z-index: 10;
	max-height: 0;
	overflow: hidden;
}
.custom-access-dropdown.in { max-height: 500px; right: -10px; }

.custom-access-dropdown-menu {
	list-style: none;
	padding: 0;
	width: 100%;
	box-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.custom-access-dropdown-item {
	background: #1b1b1b;
	border: none;
	width: 100%;
}
.custom-access-dropdown-link {
    transition: .3s cubic-bezier(.25,.8,.5,1);
    font-size: 18px;
    color: #f1ecec;
    background-color: #171717;
    display: block;
    padding: 12px 16px;
    width: 100%;
    text-decoration: none;
}
.custom-access-dropdown-item .tdtv-icon {
    color: #7b7b7b;
}
.cover-image {
	height: 230px;
    width: 100%;
    background: #1b1b1b;
    overflow: hidden;
    position: relative;
}
.cover-image::after {
	clear:both;
	content:'';
	width:100%;
	display:block;
	height:1px;
}
.profile-data {
	margin-top: -75px;
    vertical-align: top;
    padding: 5px 20px 5px 20px;
    color: #ccc;
    text-shadow: 1px 1px rgba(0,0,0,0.8);
    position: relative;
    width: 20%;
}
.profile-data img {
	/*float: left;*/
	margin-right: 10px;
}

.profile-data .profile-data-text {
	vertical-align: bottom;
	display: inline-block;
}

.profile-data::after {
	content:'';
	clear:both;
	width:100%;
	display: block;
	height:1px;
}

p.user-gender, p.user-age, p.user-country {
	display: inline-block;
	margin-left: 10px;
}

/* Legacy favorites page (standalone) */
#profile .favorites:not(.ca-profile-section) {
	background: #1b1b1b;
	color: #ccc;
	padding: 5px;
	float: left;
	width: 75%;
	min-height: 300px;
	border-radius: 3px;
	border: 1px solid #3b3b3b;
}

/* Profile /users page — full-width premium layout (no sidebar) */
#profile.ca-profile-page {
	background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 221, 149, 0.07) 0%, transparent 55%), #0d0d0d;
	border-bottom: 1px solid rgba(255, 221, 149, 0.12);
}

#profile.ca-profile-page .cover-image {
	border-radius: 0 0 16px 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Override legacy .profile-data (width 20% / -75px margin) on account page */
#profile.ca-profile-page .profile-data.ca-profile-hero {
	margin-left: auto;
	margin-right: auto;
	margin-top: -40px;
	width: auto;
	max-width: 1200px;
	text-shadow: none;
}

.ca-profile-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 20px;
	max-width: 1200px;
	margin: -40px auto 0;
	padding: 20px 22px;
	position: relative;
	z-index: 2;
	background: linear-gradient(145deg, #1e1e22 0%, #151518 48%, #121214 100%);
	border: 1px solid rgba(255, 221, 149, 0.18);
	border-radius: 14px;
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	box-sizing: border-box;
}

.ca-profile-hero__identity {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.ca-profile-hero__avatar {
	border-radius: 50%;
	border: 2px solid rgba(255, 221, 149, 0.35);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.ca-profile-hero__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ca-profile-hero__name {
	display: block;
	font-size: 1.35rem;
	font-weight: 600;
	color: #f2f2f4 !important;
	letter-spacing: 0.02em;
}

.ca-profile-hero__meta {
	font-size: 0.9rem;
	color: #9a9a9f;
}

.ca-profile-hero__details-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffdd95 !important;
	background: rgba(255, 221, 149, 0.08);
	border: 1px solid rgba(255, 221, 149, 0.35);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	flex-shrink: 0;
}

.ca-profile-hero__details-btn:hover {
	background: rgba(255, 221, 149, 0.14);
	border-color: rgba(255, 221, 149, 0.55);
	box-shadow: 0 0 0 1px rgba(255, 221, 149, 0.12);
}

.ca-profile-page__body {
	max-width: 1200px;
	margin: 24px auto 0;
	padding: 0 16px 40px;
	box-sizing: border-box;
}

.ca-profile-page__main {
	min-width: 0;
}

/* Profile details modal — solid scrim via tdtv-dialog (no blur) */
.ca-profile-details-panel {
	width: min(100%, 440px) !important;
	max-width: calc(100vw - 32px) !important;
}

.ca-profile-details-body {
	max-height: min(70vh, 640px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-right: 4px;
}

.ca-profile-details-body.profile-information strong {
	display: block;
	margin-top: 12px;
	margin-bottom: 6px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #9a9aa3 !important;
}

.ca-profile-details-body.profile-information strong:first-child {
	margin-top: 0;
}

.ca-profile-details-body .ca-profile-field:first-of-type strong {
	margin-top: 0;
}

.ca-profile-details-body.profile-information p {
	margin: 0 0 4px;
	color: #e4e4e8;
	font-size: 14px;
	line-height: 1.45;
}

.ca-profile-details-body .custom-access-input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-top: 4px;
}

.ca-profile-details-body select.user-country {
	max-height: 200px;
}

.ca-profile-divider {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin: 14px 0;
}

.ca-profile-details-edit {
	margin-bottom: 16px;
}

@media (max-width: 600px) {
	.ca-profile-hero {
		margin-top: -28px;
		padding: 16px;
		flex-direction: column;
		align-items: stretch;
	}

	.ca-profile-hero__identity {
		width: 100%;
	}

	.ca-profile-hero__details-btn {
		justify-content: center;
		width: 100%;
	}
}

/* New profile sections (favorites + watch later) */
.ca-profile-section {
	background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 0 0 20px;
	margin-bottom: 24px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	color: #ccc;
}

.ca-profile-section__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid rgba(255, 221, 149, 0.15);
	background: rgba(0, 0, 0, 0.2);
	border-radius: 12px 12px 0 0;
}

.ca-profile-section__icon {
	color: #ffdd95;
	line-height: 0;
}

.ca-profile-section__icon .tdtv-icon {
	vertical-align: middle;
}

.ca-profile-section__titles {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px 16px;
	min-width: 0;
}

.ca-profile-section__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: #ececec;
	letter-spacing: 0.02em;
}

.ca-profile-section__badge {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #c4c4c4;
	background: rgba(255, 221, 149, 0.08);
	border: 1px solid rgba(255, 221, 149, 0.22);
	padding: 4px 10px;
	border-radius: 999px;
}

.ca-profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 14px 12px;
	padding: 16px 18px 0;
}

.ca-profile-grid .videoPost {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

.ca-profile-grid .videoPost img.thumb_small,
.ca-profile-grid .tdtv-poster-wrap .image-wrapper,
.ca-profile-grid .tdtv-poster-wrap img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.ca-profile-section__empty {
	margin: 16px 18px 0;
	padding: 28px 16px;
	text-align: center;
	color: #888;
	font-size: 14px;
	background: rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	border: 1px dashed rgba(255, 255, 255, 0.1);
}

@media (max-width: 960px) {
	.ca-profile-page__body {
		padding: 0 12px 32px;
	}
}

.add-to-favorites {
    color: #ccc;
    text-decoration: none;
}
.add-to-favorites.added {
    color: #c71d1d!important;   
}
#favorite-fix:hover {
    color: #fbfbfb;
    text-decoration: none;
}
.add-to-favorites.added:hover {
    color: #c71d1d!important;
    text-decoration: none;
}
.account-logo .tdtv-icon--user,
.account-logo .tdtv-icon--user-plus {
    font-size: 22px;
    }
.custom-access-link {
    line-height: 0;
}
@media (max-width: 1016px) {
    #profile:not(.ca-profile-page) .profile-information {
    width: 22%;
    margin: 10px 11px;
}
    .profile-data{
    width: unset;
    }
    .custom-access-link {
    line-height: unset;
    }
}
@media (max-width: 984px) {
    .custom-access-link {
    margin: 0 20px;
    }
    .custom-access {
    position: relative;
    margin: 0 auto;
    width: 100%;
    }
    .account-logo .tdtv-icon--user,
    .account-logo .tdtv-icon--user-plus {
    font-size: 25px;
    }
}
@media (max-width: 753px) {
    #profile:not(.ca-profile-page) .profile-information {
    width: 21%;
    margin: 10px 10px;
}
}
.favorites h3 {
    font-size: 20px;
}
@media (max-width: 570px) {
    #profile:not(.ca-profile-page) .favorites {
        width: unset;
        margin: 10px;
    }
    #profile:not(.ca-profile-page) .profile-information {
        width: 96.4%;
        float: none;
    }
    .favorites h3 {
    font-size: 18px;
    }
}
@media (max-width: 480px) {
    .cover-image {
        height: 200px;
    }
    #profile:not(.ca-profile-page) .profile-information {
        width: 95.6%;
    }
    .profile-data {
    padding: 5px 10px 5px 10px;
    }
    .cover-image-update {
    margin: 10px 10px!important;
    }
}
@media (max-width: 360px) {
    #profile:not(.ca-profile-page) .profile-information {
        width: 94.3%;
}
}
.cover-img-set {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    Height: auto;
}
.watch-later { color: rgba(196,196,196,1); padding-left: 10px;}
.watch-later.fg-gold { color: #f90; }